| 1 | /* |
| 2 | * Declaration of block device |
| 3 | * switch. Each entry (row) is |
| 4 | * the only link between the |
| 5 | * main unix code and the driver. |
| 6 | * The initialization of the |
| 7 | * device switches is in the |
| 8 | * file conf.c. |
| 9 | */ |
| 10 | extern struct bdevsw |
| 11 | { |
| 12 | int (*d_open)(); |
| 13 | int (*d_close)(); |
| 14 | int (*d_strategy)(); |
| 15 | struct buf *d_tab; |
| 16 | } bdevsw[]; |
| 17 | |
| 18 | /* |
| 19 | * Character device switch. |
| 20 | */ |
| 21 | extern struct cdevsw |
| 22 | { |
| 23 | int (*d_open)(); |
| 24 | int (*d_close)(); |
| 25 | int (*d_read)(); |
| 26 | int (*d_write)(); |
| 27 | int (*d_ioctl)(); |
| 28 | struct tty *d_ttys; |
| 29 | } cdevsw[]; |
| 30 | |
| 31 | /* |
| 32 | * tty line control switch. |
| 33 | */ |
| 34 | extern struct linesw |
| 35 | { |
| 36 | int (*l_open)(); |
| 37 | int (*l_close)(); |
| 38 | int (*l_read)(); |
| 39 | int (*l_write)(); |
| 40 | int (*l_ioctl)(); |
| 41 | int (*l_rint)(); |
| 42 | int (*l_start)(); |
| 43 | } linesw[]; |