source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/major.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 5.0 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#define UNNAMED_MAJOR           0
10#define MEM_MAJOR               1
11#define RAMDISK_MAJOR           1
12#define FLOPPY_MAJOR            2
13#define PTY_MASTER_MAJOR        2
14#define IDE0_MAJOR              3
15#define HD_MAJOR                IDE0_MAJOR
16#define PTY_SLAVE_MAJOR         3
17#define TTY_MAJOR               4
18#define TTYAUX_MAJOR            5
19#define LP_MAJOR                6
20#define VCS_MAJOR               7
21#define LOOP_MAJOR              7
22#define SCSI_DISK0_MAJOR        8
23#define SCSI_TAPE_MAJOR         9
24#define MD_MAJOR                9
25#define MISC_MAJOR              10
26#define SCSI_CDROM_MAJOR        11
27#define MUX_MAJOR               11      /* PA-RISC only */
28#define XT_DISK_MAJOR           13
29#define INPUT_MAJOR             13
30#define SOUND_MAJOR             14
31#define CDU31A_CDROM_MAJOR      15
32#define JOYSTICK_MAJOR          15
33#define GOLDSTAR_CDROM_MAJOR    16
34#define OPTICS_CDROM_MAJOR      17
35#define SANYO_CDROM_MAJOR       18
36#define CYCLADES_MAJOR          19
37#define CYCLADESAUX_MAJOR       20
38#define MITSUMI_X_CDROM_MAJOR   20
39#define MFM_ACORN_MAJOR         21      /* ARM Linux /dev/mfm */
40#define SCSI_GENERIC_MAJOR      21
41#define IDE1_MAJOR              22
42#define DIGICU_MAJOR            22
43#define DIGI_MAJOR              23
44#define MITSUMI_CDROM_MAJOR     23
45#define CDU535_CDROM_MAJOR      24
46#define STL_SERIALMAJOR         24
47#define MATSUSHITA_CDROM_MAJOR  25
48#define STL_CALLOUTMAJOR        25
49#define MATSUSHITA_CDROM2_MAJOR 26
50#define QIC117_TAPE_MAJOR       27
51#define MATSUSHITA_CDROM3_MAJOR 27
52#define MATSUSHITA_CDROM4_MAJOR 28
53#define STL_SIOMEMMAJOR         28
54#define ACSI_MAJOR              28
55#define AZTECH_CDROM_MAJOR      29
56#define GRAPHDEV_MAJOR          29   /* SparcLinux & Linux/68k /dev/fb */
57#define CM206_CDROM_MAJOR       32
58#define IDE2_MAJOR              33
59#define IDE3_MAJOR              34
60#define Z8530_MAJOR             34
61#define XPRAM_MAJOR             35   /* Expanded storage on S/390: "slow ram"*/
62#define NETLINK_MAJOR           36
63#define PS2ESDI_MAJOR           36
64#define IDETAPE_MAJOR           37
65#define Z2RAM_MAJOR             37
66#define APBLOCK_MAJOR           38   /* AP1000 Block device */
67#define DDV_MAJOR               39   /* AP1000 DDV block device */
68#define NBD_MAJOR               43   /* Network block device    */
69#define RISCOM8_NORMAL_MAJOR    48
70#define DAC960_MAJOR            48   /* 48..55 */
71#define RISCOM8_CALLOUT_MAJOR   49
72#define MKISS_MAJOR             55
73#define DSP56K_MAJOR            55   /* DSP56001 processor device */
74
75#define IDE4_MAJOR              56
76#define IDE5_MAJOR              57
77
78#define SCSI_DISK1_MAJOR        65
79#define SCSI_DISK2_MAJOR        66
80#define SCSI_DISK3_MAJOR        67
81#define SCSI_DISK4_MAJOR        68
82#define SCSI_DISK5_MAJOR        69
83#define SCSI_DISK6_MAJOR        70
84#define SCSI_DISK7_MAJOR        71
85
86#define COMPAQ_SMART2_MAJOR     72
87#define COMPAQ_SMART2_MAJOR1    73
88#define COMPAQ_SMART2_MAJOR2    74
89#define COMPAQ_SMART2_MAJOR3    75
90#define COMPAQ_SMART2_MAJOR4    76
91#define COMPAQ_SMART2_MAJOR5    77
92#define COMPAQ_SMART2_MAJOR6    78
93#define COMPAQ_SMART2_MAJOR7    79
94
95#define SPECIALIX_NORMAL_MAJOR  75
96#define SPECIALIX_CALLOUT_MAJOR 76
97
98#define AURORA_MAJOR            79
99
100#define I2O_MAJOR               80      /* 80->87 */
101
102#define SHMIQ_MAJOR             85   /* Linux/mips, SGI /dev/shmiq */
103
104#define IDE6_MAJOR              88
105#define IDE7_MAJOR              89
106#define IDE8_MAJOR              90
107#define IDE9_MAJOR              91
108
109#define DASD_MAJOR              94
110
111#define MDISK_MAJOR             95
112
113#define UBD_MAJOR               98
114
115#define JSFD_MAJOR              99
116
117#define PHONE_MAJOR             100
118
119#define COMPAQ_CISS_MAJOR       104
120#define COMPAQ_CISS_MAJOR1      105
121#define COMPAQ_CISS_MAJOR2      106
122#define COMPAQ_CISS_MAJOR3      107
123#define COMPAQ_CISS_MAJOR4      108
124#define COMPAQ_CISS_MAJOR5      109
125#define COMPAQ_CISS_MAJOR6      110
126#define COMPAQ_CISS_MAJOR7      111
127
128#define VIODASD_MAJOR           112
129#define VIOCD_MAJOR             113
130
131#define ATARAID_MAJOR           114
132
133#define SCSI_DISK8_MAJOR        128
134#define SCSI_DISK9_MAJOR        129
135#define SCSI_DISK10_MAJOR       130
136#define SCSI_DISK11_MAJOR       131
137#define SCSI_DISK12_MAJOR       132
138#define SCSI_DISK13_MAJOR       133
139#define SCSI_DISK14_MAJOR       134
140#define SCSI_DISK15_MAJOR       135
141
142#define UNIX98_PTY_MASTER_MAJOR 128
143#define UNIX98_PTY_MAJOR_COUNT  8
144#define UNIX98_PTY_SLAVE_MAJOR  (UNIX98_PTY_MASTER_MAJOR+UNIX98_PTY_MAJOR_COUNT)
145
146#define RTF_MAJOR               150
147#define RAW_MAJOR               162
148
149#define USB_ACM_MAJOR           166
150#define USB_ACM_AUX_MAJOR       167
151#define USB_CHAR_MAJOR          180
152
153#define VXVM_MAJOR              199     /* VERITAS volume i/o driver    */
154#define VXSPEC_MAJOR            200     /* VERITAS volume config driver */
155#define VXDMP_MAJOR             201     /* VERITAS volume multipath driver */
156
157#define MSR_MAJOR               202
158#define CPUID_MAJOR             203
159
160#define OSST_MAJOR              206     /* OnStream-SCx0 SCSI tape */
161
162#define IBM_TTY3270_MAJOR       227
163#define IBM_FS3270_MAJOR        228
164
165/*
166 * Tests for SCSI devices.
167 */
168
169#define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
170  ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR) || \
171  ((M) >= SCSI_DISK8_MAJOR && (M) <= SCSI_DISK15_MAJOR))
172 
173#define SCSI_BLK_MAJOR(M) \
174  (SCSI_DISK_MAJOR(M)   \
175   || (M) == SCSI_CDROM_MAJOR)
176
177/*
178 * Tests for IDE devices
179 */
180#define IDE_DISK_MAJOR(M)       ((M) == IDE0_MAJOR || (M) == IDE1_MAJOR || \
181                                (M) == IDE2_MAJOR || (M) == IDE3_MAJOR || \
182                                (M) == IDE4_MAJOR || (M) == IDE5_MAJOR || \
183                                (M) == IDE6_MAJOR || (M) == IDE7_MAJOR || \
184                                (M) == IDE8_MAJOR || (M) == IDE9_MAJOR)
185
186/*
187 * 2.4 definitions
188 */
189#define LVM_BLK_MAJOR   58      /* Logical Volume Manager */
190#define LVM_CHAR_MAJOR  109     /* Logical Volume Manager */
191#define UMEM_MAJOR              116     /* http://www.umem.com/ Battery Backed RAM */
192
193
194#define VIOTAPE_MAJOR           230
195
196#endif
Note: See TracBrowser for help on using the repository browser.