1 /* tty_conf.c 4.2 82/10/17 */ 2 3 #include "../h/param.h" 4 #include "../h/systm.h" 5 #include "../h/buf.h" 6 #include "../h/tty.h" 7 #include "../h/conf.h" 8 9 int nodev(); 10 int nulldev(); 11 12 int ttyopen(),ttyclose(),ttread(),ttwrite(),nullioctl(),ttstart(); 13 int ttyinput(); 14 15 #include "bk.h" 16 #if NBK > 0 17 int bkopen(),bkclose(),bkread(),bkinput(),bkioctl(); 18 #endif 19 20 #include "tb.h" 21 #if NTB > 0 22 int tbopen(),tbclose(),tbread(),tbinput(),tbioctl(); 23 #endif 24 25 struct linesw linesw[] = 26 { 27 ttyopen, nodev, ttread, ttwrite, nullioctl, 28 ttyinput, nodev, nulldev, ttstart, nulldev, 29 #if NBK > 0 30 bkopen, bkclose, bkread, ttwrite, bkioctl, 31 bkinput, nodev, nulldev, ttstart, nulldev, 32 #else 33 nodev, nodev, nodev, nodev, nodev, 34 nodev, nodev, nodev, nodev, nodev, 35 #endif 36 ttyopen, ttyclose, ttread, ttwrite, nullioctl, 37 ttyinput, nodev, nulldev, ttstart, nulldev, 38 #if NTB > 0 39 tbopen, tbclose, tbread, nodev, tbioctl, 40 tbinput, nodev, nulldev, ttstart, nulldev, /* 3 */ 41 #else 42 nodev, nodev, nodev, nodev, nodev, 43 nodev, nodev, nodev, nodev, nodev, 44 #endif 45 #if NTB > 0 46 tbopen, tbclose, tbread, nodev, tbioctl, 47 tbinput, nodev, nulldev, ttstart, nulldev, /* 4 */ 48 #else 49 nodev, nodev, nodev, nodev, nodev, 50 nodev, nodev, nodev, nodev, nodev, 51 #endif 52 }; 53 54 int nldisp = sizeof (linesw) / sizeof (linesw[0]); 55