source: GPL/trunk/include/linux/major.h

Last change on this file was 679, checked in by David Azarewicz, 4 years ago

Merge changes from Paul's uniaud32next branch.

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