source: GPL/include/linux/major.h@ 18

Last change on this file since 18 was 18, checked in by vladest, 20 years ago

initial import

File size: 3.8 KB
Line 
1#ifndef _LINUX_MAJOR_H
2#define _LINUX_MAJOR_H
3
4/*
5 * This file has definitions for major device numbers.
6 * For the device number assignments, see Documentation/devices.txt.
7 */
8
9/* limits */
10
11/*
12 * Important: Don't change this to 256. Major number 255 is and must be
13 * reserved for future expansion into a larger dev_t space.
14 */
15#define MAX_CHRDEV 255
16#define MAX_BLKDEV 255
17
18#define UNNAMED_MAJOR 0
19#define MEM_MAJOR 1
20#define RAMDISK_MAJOR 1
21#define FLOPPY_MAJOR 2
22#define PTY_MASTER_MAJOR 2
23#define IDE0_MAJOR 3
24#define PTY_SLAVE_MAJOR 3
25#define HD_MAJOR IDE0_MAJOR
26#define TTY_MAJOR 4
27#define TTYAUX_MAJOR 5
28#define LP_MAJOR 6
29#define VCS_MAJOR 7
30#define LOOP_MAJOR 7
31#define SCSI_DISK0_MAJOR 8
32#define SCSI_TAPE_MAJOR 9
33#define MD_MAJOR 9
34#define MISC_MAJOR 10
35#define SCSI_CDROM_MAJOR 11
36#define QIC02_TAPE_MAJOR 12
37#define XT_DISK_MAJOR 13
38#define SOUND_MAJOR 14
39#define CDU31A_CDROM_MAJOR 15
40#define JOYSTICK_MAJOR 15
41#define GOLDSTAR_CDROM_MAJOR 16
42#define OPTICS_CDROM_MAJOR 17
43#define SANYO_CDROM_MAJOR 18
44#define CYCLADES_MAJOR 19
45#define CYCLADESAUX_MAJOR 20
46#define MITSUMI_X_CDROM_MAJOR 20
47#define MFM_ACORN_MAJOR 21 /* ARM Linux /dev/mfm */
48#define SCSI_GENERIC_MAJOR 21
49#define Z8530_MAJOR 34
50#define DIGI_MAJOR 23
51#define IDE1_MAJOR 22
52#define DIGICU_MAJOR 22
53#define MITSUMI_CDROM_MAJOR 23
54#define CDU535_CDROM_MAJOR 24
55#define STL_SERIALMAJOR 24
56#define MATSUSHITA_CDROM_MAJOR 25
57#define STL_CALLOUTMAJOR 25
58#define MATSUSHITA_CDROM2_MAJOR 26
59#define QIC117_TAPE_MAJOR 27
60#define MATSUSHITA_CDROM3_MAJOR 27
61#define MATSUSHITA_CDROM4_MAJOR 28
62#define STL_SIOMEMMAJOR 28
63#define ACSI_MAJOR 28
64#define AZTECH_CDROM_MAJOR 29
65#define GRAPHDEV_MAJOR 29 /* SparcLinux & Linux/68k /dev/fb */
66#define SHMIQ_MAJOR 85 /* Linux/mips, SGI /dev/shmiq */
67#define CM206_CDROM_MAJOR 32
68#define IDE2_MAJOR 33
69#define IDE3_MAJOR 34
70#define NETLINK_MAJOR 36
71#define PS2ESDI_MAJOR 36
72#define IDETAPE_MAJOR 37
73#define Z2RAM_MAJOR 37
74#define APBLOCK_MAJOR 38 /* AP1000 Block device */
75#define DDV_MAJOR 39 /* AP1000 DDV block device */
76#define NBD_MAJOR 43 /* Network block device */
77#define RISCOM8_NORMAL_MAJOR 48
78#define DAC960_MAJOR 48 /* 48..55 */
79#define RISCOM8_CALLOUT_MAJOR 49
80#define MKISS_MAJOR 55
81#define DSP56K_MAJOR 55 /* DSP56001 processor device */
82
83#define IDE4_MAJOR 56
84#define IDE5_MAJOR 57
85
86#define SCSI_DISK1_MAJOR 65
87#define SCSI_DISK2_MAJOR 66
88#define SCSI_DISK3_MAJOR 67
89#define SCSI_DISK4_MAJOR 68
90#define SCSI_DISK5_MAJOR 69
91#define SCSI_DISK6_MAJOR 70
92#define SCSI_DISK7_MAJOR 71
93
94
95#define LVM_BLK_MAJOR 58 /* Logical Volume Manager */
96
97#define COMPAQ_SMART2_MAJOR 72
98#define COMPAQ_SMART2_MAJOR1 73
99#define COMPAQ_SMART2_MAJOR2 74
100#define COMPAQ_SMART2_MAJOR3 75
101#define COMPAQ_SMART2_MAJOR4 76
102#define COMPAQ_SMART2_MAJOR5 77
103#define COMPAQ_SMART2_MAJOR6 78
104#define COMPAQ_SMART2_MAJOR7 79
105
106#define SPECIALIX_NORMAL_MAJOR 75
107#define SPECIALIX_CALLOUT_MAJOR 76
108
109#define LVM_CHAR_MAJOR 109 /* Logical Volume Manager */
110
111#define I2O_MAJOR 80 /* 80->87 */
112
113#define IDE6_MAJOR 88
114#define IDE7_MAJOR 89
115#define IDE8_MAJOR 90
116#define IDE9_MAJOR 91
117
118#define AURORA_MAJOR 79
119
120#define RTF_MAJOR 150
121#define RAW_MAJOR 162
122
123#define USB_ACM_MAJOR 166
124#define USB_ACM_AUX_MAJOR 167
125#define USB_CHAR_MAJOR 180
126
127#define UNIX98_PTY_MASTER_MAJOR 128
128#define UNIX98_PTY_MAJOR_COUNT 8
129#define UNIX98_PTY_SLAVE_MAJOR (UNIX98_PTY_MASTER_MAJOR+UNIX98_PTY_MAJOR_COUNT)
130
131/*
132 * Tests for SCSI devices.
133 */
134
135#define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
136 ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR))
137
138#define SCSI_BLK_MAJOR(M) \
139 (SCSI_DISK_MAJOR(M) \
140 || (M) == SCSI_CDROM_MAJOR)
141
142static __inline__ int scsi_blk_major(int m) {
143 return SCSI_BLK_MAJOR(m);
144}
145
146#endif
Note: See TracBrowser for help on using the repository browser.