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 64
11 #define MAX_BLKDEV 64
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
47
48
49
50
51
52
53
54
55
56 #define UNNAMED_MAJOR 0
57 #define MEM_MAJOR 1
58 #define FLOPPY_MAJOR 2
59 #define PTY_MASTER_MAJOR 2
60 #define IDE0_MAJOR 3
61 #define PTY_SLAVE_MAJOR 3
62 #define HD_MAJOR IDE0_MAJOR
63 #define TTY_MAJOR 4
64 #define TTYAUX_MAJOR 5
65 #define LP_MAJOR 6
66 #define VCS_MAJOR 7
67 #define SCSI_DISK_MAJOR 8
68 #define SCSI_TAPE_MAJOR 9
69 #define MOUSE_MAJOR 10
70 #define SCSI_CDROM_MAJOR 11
71 #define QIC02_TAPE_MAJOR 12
72 #define XT_DISK_MAJOR 13
73 #define SOUND_MAJOR 14
74 #define CDU31A_CDROM_MAJOR 15
75 #define SOCKET_MAJOR 16
76 #define GOLDSTAR_CDROM_MAJOR 16
77 #define AF_UNIX_MAJOR 17
78 #define OPTICS_CDROM_MAJOR 17
79 #define AF_INET_MAJOR 18
80 #define SANYO_CDROM_MAJOR 18
81 #define CYCLADES_MAJOR 19
82 #define CYCLADESAUX_MAJOR 20
83 #define MITSUMI_X_CDROM_MAJOR 20
84 #define SCSI_GENERIC_MAJOR 21
85 #define Z8530_MAJOR 34
86 #define IDE1_MAJOR 22
87 #define MITSUMI_CDROM_MAJOR 23
88 #define CDU535_CDROM_MAJOR 24
89 #define STL_SERIALMAJOR 24
90 #define MATSUSHITA_CDROM_MAJOR 25
91 #define STL_CALLOUTMAJOR 25
92 #define MATSUSHITA_CDROM2_MAJOR 26
93 #define QIC117_TAPE_MAJOR 27
94 #define MATSUSHITA_CDROM3_MAJOR 27
95 #define MATSUSHITA_CDROM4_MAJOR 28
96 #define STL_SIOMEMMAJOR 28
97 #define AZTECH_CDROM_MAJOR 29
98 #define CM206_CDROM_MAJOR 32
99 #define IDE2_MAJOR 33
100 #define IDE3_MAJOR 34
101 #define NETLINK_MAJOR 36
102
103
104
105
106
107 #define SCSI_MAJOR(M) \
108 ((M) == SCSI_DISK_MAJOR \
109 || (M) == SCSI_TAPE_MAJOR \
110 || (M) == SCSI_CDROM_MAJOR \
111 || (M) == SCSI_GENERIC_MAJOR)
112
113 static inline int scsi_major(int m) {
114 return SCSI_MAJOR(m);
115 }
116
117 #endif