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