Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

major.h

Go to the documentation of this file.
00001 #ifndef _LINUX_MAJOR_H
00002 #define _LINUX_MAJOR_H
00003 
00004 /*
00005  * This file has definitions for major device numbers.
00006  * For the device number assignments, see Documentation/devices.txt.
00007  */
00008 
00009 /* limits */
00010 
00011 /*
00012  * Important: Don't change this to 256.  Major number 255 is and must be
00013  * reserved for future expansion into a larger dev_t space.
00014  */
00015 #define MAX_CHRDEV      255
00016 #define MAX_BLKDEV      255
00017 
00018 #define UNNAMED_MAJOR   0
00019 #define MEM_MAJOR       1
00020 #define RAMDISK_MAJOR   1
00021 #define FLOPPY_MAJOR    2
00022 #define PTY_MASTER_MAJOR 2
00023 #define IDE0_MAJOR      3
00024 #define PTY_SLAVE_MAJOR 3
00025 #define HD_MAJOR        IDE0_MAJOR
00026 #define TTY_MAJOR       4
00027 #define TTYAUX_MAJOR    5
00028 #define LP_MAJOR        6
00029 #define VCS_MAJOR       7
00030 #define LOOP_MAJOR      7
00031 #define SCSI_DISK0_MAJOR 8
00032 #define SCSI_TAPE_MAJOR 9
00033 #define MD_MAJOR        9
00034 #define MISC_MAJOR      10
00035 #define SCSI_CDROM_MAJOR 11
00036 #define QIC02_TAPE_MAJOR 12
00037 #define XT_DISK_MAJOR   13
00038 #define SOUND_MAJOR     14
00039 #define CDU31A_CDROM_MAJOR 15
00040 #define JOYSTICK_MAJOR  15
00041 #define GOLDSTAR_CDROM_MAJOR 16
00042 #define OPTICS_CDROM_MAJOR 17
00043 #define SANYO_CDROM_MAJOR 18
00044 #define CYCLADES_MAJOR  19
00045 #define CYCLADESAUX_MAJOR 20
00046 #define MITSUMI_X_CDROM_MAJOR 20
00047 #define MFM_ACORN_MAJOR 21      /* ARM Linux /dev/mfm */
00048 #define SCSI_GENERIC_MAJOR 21
00049 #define Z8530_MAJOR 34
00050 #define DIGI_MAJOR 23
00051 #define IDE1_MAJOR      22
00052 #define DIGICU_MAJOR 22
00053 #define MITSUMI_CDROM_MAJOR 23
00054 #define CDU535_CDROM_MAJOR 24
00055 #define STL_SERIALMAJOR 24
00056 #define MATSUSHITA_CDROM_MAJOR 25
00057 #define STL_CALLOUTMAJOR 25
00058 #define MATSUSHITA_CDROM2_MAJOR 26
00059 #define QIC117_TAPE_MAJOR 27
00060 #define MATSUSHITA_CDROM3_MAJOR 27
00061 #define MATSUSHITA_CDROM4_MAJOR 28
00062 #define STL_SIOMEMMAJOR 28
00063 #define ACSI_MAJOR      28
00064 #define AZTECH_CDROM_MAJOR 29
00065 #define GRAPHDEV_MAJOR  29      /* SparcLinux & Linux/68k /dev/fb */
00066 #define SHMIQ_MAJOR     85      /* Linux/MIPS, SGI /dev/shmiq */
00067 #define CM206_CDROM_MAJOR 32
00068 #define IDE2_MAJOR      33
00069 #define IDE3_MAJOR      34
00070 #define XPRAM_MAJOR     35      /* expanded storage on S/390 = "slow ram" */
00071                                 /* proposed by Peter                      */
00072 #define NETLINK_MAJOR   36
00073 #define PS2ESDI_MAJOR   36
00074 #define IDETAPE_MAJOR   37
00075 #define Z2RAM_MAJOR     37
00076 #define APBLOCK_MAJOR   38   /* AP1000 Block device */
00077 #define DDV_MAJOR       39   /* AP1000 DDV block device */
00078 #define NBD_MAJOR       43   /* Network block device    */
00079 #define RISCOM8_NORMAL_MAJOR 48
00080 #define DAC960_MAJOR    48      /* 48..55 */
00081 #define RISCOM8_CALLOUT_MAJOR 49
00082 #define MKISS_MAJOR     55
00083 #define DSP56K_MAJOR    55   /* DSP56001 processor device */
00084 
00085 #define IDE4_MAJOR      56
00086 #define IDE5_MAJOR      57
00087 
00088 #define SCSI_DISK1_MAJOR        65
00089 #define SCSI_DISK2_MAJOR        66
00090 #define SCSI_DISK3_MAJOR        67
00091 #define SCSI_DISK4_MAJOR        68
00092 #define SCSI_DISK5_MAJOR        69
00093 #define SCSI_DISK6_MAJOR        70
00094 #define SCSI_DISK7_MAJOR        71
00095 
00096 #define LVM_BLK_MAJOR   58      /* Logical Volume Manager */
00097 
00098 #define COMPAQ_SMART2_MAJOR     72
00099 #define COMPAQ_SMART2_MAJOR1    73
00100 #define COMPAQ_SMART2_MAJOR2    74
00101 #define COMPAQ_SMART2_MAJOR3    75
00102 #define COMPAQ_SMART2_MAJOR4    76
00103 #define COMPAQ_SMART2_MAJOR5    77
00104 #define COMPAQ_SMART2_MAJOR6    78
00105 #define COMPAQ_SMART2_MAJOR7    79
00106 
00107 #define I2O_MAJOR               80      /* 80->87 */
00108 
00109 #define SPECIALIX_NORMAL_MAJOR 75
00110 #define SPECIALIX_CALLOUT_MAJOR 76
00111 
00112 #define COMPAQ_CISS_MAJOR       104
00113 #define COMPAQ_CISS_MAJOR1      105
00114 #define COMPAQ_CISS_MAJOR2      106
00115 #define COMPAQ_CISS_MAJOR3      107
00116 #define COMPAQ_CISS_MAJOR4      108
00117 #define COMPAQ_CISS_MAJOR5      109
00118 #define COMPAQ_CISS_MAJOR6      110
00119 #define COMPAQ_CISS_MAJOR7      111
00120 
00121 #define DASD_MAJOR      94      /* Official assignations from Peter */
00122 
00123 #define LVM_CHAR_MAJOR  109     /* Logical Volume Manager */
00124 
00125 #define MDISK_MAJOR     95      /* Official assignations from Peter */
00126 
00127 #define AURORA_MAJOR 79
00128 
00129 #define UNIX98_PTY_MASTER_MAJOR 128
00130 #define UNIX98_PTY_MAJOR_COUNT  8
00131 #define UNIX98_PTY_SLAVE_MAJOR  (UNIX98_PTY_MASTER_MAJOR+UNIX98_PTY_MAJOR_COUNT)
00132 
00133 #define MSR_MAJOR 202
00134 #define CPUID_MAJOR 203
00135 
00136 #define OSST_MAJOR      206     /* OnStream-SCx0 SCSI tape */
00137 
00138 /*
00139  * Tests for SCSI devices.
00140  */
00141 
00142 #define SCSI_DISK_MAJOR(M) ((M) == SCSI_DISK0_MAJOR || \
00143   ((M) >= SCSI_DISK1_MAJOR && (M) <= SCSI_DISK7_MAJOR))
00144   
00145 #define SCSI_BLK_MAJOR(M) \
00146   (SCSI_DISK_MAJOR(M)   \
00147    || (M) == SCSI_CDROM_MAJOR)
00148 
00149 static __inline__ int scsi_blk_major(int m) {
00150         return SCSI_BLK_MAJOR(m);
00151 }
00152 
00153 #endif