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