xref: /linux/include/uapi/linux/major.h (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2607ca46eSDavid Howells #ifndef _LINUX_MAJOR_H
3607ca46eSDavid Howells #define _LINUX_MAJOR_H
4607ca46eSDavid Howells 
5607ca46eSDavid Howells /*
6607ca46eSDavid Howells  * This file has definitions for major device numbers.
78c27ceffSMauro Carvalho Chehab  * For the device number assignments, see Documentation/admin-guide/devices.rst.
8607ca46eSDavid Howells  */
9607ca46eSDavid Howells 
10607ca46eSDavid Howells #define UNNAMED_MAJOR		0
11607ca46eSDavid Howells #define MEM_MAJOR		1
12607ca46eSDavid Howells #define RAMDISK_MAJOR		1
13607ca46eSDavid Howells #define FLOPPY_MAJOR		2
14607ca46eSDavid Howells #define PTY_MASTER_MAJOR	2
15607ca46eSDavid Howells #define IDE0_MAJOR		3
16607ca46eSDavid Howells #define HD_MAJOR		IDE0_MAJOR
17607ca46eSDavid Howells #define PTY_SLAVE_MAJOR		3
18607ca46eSDavid Howells #define TTY_MAJOR		4
19607ca46eSDavid Howells #define TTYAUX_MAJOR		5
20607ca46eSDavid Howells #define LP_MAJOR		6
21607ca46eSDavid Howells #define VCS_MAJOR		7
22607ca46eSDavid Howells #define LOOP_MAJOR		7
23607ca46eSDavid Howells #define SCSI_DISK0_MAJOR	8
24607ca46eSDavid Howells #define SCSI_TAPE_MAJOR		9
25607ca46eSDavid Howells #define MD_MAJOR		9
26607ca46eSDavid Howells #define MISC_MAJOR		10
27607ca46eSDavid Howells #define SCSI_CDROM_MAJOR	11
28607ca46eSDavid Howells #define MUX_MAJOR		11	/* PA-RISC only */
29607ca46eSDavid Howells #define XT_DISK_MAJOR		13
30607ca46eSDavid Howells #define INPUT_MAJOR		13
31607ca46eSDavid Howells #define SOUND_MAJOR		14
32607ca46eSDavid Howells #define CDU31A_CDROM_MAJOR	15
33607ca46eSDavid Howells #define JOYSTICK_MAJOR		15
34607ca46eSDavid Howells #define GOLDSTAR_CDROM_MAJOR	16
35607ca46eSDavid Howells #define OPTICS_CDROM_MAJOR	17
36607ca46eSDavid Howells #define SANYO_CDROM_MAJOR	18
37607ca46eSDavid Howells #define MITSUMI_X_CDROM_MAJOR	20
38607ca46eSDavid Howells #define MFM_ACORN_MAJOR		21	/* ARM Linux /dev/mfm */
39607ca46eSDavid Howells #define SCSI_GENERIC_MAJOR	21
40607ca46eSDavid Howells #define IDE1_MAJOR		22
41607ca46eSDavid Howells #define DIGICU_MAJOR		22
42607ca46eSDavid Howells #define DIGI_MAJOR		23
43607ca46eSDavid Howells #define MITSUMI_CDROM_MAJOR	23
44607ca46eSDavid Howells #define CDU535_CDROM_MAJOR	24
45607ca46eSDavid Howells #define STL_SERIALMAJOR		24
46607ca46eSDavid Howells #define MATSUSHITA_CDROM_MAJOR	25
47607ca46eSDavid Howells #define STL_CALLOUTMAJOR	25
48607ca46eSDavid Howells #define MATSUSHITA_CDROM2_MAJOR	26
49607ca46eSDavid Howells #define QIC117_TAPE_MAJOR	27
50607ca46eSDavid Howells #define MATSUSHITA_CDROM3_MAJOR	27
51607ca46eSDavid Howells #define MATSUSHITA_CDROM4_MAJOR	28
52607ca46eSDavid Howells #define STL_SIOMEMMAJOR		28
53607ca46eSDavid Howells #define ACSI_MAJOR		28
54607ca46eSDavid Howells #define AZTECH_CDROM_MAJOR	29
55607ca46eSDavid Howells #define FB_MAJOR		29   /* /dev/fb* framebuffers */
56f83c3838SEzequiel Garcia #define MTD_BLOCK_MAJOR		31
57607ca46eSDavid Howells #define CM206_CDROM_MAJOR	32
58607ca46eSDavid Howells #define IDE2_MAJOR		33
59607ca46eSDavid Howells #define IDE3_MAJOR		34
60607ca46eSDavid Howells #define Z8530_MAJOR		34
61607ca46eSDavid Howells #define XPRAM_MAJOR		35   /* Expanded storage on S/390: "slow ram"*/
62607ca46eSDavid Howells #define NETLINK_MAJOR		36
63607ca46eSDavid Howells #define PS2ESDI_MAJOR		36
64607ca46eSDavid Howells #define IDETAPE_MAJOR		37
65607ca46eSDavid Howells #define Z2RAM_MAJOR		37
66607ca46eSDavid Howells #define APBLOCK_MAJOR		38   /* AP1000 Block device */
67607ca46eSDavid Howells #define DDV_MAJOR		39   /* AP1000 DDV block device */
68607ca46eSDavid Howells #define NBD_MAJOR		43   /* Network block device	*/
69607ca46eSDavid Howells #define RISCOM8_NORMAL_MAJOR	48
70607ca46eSDavid Howells #define DAC960_MAJOR		48   /* 48..55 */
71607ca46eSDavid Howells #define RISCOM8_CALLOUT_MAJOR	49
72607ca46eSDavid Howells #define MKISS_MAJOR		55
73607ca46eSDavid Howells #define DSP56K_MAJOR		55   /* DSP56001 processor device */
74607ca46eSDavid Howells 
75607ca46eSDavid Howells #define IDE4_MAJOR		56
76607ca46eSDavid Howells #define IDE5_MAJOR		57
77607ca46eSDavid Howells 
78607ca46eSDavid Howells #define SCSI_DISK1_MAJOR	65
79607ca46eSDavid Howells #define SCSI_DISK2_MAJOR	66
80607ca46eSDavid Howells #define SCSI_DISK3_MAJOR	67
81607ca46eSDavid Howells #define SCSI_DISK4_MAJOR	68
82607ca46eSDavid Howells #define SCSI_DISK5_MAJOR	69
83607ca46eSDavid Howells #define SCSI_DISK6_MAJOR	70
84607ca46eSDavid Howells #define SCSI_DISK7_MAJOR	71
85607ca46eSDavid Howells 
86607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR	72
87607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR1	73
88607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR2	74
89607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR3	75
90607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR4	76
91607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR5	77
92607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR6	78
93607ca46eSDavid Howells #define COMPAQ_SMART2_MAJOR7	79
94607ca46eSDavid Howells 
95607ca46eSDavid Howells #define SPECIALIX_NORMAL_MAJOR	75
96607ca46eSDavid Howells #define SPECIALIX_CALLOUT_MAJOR	76
97607ca46eSDavid Howells 
98607ca46eSDavid Howells #define AURORA_MAJOR		79
99607ca46eSDavid Howells 
100607ca46eSDavid Howells #define I2O_MAJOR		80	/* 80->87 */
101607ca46eSDavid Howells 
102607ca46eSDavid Howells #define SHMIQ_MAJOR		85   /* Linux/mips, SGI /dev/shmiq */
103607ca46eSDavid Howells #define SCSI_CHANGER_MAJOR      86
104607ca46eSDavid Howells 
105607ca46eSDavid Howells #define IDE6_MAJOR		88
106607ca46eSDavid Howells #define IDE7_MAJOR		89
107607ca46eSDavid Howells #define IDE8_MAJOR		90
108f83c3838SEzequiel Garcia #define MTD_CHAR_MAJOR		90
109607ca46eSDavid Howells #define IDE9_MAJOR		91
110607ca46eSDavid Howells 
111607ca46eSDavid Howells #define DASD_MAJOR		94
112607ca46eSDavid Howells 
113607ca46eSDavid Howells #define MDISK_MAJOR		95
114607ca46eSDavid Howells 
115607ca46eSDavid Howells #define UBD_MAJOR		98
116607ca46eSDavid Howells 
117607ca46eSDavid Howells #define PP_MAJOR		99
118607ca46eSDavid Howells #define JSFD_MAJOR		99
119607ca46eSDavid Howells 
120607ca46eSDavid Howells #define PHONE_MAJOR		100
121607ca46eSDavid Howells 
122607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR	104
123607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR1	105
124607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR2      106
125607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR3      107
126607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR4      108
127607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR5      109
128607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR6      110
129607ca46eSDavid Howells #define COMPAQ_CISS_MAJOR7      111
130607ca46eSDavid Howells 
131607ca46eSDavid Howells #define VIODASD_MAJOR		112
132607ca46eSDavid Howells #define VIOCD_MAJOR		113
133607ca46eSDavid Howells 
134607ca46eSDavid Howells #define ATARAID_MAJOR		114
135607ca46eSDavid Howells 
136607ca46eSDavid Howells #define SCSI_DISK8_MAJOR	128
137607ca46eSDavid Howells #define SCSI_DISK9_MAJOR	129
138607ca46eSDavid Howells #define SCSI_DISK10_MAJOR	130
139607ca46eSDavid Howells #define SCSI_DISK11_MAJOR	131
140607ca46eSDavid Howells #define SCSI_DISK12_MAJOR	132
141607ca46eSDavid Howells #define SCSI_DISK13_MAJOR	133
142607ca46eSDavid Howells #define SCSI_DISK14_MAJOR	134
143607ca46eSDavid Howells #define SCSI_DISK15_MAJOR	135
144607ca46eSDavid Howells 
145607ca46eSDavid Howells #define UNIX98_PTY_MASTER_MAJOR	128
146607ca46eSDavid Howells #define UNIX98_PTY_MAJOR_COUNT	8
147607ca46eSDavid Howells #define UNIX98_PTY_SLAVE_MAJOR	(UNIX98_PTY_MASTER_MAJOR+UNIX98_PTY_MAJOR_COUNT)
148607ca46eSDavid Howells 
149607ca46eSDavid Howells #define DRBD_MAJOR		147
150607ca46eSDavid Howells #define RTF_MAJOR		150
151607ca46eSDavid Howells #define RAW_MAJOR		162
152607ca46eSDavid Howells 
153607ca46eSDavid Howells #define USB_ACM_MAJOR		166
154607ca46eSDavid Howells #define USB_ACM_AUX_MAJOR	167
155607ca46eSDavid Howells #define USB_CHAR_MAJOR		180
156607ca46eSDavid Howells 
157607ca46eSDavid Howells #define MMC_BLOCK_MAJOR		179
158607ca46eSDavid Howells 
159607ca46eSDavid Howells #define VXVM_MAJOR		199	/* VERITAS volume i/o driver    */
160607ca46eSDavid Howells #define VXSPEC_MAJOR		200	/* VERITAS volume config driver */
161607ca46eSDavid Howells #define VXDMP_MAJOR		201	/* VERITAS volume multipath driver */
162607ca46eSDavid Howells 
163607ca46eSDavid Howells #define XENVBD_MAJOR		202	/* Xen virtual block device */
164607ca46eSDavid Howells 
165607ca46eSDavid Howells #define MSR_MAJOR		202
166607ca46eSDavid Howells #define CPUID_MAJOR		203
167607ca46eSDavid Howells 
168607ca46eSDavid Howells #define OSST_MAJOR		206	/* OnStream-SCx0 SCSI tape */
169607ca46eSDavid Howells 
170607ca46eSDavid Howells #define IBM_TTY3270_MAJOR	227
171607ca46eSDavid Howells #define IBM_FS3270_MAJOR	228
172607ca46eSDavid Howells 
173607ca46eSDavid Howells #define VIOTAPE_MAJOR		230
174607ca46eSDavid Howells 
175607ca46eSDavid Howells #define BLOCK_EXT_MAJOR		259
176607ca46eSDavid Howells #define SCSI_OSD_MAJOR		260	/* open-osd's OSD scsi device */
177607ca46eSDavid Howells 
178607ca46eSDavid Howells #endif
179