1 /* conf.h 3.7 07/01/80 */ 2 3 /* 4 * Declaration of block device 5 * switch. Each entry (row) is 6 * the only link between the 7 * main unix code and the driver. 8 * The initialization of the 9 * device switches is in the 10 * file conf.c. 11 */ 12 extern struct bdevsw 13 { 14 int (*d_open)(); 15 int (*d_close)(); 16 int (*d_strategy)(); 17 struct buf *d_tab; 18 } bdevsw[]; 19 20 /* 21 * Character device switch. 22 */ 23 extern struct cdevsw 24 { 25 int (*d_open)(); 26 int (*d_close)(); 27 int (*d_read)(); 28 int (*d_write)(); 29 int (*d_ioctl)(); 30 int (*d_stop)(); 31 int (*d_reset)(); 32 struct tty *d_ttys; 33 } cdevsw[]; 34 35 /* 36 * tty line control switch. 37 */ 38 extern struct linesw 39 { 40 int (*l_open)(); 41 int (*l_close)(); 42 int (*l_read)(); 43 char *(*l_write)(); 44 int (*l_ioctl)(); 45 int (*l_rint)(); 46 int (*l_rend)(); 47 int (*l_meta)(); 48 int (*l_start)(); 49 int (*l_modem)(); 50 } linesw[]; 51 52 /* 53 * Swap device information 54 */ 55 extern struct swdevt 56 { 57 dev_t sw_dev; 58 int sw_freed; 59 } swdevt[]; 60