OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [linux/] [major.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#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 128
12
#define MAX_BLKDEV 128
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 MISC_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 JOYSTICK_MAJOR  15
37
#define GOLDSTAR_CDROM_MAJOR 16
38
#define OPTICS_CDROM_MAJOR 17
39
#define SANYO_CDROM_MAJOR 18
40
#define CYCLADES_MAJOR  19
41
#define CYCLADESAUX_MAJOR 20
42
#define MITSUMI_X_CDROM_MAJOR 20
43
#define SCSI_GENERIC_MAJOR 21
44
#define Z8530_MAJOR 34
45
#define DIGI_MAJOR 23
46
#define IDE1_MAJOR      22
47
#define DIGICU_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 ACSI_MAJOR      28
59
#define AZTECH_CDROM_MAJOR 29
60
#define GRAPHDEV_MAJOR  29      /* SparcLinux & Linux/68k /dev/fb */
61
#define BLKMEM_MAJOR    31
62
#define CM206_CDROM_MAJOR 32
63
#define IDE2_MAJOR      33
64
#define IDE3_MAJOR      34
65
#define NETLINK_MAJOR   36
66
#define IDETAPE_MAJOR   37
67
#define Z2RAM_MAJOR     37
68
#define RISCOM8_NORMAL_MAJOR 48
69
#define DAC960_MAJOR    48      /* 48..55 */
70
#define RISCOM8_CALLOUT_MAJOR 49
71
#define MKISS_MAJOR     55
72
#define APBLOCK_MAJOR   60   /* AP1000 Block device */
73
#define DDV_MAJOR       61   /* AP1000 DDV block device */
74
 
75
#define COMPAQ_SMART2_MAJOR     72
76
#define COMPAQ_SMART2_MAJOR1    73
77
#define COMPAQ_SMART2_MAJOR2    74
78
#define COMPAQ_SMART2_MAJOR3    75
79
#define COMPAQ_SMART2_MAJOR4    76
80
#define COMPAQ_SMART2_MAJOR5    77
81
#define COMPAQ_SMART2_MAJOR6    78
82
#define COMPAQ_SMART2_MAJOR7    79
83
 
84
#define SPECIALIX_NORMAL_MAJOR 75
85
#define SPECIALIX_CALLOUT_MAJOR 76
86
 
87
/*
88
 * Tests for SCSI devices.
89
 */
90
 
91
#define SCSI_BLK_MAJOR(M) \
92
  ((M) == SCSI_DISK_MAJOR       \
93
   || (M) == SCSI_CDROM_MAJOR)
94
 
95
static __inline__ int scsi_blk_major(int m) {
96
        return SCSI_BLK_MAJOR(m);
97
}
98
 
99
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.