xref: /openbmc/linux/include/uapi/linux/major.h (revision f76edd8f)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _LINUX_MAJOR_H
3 #define _LINUX_MAJOR_H
4 
5 /*
6  * This file has definitions for major device numbers.
7  * For the device number assignments, see Documentation/admin-guide/devices.rst.
8  */
9 
10 #define UNNAMED_MAJOR		0
11 #define MEM_MAJOR		1
12 #define RAMDISK_MAJOR		1
13 #define FLOPPY_MAJOR		2
14 #define PTY_MASTER_MAJOR	2
15 #define IDE0_MAJOR		3
16 #define HD_MAJOR		IDE0_MAJOR
17 #define PTY_SLAVE_MAJOR		3
18 #define TTY_MAJOR		4
19 #define TTYAUX_MAJOR		5
20 #define LP_MAJOR		6
21 #define VCS_MAJOR		7
22 #define LOOP_MAJOR		7
23 #define SCSI_DISK0_MAJOR	8
24 #define SCSI_TAPE_MAJOR		9
25 #define MD_MAJOR		9
26 #define MISC_MAJOR		10
27 #define SCSI_CDROM_MAJOR	11
28 #define MUX_MAJOR		11	/* PA-RISC only */
29 #define XT_DISK_MAJOR		13
30 #define INPUT_MAJOR		13
31 #define SOUND_MAJOR		14
32 #define CDU31A_CDROM_MAJOR	15
33 #define JOYSTICK_MAJOR		15
34 #define GOLDSTAR_CDROM_MAJOR	16
35 #define OPTICS_CDROM_MAJOR	17
36 #define SANYO_CDROM_MAJOR	18
37 #define MITSUMI_X_CDROM_MAJOR	20
38 #define MFM_ACORN_MAJOR		21	/* ARM Linux /dev/mfm */
39 #define SCSI_GENERIC_MAJOR	21
40 #define IDE1_MAJOR		22
41 #define DIGICU_MAJOR		22
42 #define DIGI_MAJOR		23
43 #define MITSUMI_CDROM_MAJOR	23
44 #define CDU535_CDROM_MAJOR	24
45 #define STL_SERIALMAJOR		24
46 #define MATSUSHITA_CDROM_MAJOR	25
47 #define STL_CALLOUTMAJOR	25
48 #define MATSUSHITA_CDROM2_MAJOR	26
49 #define QIC117_TAPE_MAJOR	27
50 #define MATSUSHITA_CDROM3_MAJOR	27
51 #define MATSUSHITA_CDROM4_MAJOR	28
52 #define STL_SIOMEMMAJOR		28
53 #define ACSI_MAJOR		28
54 #define AZTECH_CDROM_MAJOR	29
55 #define FB_MAJOR		29   /* /dev/fb* framebuffers */
56 #define MTD_BLOCK_MAJOR		31
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 #define SCSI_CHANGER_MAJOR      86
104 
105 #define IDE6_MAJOR		88
106 #define IDE7_MAJOR		89
107 #define IDE8_MAJOR		90
108 #define MTD_CHAR_MAJOR		90
109 #define IDE9_MAJOR		91
110 
111 #define DASD_MAJOR		94
112 
113 #define MDISK_MAJOR		95
114 
115 #define UBD_MAJOR		98
116 
117 #define PP_MAJOR		99
118 #define JSFD_MAJOR		99
119 
120 #define PHONE_MAJOR		100
121 
122 #define COMPAQ_CISS_MAJOR	104
123 #define COMPAQ_CISS_MAJOR1	105
124 #define COMPAQ_CISS_MAJOR2      106
125 #define COMPAQ_CISS_MAJOR3      107
126 #define COMPAQ_CISS_MAJOR4      108
127 #define COMPAQ_CISS_MAJOR5      109
128 #define COMPAQ_CISS_MAJOR6      110
129 #define COMPAQ_CISS_MAJOR7      111
130 
131 #define VIODASD_MAJOR		112
132 #define VIOCD_MAJOR		113
133 
134 #define ATARAID_MAJOR		114
135 
136 #define SCSI_DISK8_MAJOR	128
137 #define SCSI_DISK9_MAJOR	129
138 #define SCSI_DISK10_MAJOR	130
139 #define SCSI_DISK11_MAJOR	131
140 #define SCSI_DISK12_MAJOR	132
141 #define SCSI_DISK13_MAJOR	133
142 #define SCSI_DISK14_MAJOR	134
143 #define SCSI_DISK15_MAJOR	135
144 
145 #define UNIX98_PTY_MASTER_MAJOR	128
146 #define UNIX98_PTY_MAJOR_COUNT	8
147 #define UNIX98_PTY_SLAVE_MAJOR	(UNIX98_PTY_MASTER_MAJOR+UNIX98_PTY_MAJOR_COUNT)
148 
149 #define DRBD_MAJOR		147
150 #define RTF_MAJOR		150
151 #define RAW_MAJOR		162
152 
153 #define USB_ACM_MAJOR		166
154 #define USB_ACM_AUX_MAJOR	167
155 #define USB_CHAR_MAJOR		180
156 
157 #define MMC_BLOCK_MAJOR		179
158 
159 #define VXVM_MAJOR		199	/* VERITAS volume i/o driver    */
160 #define VXSPEC_MAJOR		200	/* VERITAS volume config driver */
161 #define VXDMP_MAJOR		201	/* VERITAS volume multipath driver */
162 
163 #define XENVBD_MAJOR		202	/* Xen virtual block device */
164 
165 #define MSR_MAJOR		202
166 #define CPUID_MAJOR		203
167 
168 #define OSST_MAJOR		206	/* OnStream-SCx0 SCSI tape */
169 
170 #define IBM_TTY3270_MAJOR	227
171 #define IBM_FS3270_MAJOR	228
172 
173 #define VIOTAPE_MAJOR		230
174 
175 #define BLOCK_EXT_MAJOR		259
176 #define SCSI_OSD_MAJOR		260	/* open-osd's OSD scsi device */
177 
178 #endif
179