4 #include <minix/sys_config.h>
7 /*===========================================================================*
8 * Major and minor device numbers *
9 *===========================================================================*/
11 /* Major device numbers. */
12 #define NONE_MAJOR 0 /* 0 = not used */
13 #define MEMORY_MAJOR 1 /* 1 = /dev/mem (memory devices) */
14 #define FLOPPY_MAJOR 2 /* 2 = /dev/fd0 (floppy disks) */
16 #define TTY_MAJOR 4 /* 4 = /dev/tty00 (ttys) */
17 #define CTTY_MAJOR 5 /* 5 = /dev/tty */
18 #define PRINTER_MAJOR 6 /* 6 = /dev/lp (printer driver) */
19 #define INET_MAJOR 7 /* 7 = /dev/ip (inet) */
21 #define PTY_MAJOR 9 /* 9 = /dev/ptyp0 (pty driver) */
23 #define FILTER_MAJOR 11 /* 11 = /dev/filter (filter driver) */
25 #define AUDIO_MAJOR 13 /* 13 = /dev/audio (audio driver) */
26 #define FBD_MAJOR 14 /* 14 = /dev/fbd (faulty block dev)*/
27 #define LOG_MAJOR 15 /* 15 = /dev/klog (log driver) */
28 #define RANDOM_MAJOR 16 /* 16 = /dev/random (random driver) */
29 #define HELLO_MAJOR 17 /* 17 = /dev/hello (hello driver) */
30 #define UDS_MAJOR 18 /* 18 = /dev/uds (pfs) */
31 #define FB_MAJOR 19 /* 18 = /dev/fb0 (fb driver) */
32 #define I2C0_MAJOR 20 /* 20 = /dev/i2c-1 (i2c-dev) */
33 #define I2C1_MAJOR 21 /* 21 = /dev/i2c-2 (i2c-dev) */
34 #define I2C2_MAJOR 22 /* 22 = /dev/i2c-3 (i2c-dev) */
35 #define EEPROMB1S50_MAJOR 23 /* 23 = /dev/eepromb1s50 (cat24c256) */
36 #define EEPROMB1S51_MAJOR 24 /* 24 = /dev/eepromb1s51 (cat24c256) */
37 #define EEPROMB1S52_MAJOR 25 /* 25 = /dev/eepromb1s52 (cat24c256) */
38 #define EEPROMB1S53_MAJOR 26 /* 26 = /dev/eepromb1s53 (cat24c256) */
39 #define EEPROMB1S54_MAJOR 27 /* 27 = /dev/eepromb1s54 (cat24c256) */
40 #define EEPROMB1S55_MAJOR 28 /* 28 = /dev/eepromb1s55 (cat24c256) */
41 #define EEPROMB1S56_MAJOR 29 /* 29 = /dev/eepromb1s56 (cat24c256) */
42 #define EEPROMB1S57_MAJOR 30 /* 30 = /dev/eepromb1s57 (cat24c256) */
43 #define EEPROMB2S50_MAJOR 31 /* 31 = /dev/eepromb2s50 (cat24c256) */
44 #define EEPROMB2S51_MAJOR 32 /* 32 = /dev/eepromb2s51 (cat24c256) */
45 #define EEPROMB2S52_MAJOR 33 /* 33 = /dev/eepromb2s52 (cat24c256) */
46 #define EEPROMB2S53_MAJOR 34 /* 34 = /dev/eepromb2s53 (cat24c256) */
47 #define EEPROMB2S54_MAJOR 35 /* 35 = /dev/eepromb2s54 (cat24c256) */
48 #define EEPROMB2S55_MAJOR 36 /* 36 = /dev/eepromb2s55 (cat24c256) */
49 #define EEPROMB2S56_MAJOR 37 /* 37 = /dev/eepromb2s56 (cat24c256) */
50 #define EEPROMB2S57_MAJOR 38 /* 38 = /dev/eepromb2s57 (cat24c256) */
51 #define EEPROMB3S50_MAJOR 39 /* 39 = /dev/eepromb3s50 (cat24c256) */
52 #define EEPROMB3S51_MAJOR 40 /* 40 = /dev/eepromb3s51 (cat24c256) */
53 #define EEPROMB3S52_MAJOR 41 /* 41 = /dev/eepromb3s52 (cat24c256) */
54 #define EEPROMB3S53_MAJOR 42 /* 42 = /dev/eepromb3s53 (cat24c256) */
55 #define EEPROMB3S54_MAJOR 43 /* 43 = /dev/eepromb3s54 (cat24c256) */
56 #define EEPROMB3S55_MAJOR 44 /* 44 = /dev/eepromb3s55 (cat24c256) */
57 #define EEPROMB3S56_MAJOR 45 /* 45 = /dev/eepromb3s56 (cat24c256) */
58 #define EEPROMB3S57_MAJOR 46 /* 46 = /dev/eepromb3s57 (cat24c256) */
59 #define TSL2550B1S39_MAJOR 47 /* 47 = /dev/tsl2550b1s39 (tsl2550) */
60 #define TSL2550B2S39_MAJOR 48 /* 48 = /dev/tsl2550b2s39 (tsl2550) */
61 #define TSL2550B3S39_MAJOR 49 /* 49 = /dev/tsl2550b3s39 (tsl2550) */
62 #define SHT21B1S40_MAJOR 50 /* 50 = /dev/sht21b1s40 (sht21) */
63 #define SHT21B2S40_MAJOR 51 /* 51 = /dev/sht21b2s40 (sht21) */
64 #define SHT21B3S40_MAJOR 52 /* 52 = /dev/sht21b3s40 (sht21) */
65 #define BMP085B1S77_MAJOR 53 /* 53 = /dev/bmp085b1s77 (bmp085) */
66 #define BMP085B2S77_MAJOR 54 /* 54 = /dev/bmp085b2s77 (bmp085) */
67 #define BMP085B3S77_MAJOR 55 /* 55 = /dev/bmp085b3s77 (bmp085) */
68 /* 56-63 = /dev/vnd[0-7] (vnd) */
69 #define INPUT_MAJOR 64 /* 64 = /dev/input (input) */
71 #define NR_DEVICES 65 /* number of (major) devices */
73 /* Minor device numbers for memory driver. */
74 # define RAM_DEV_OLD 0 /* minor device for /dev/ram */
75 # define MEM_DEV 1 /* minor device for /dev/mem */
76 # define KMEM_DEV 2 /* minor device for /dev/kmem */
77 # define NULL_DEV 3 /* minor device for /dev/null */
78 # define BOOT_DEV 4 /* minor device for /dev/boot */
79 # define ZERO_DEV 5 /* minor device for /dev/zero */
80 # define IMGRD_DEV 6 /* minor device for /dev/imgrd */
81 # define RAM_DEV_FIRST 7 /* first minor device for /dev/ram* */
83 #define CTRLR(n) ((n)==0 ? 3 : (8 + 2*((n)-1))) /* magic formula */
85 /* Minor device numbers for log driver. */
86 # define IS_KLOG_DEV 0 /* minor device for /dev/klog */
88 /* Full device numbers that are special to the boot monitor and FS. */
89 # define DEV_RAM ((dev_t) 0x0100) /* device number of /dev/ram */
90 # define DEV_IMGRD ((dev_t) 0x0106) /* device number of /dev/imgrd */