4 #include <minix/sys_config.h>
7 enum dev_style
{ STYLE_DEV
, STYLE_NDEV
, STYLE_TTY
, STYLE_CLONE
};
9 /*===========================================================================*
10 * Major and minor device numbers *
11 *===========================================================================*/
13 /* Total number of different devices. */
14 #define NR_DEVICES 32 /* number of (major) devices */
16 #define NONE_MAJOR 0 /* pseudo device for mounting file
17 * systems without a real block device
20 /* Major and minor device numbers for MEMORY driver. */
21 #define MEMORY_MAJOR 1 /* major device for memory devices */
22 # define RAM_DEV_OLD 0 /* minor device for /dev/ram */
23 # define MEM_DEV 1 /* minor device for /dev/mem */
24 # define KMEM_DEV 2 /* minor device for /dev/kmem */
25 # define NULL_DEV 3 /* minor device for /dev/null */
26 # define BOOT_DEV 4 /* minor device for /dev/boot */
27 # define ZERO_DEV 5 /* minor device for /dev/zero */
28 # define IMGRD_DEV 6 /* minor device for /dev/imgrd */
29 # define RAM_DEV_FIRST 7 /* first minor device for /dev/ram* */
31 #define CTRLR(n) ((n)==0 ? 3 : (8 + 2*((n)-1))) /* magic formula */
33 /* Full device numbers that are special to the boot monitor and FS. */
34 # define DEV_RAM 0x0100 /* device number of /dev/ram */
35 # define DEV_IMGRD 0x0106 /* device number of /dev/imgrd */
37 #define FLOPPY_MAJOR 2 /* major device for floppy disks */
38 #define TTY_MAJOR 4 /* major device for ttys */
39 #define CTTY_MAJOR 5 /* major device for /dev/tty */
41 #define INET_MAJOR 7 /* major device for inet */
43 #define FILTER_MAJOR 11 /* major device for filter driver */
45 #define LOG_MAJOR 15 /* major device for log driver */
46 # define IS_KLOG_DEV 0 /* minor device for /dev/klog */
48 #define HELLO_MAJOR 17 /* major device for hello driver */