1 /* conf.c 4.14 82/12/17 */ 2 3 #include "../machine/pte.h" 4 5 #include "../h/param.h" 6 #include "../h/inode.h" 7 #include "../h/fs.h" 8 9 #include "../vaxmba/mbareg.h" 10 11 #include "saio.h" 12 13 devread(io) 14 register struct iob *io; 15 { 16 17 return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) ); 18 } 19 20 devwrite(io) 21 register struct iob *io; 22 { 23 24 return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) ); 25 } 26 27 devopen(io) 28 register struct iob *io; 29 { 30 31 (*devsw[io->i_ino.i_dev].dv_open)(io); 32 } 33 34 devclose(io) 35 register struct iob *io; 36 { 37 38 (*devsw[io->i_ino.i_dev].dv_close)(io); 39 } 40 41 nullsys() 42 { 43 44 ; 45 } 46 47 int nullsys(); 48 #if defined(VAX780) || defined(VAX750) 49 int hpstrategy(), hpopen(); 50 #endif 51 int upstrategy(), upopen(); 52 int rkstrategy(), rkopen(); 53 int udstrategy(), udopen(); 54 int idcstrategy(), idcopen(); 55 #ifndef BOOT 56 int tmstrategy(), tmopen(), tmclose(); 57 int tsstrategy(), tsopen(), tsclose(); 58 #if defined(VAX780) || defined(VAX750) 59 int htstrategy(), htopen(), htclose(); 60 int mtstrategy(), mtopen(), mtclose(); 61 #endif 62 int utstrategy(), utopen(), utclose(); 63 #endif 64 65 struct devsw devsw[] = { 66 #if defined(VAX780) || defined(VAX750) 67 "hp", hpstrategy, hpopen, nullsys, 68 #endif 69 "up", upstrategy, upopen, nullsys, 70 "hk", rkstrategy, rkopen, nullsys, 71 "ra", udstrategy, udopen, nullsys, 72 "rb", idcstrategy, idcopen, nullsys, 73 #ifndef BOOT 74 "ts", tsstrategy, tsopen, tsclose, 75 #if defined(VAX780) || defined(VAX750) 76 "ht", htstrategy, htopen, htclose, 77 "mt", mtstrategy, mtopen, mtclose, 78 #endif 79 "tm", tmstrategy, tmopen, tmclose, 80 "ut", utstrategy, utopen, utclose, 81 #endif 82 0,0,0,0 83 }; 84