This source file includes following definitions.
- scsi_major
1 #ifndef _LINUX_MAJOR_H
2 #define _LINUX_MAJOR_H
3
4
5
6
7
8
9
10 #define MAX_CHRDEV 32
11 #define MAX_BLKDEV 32
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 #define UNNAMED_MAJOR 0
47 #define MEM_MAJOR 1
48 #define FLOPPY_MAJOR 2
49 #define HD_MAJOR 3
50 #define TTY_MAJOR 4
51 #define TTYAUX_MAJOR 5
52 #define LP_MAJOR 6
53
54 #define SCSI_DISK_MAJOR 8
55 #define SCSI_TAPE_MAJOR 9
56 #define MOUSE_MAJOR 10
57 #define SCSI_CDROM_MAJOR 11
58 #define QIC02_TAPE_MAJOR 12
59 #define XT_DISK_MAJOR 13
60 #define SOUND_MAJOR 14
61 #define CDU31A_CDROM_MAJOR 15
62 #define SOCKET_MAJOR 16
63 #define AF_UNIX_MAJOR 17
64 #define AF_INET_MAJOR 18
65
66 #define SCSI_GENERIC_MAJOR 21
67
68 #define MITSUMI_CDROM_MAJOR 23
69
70
71
72
73
74 #define SCSI_MAJOR(M) \
75 ((M) == SCSI_DISK_MAJOR \
76 || (M) == SCSI_TAPE_MAJOR \
77 || (M) == SCSI_CDROM_MAJOR \
78 || (M) == SCSI_GENERIC_MAJOR)
79
80 static inline int scsi_major(int m) {
81 return SCSI_MAJOR(m);
82 }
83
84 #endif