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  * For the device number assignments, see Documentation/devices.txt.
   7  */
   8 
   9 /* limits */
  10 
  11 #define MAX_CHRDEV 64
  12 #define MAX_BLKDEV 64
  13 
  14 #define UNNAMED_MAJOR   0
  15 #define MEM_MAJOR       1
  16 #define RAMDISK_MAJOR   1
  17 #define FLOPPY_MAJOR    2
  18 #define PTY_MASTER_MAJOR 2
  19 #define IDE0_MAJOR      3
  20 #define PTY_SLAVE_MAJOR 3
  21 #define HD_MAJOR        IDE0_MAJOR
  22 #define TTY_MAJOR       4
  23 #define TTYAUX_MAJOR    5
  24 #define LP_MAJOR        6
  25 #define VCS_MAJOR       7
  26 #define LOOP_MAJOR      7
  27 #define SCSI_DISK_MAJOR 8
  28 #define SCSI_TAPE_MAJOR 9
  29 #define MD_MAJOR        9
  30 #define MOUSE_MAJOR     10
  31 #define SCSI_CDROM_MAJOR 11
  32 #define QIC02_TAPE_MAJOR 12
  33 #define XT_DISK_MAJOR   13
  34 #define SOUND_MAJOR     14
  35 #define CDU31A_CDROM_MAJOR 15
  36 #define SOCKET_MAJOR    16
  37 #define GOLDSTAR_CDROM_MAJOR 16
  38 #define AF_UNIX_MAJOR   17
  39 #define OPTICS_CDROM_MAJOR 17
  40 #define AF_INET_MAJOR   18
  41 #define SANYO_CDROM_MAJOR 18
  42 #define CYCLADES_MAJOR  19
  43 #define CYCLADESAUX_MAJOR 20
  44 #define MITSUMI_X_CDROM_MAJOR 20
  45 #define SCSI_GENERIC_MAJOR 21
  46 #define Z8530_MAJOR 34
  47 #define IDE1_MAJOR      22
  48 #define MITSUMI_CDROM_MAJOR 23
  49 #define CDU535_CDROM_MAJOR 24
  50 #define STL_SERIALMAJOR 24
  51 #define MATSUSHITA_CDROM_MAJOR 25
  52 #define STL_CALLOUTMAJOR 25
  53 #define MATSUSHITA_CDROM2_MAJOR 26
  54 #define QIC117_TAPE_MAJOR 27
  55 #define MATSUSHITA_CDROM3_MAJOR 27
  56 #define MATSUSHITA_CDROM4_MAJOR 28
  57 #define STL_SIOMEMMAJOR 28
  58 #define AZTECH_CDROM_MAJOR 29
  59 #define CM206_CDROM_MAJOR 32
  60 #define IDE2_MAJOR      33
  61 #define IDE3_MAJOR      34
  62 #define NETLINK_MAJOR   36
  63 #define IDETAPE_MAJOR   37
  64 
  65 /*
  66  * Tests for SCSI devices.
  67  */
  68 
  69 #define SCSI_MAJOR(M) \
  70   ((M) == SCSI_DISK_MAJOR       \
  71    || (M) == SCSI_TAPE_MAJOR    \
  72    || (M) == SCSI_CDROM_MAJOR   \
  73    || (M) == SCSI_GENERIC_MAJOR)
  74 
  75 static inline int scsi_major(int m) {
     /* [previous][next][first][last][top][bottom][index][help] */
  76         return SCSI_MAJOR(m);
  77 }
  78 
  79 #endif

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