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 32
  11 #define MAX_BLKDEV 32
  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 -                        floppy
  23  *  3 -                        hd
  24  *  4 - /dev/tty*
  25  *  5 - /dev/tty; /dev/cua*
  26  *  6 - lp
  27  *  7 -                                               UNUSED
  28  *  8 -                        scsi disk
  29  *  9 - scsi tape
  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
  37  * 17 - af_unix
  38  * 18 - af_inet
  39  * 19 -                                               UNUSED
  40  * 20 -                                               UNUSED
  41  * 21 - scsi generic
  42  * 22 -                        (at2disk)
  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  */
  50 
  51 #define UNNAMED_MAJOR   0
  52 #define MEM_MAJOR       1
  53 #define FLOPPY_MAJOR    2
  54 #define HD_MAJOR        3
  55 #define TTY_MAJOR       4
  56 #define TTYAUX_MAJOR    5
  57 #define LP_MAJOR        6
  58 /* unused: 7 */
  59 #define SCSI_DISK_MAJOR 8
  60 #define SCSI_TAPE_MAJOR 9
  61 #define MOUSE_MAJOR     10
  62 #define SCSI_CDROM_MAJOR 11
  63 #define QIC02_TAPE_MAJOR 12
  64 #define XT_DISK_MAJOR   13
  65 #define SOUND_MAJOR     14
  66 #define CDU31A_CDROM_MAJOR 15
  67 #define SOCKET_MAJOR    16
  68 #define AF_UNIX_MAJOR   17
  69 #define AF_INET_MAJOR   18
  70 /* unused: 19, 20 */
  71 #define SCSI_GENERIC_MAJOR 21
  72 /* unused: 22 */
  73 #define MITSUMI_CDROM_MAJOR 23
  74 #define CDU535_CDROM_MAJOR 24
  75 #define MATSUSHITA_CDROM_MAJOR 25
  76 #define MATSUSHITA_CDROM2_MAJOR 26
  77 #define MATSUSHITA_CDROM3_MAJOR 27
  78 #define MATSUSHITA_CDROM4_MAJOR 28
  79 #define QIC117_TAPE_MAJOR 27
  80 
  81 /*
  82  * Tests for SCSI devices.
  83  */
  84 
  85 #define SCSI_MAJOR(M) \
  86   ((M) == SCSI_DISK_MAJOR       \
  87    || (M) == SCSI_TAPE_MAJOR    \
  88    || (M) == SCSI_CDROM_MAJOR   \
  89    || (M) == SCSI_GENERIC_MAJOR)
  90 
  91 static inline int scsi_major(int m) {
     /* [previous][next][first][last][top][bottom][index][help] */
  92         return SCSI_MAJOR(m);
  93 }
  94 
  95 #endif

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