root/include/linux/major.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


DEFINITIONS

This source file includes following definitions.
  1. scsi_major

   1 #ifndef _LINUX_MAJOR_H
   2 #define _LINUX_MAJOR_H
   3 
   4 /*
   5  * This file has definitions for major device numbers
   6  */
   7 
   8 /* limits */
   9 
  10 #define MAX_CHRDEV 64
  11 #define MAX_BLKDEV 64
  12 
  13 /*
  14  * assignments
  15  *
  16  * devices are as follows (same as minix, so we can use the minix fs):
  17  *
  18  *      character              block                  comments
  19  *      --------------------   --------------------   --------------------
  20  *  0 - unnamed                unnamed                minor 0 = true nodev
  21  *  1 - /dev/mem               ramdisk
  22  *  2 - /dev/ptyp*             floppy
  23  *  3 - /dev/ttyp*             ide0 or hd
  24  *  4 - /dev/tty*
  25  *  5 - /dev/tty; /dev/cua*
  26  *  6 - lp
  27  *  7 - /dev/vcs*
  28  *  8 -                        scsi disk
  29  *  9 - scsi tape              multiple devices driver
  30  * 10 - mice
  31  * 11 -                        scsi cdrom
  32  * 12 - qic02 tape
  33  * 13 -                        xt disk
  34  * 14 - sound card
  35  * 15 -                        cdu31a cdrom
  36  * 16 - sockets                goldstar cdrom
  37  * 17 - af_unix                optics cdrom
  38  * 18 - af_inet                sanyo cdrom
  39  * 19 - cyclades /dev/ttyC*
  40  * 20 - cyclades /dev/cub*     mitsumi (mcdx) cdrom
  41  * 21 - scsi generic
  42  * 22 -                        ide1
  43  * 23 -                        mitsumi cdrom
  44  * 24 -                        sony535 cdrom
  45  * 25 -                        matsushita cdrom       minors 0..3
  46  * 26 -                        matsushita cdrom 2     minors 0..3
  47  * 27 - qic117 tape            matsushita cdrom 3     minors 0..3
  48  * 28 -                        matsushita cdrom 4     minors 0..3
  49  * 29 -                        aztech/orchid/okano/wearnes cdrom
  50  * 32 -                        philips/lms cm206 cdrom
  51  * 33 -                        ide2
  52  * 34 - z8530 driver           ide3
  53  * 36 - netlink
  54  */
  55 
  56 #define UNNAMED_MAJOR   0
  57 #define MEM_MAJOR       1
  58 #define RAMDISK_MAJOR   1
  59 #define FLOPPY_MAJOR    2
  60 #define PTY_MASTER_MAJOR 2
  61 #define IDE0_MAJOR      3
  62 #define PTY_SLAVE_MAJOR 3
  63 #define HD_MAJOR        IDE0_MAJOR
  64 #define TTY_MAJOR       4
  65 #define TTYAUX_MAJOR    5
  66 #define LP_MAJOR        6
  67 #define VCS_MAJOR       7
  68 #define SCSI_DISK_MAJOR 8
  69 #define SCSI_TAPE_MAJOR 9
  70 #define MD_MAJOR        9
  71 #define MOUSE_MAJOR     10
  72 #define SCSI_CDROM_MAJOR 11
  73 #define QIC02_TAPE_MAJOR 12
  74 #define XT_DISK_MAJOR   13
  75 #define SOUND_MAJOR     14
  76 #define CDU31A_CDROM_MAJOR 15
  77 #define SOCKET_MAJOR    16
  78 #define GOLDSTAR_CDROM_MAJOR 16
  79 #define AF_UNIX_MAJOR   17
  80 #define OPTICS_CDROM_MAJOR 17
  81 #define AF_INET_MAJOR   18
  82 #define SANYO_CDROM_MAJOR 18
  83 #define CYCLADES_MAJOR  19
  84 #define CYCLADESAUX_MAJOR 20
  85 #define MITSUMI_X_CDROM_MAJOR 20
  86 #define SCSI_GENERIC_MAJOR 21
  87 #define Z8530_MAJOR 34
  88 #define IDE1_MAJOR      22
  89 #define MITSUMI_CDROM_MAJOR 23
  90 #define CDU535_CDROM_MAJOR 24
  91 #define STL_SERIALMAJOR 24
  92 #define MATSUSHITA_CDROM_MAJOR 25
  93 #define STL_CALLOUTMAJOR 25
  94 #define MATSUSHITA_CDROM2_MAJOR 26
  95 #define QIC117_TAPE_MAJOR 27
  96 #define MATSUSHITA_CDROM3_MAJOR 27
  97 #define MATSUSHITA_CDROM4_MAJOR 28
  98 #define STL_SIOMEMMAJOR 28
  99 #define AZTECH_CDROM_MAJOR 29
 100 #define CM206_CDROM_MAJOR 32
 101 #define IDE2_MAJOR      33
 102 #define IDE3_MAJOR      34
 103 #define NETLINK_MAJOR   36
 104 #define IDETAPE_MAJOR   37
 105 
 106 /*
 107  * Tests for SCSI devices.
 108  */
 109 
 110 #define SCSI_MAJOR(M) \
 111   ((M) == SCSI_DISK_MAJOR       \
 112    || (M) == SCSI_TAPE_MAJOR    \
 113    || (M) == SCSI_CDROM_MAJOR   \
 114    || (M) == SCSI_GENERIC_MAJOR)
 115 
 116 static inline int scsi_major(int m) {
     /* [previous][next][first][last][top][bottom][index][help] */
 117         return SCSI_MAJOR(m);
 118 }
 119 
 120 #endif

/* [previous][next][first][last][top][bottom][index][help] */