1*7277Swnj /* conf.c 4.11 82/06/25 */ 2318Sbill 3318Sbill #include "../h/param.h" 4318Sbill #include "../h/inode.h" 5421Sbill #include "../h/pte.h" 63261Swnj #include "../h/mbareg.h" 7318Sbill #include "saio.h" 8318Sbill 9318Sbill devread(io) 103261Swnj register struct iob *io; 11318Sbill { 12318Sbill 133261Swnj return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) ); 14318Sbill } 15318Sbill 16318Sbill devwrite(io) 173261Swnj register struct iob *io; 18318Sbill { 193261Swnj 20318Sbill return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) ); 21318Sbill } 22318Sbill 23318Sbill devopen(io) 243261Swnj register struct iob *io; 25318Sbill { 263261Swnj 27318Sbill (*devsw[io->i_ino.i_dev].dv_open)(io); 28318Sbill } 29318Sbill 30318Sbill devclose(io) 313261Swnj register struct iob *io; 32318Sbill { 333261Swnj 34318Sbill (*devsw[io->i_ino.i_dev].dv_close)(io); 35318Sbill } 36318Sbill 37318Sbill nullsys() 383261Swnj { 39318Sbill 403261Swnj ; 413261Swnj } 423261Swnj 43318Sbill int nullsys(); 446970Ssam #if defined(VAX780) || defined(VAX750) 45318Sbill int hpstrategy(), hpopen(); 466970Ssam #endif 47318Sbill int upstrategy(), upopen(); 48*7277Swnj int rkstrategy(), rkopen(); 49*7277Swnj int udstrategy(), udopen(); 50*7277Swnj int idcstrategy(), idcopen(); 51*7277Swnj #ifndef BOOT 521812Sbill int tmstrategy(), tmopen(), tmclose(); 533261Swnj int tsstrategy(), tsopen(), tsclose(); 546970Ssam #if defined(VAX780) || defined(VAX750) 55*7277Swnj int htstrategy(), htopen(), htclose(); 564868Sroot int mtstrategy(), mtopen(), mtclose(); 576970Ssam #endif 585156Ssam int utstrategy(), utopen(), utclose(); 59*7277Swnj #endif 60318Sbill 61318Sbill struct devsw devsw[] = { 626970Ssam #if defined(VAX780) || defined(VAX750) 63318Sbill "hp", hpstrategy, hpopen, nullsys, 646970Ssam #endif 65318Sbill "up", upstrategy, upopen, nullsys, 663261Swnj "hk", rkstrategy, rkopen, nullsys, 67*7277Swnj "ra", udstrategy, udopen, nullsys, 68*7277Swnj "rb", idcstrategy, idcopen, nullsys, 69*7277Swnj #ifndef BOOT 703274Swnj "ts", tsstrategy, tsopen, tsclose, 716970Ssam #if defined(VAX780) || defined(VAX750) 72*7277Swnj "ht", htstrategy, htopen, htclose, 734868Sroot "mt", mtstrategy, mtopen, mtclose, 746970Ssam #endif 75*7277Swnj "tm", tmstrategy, tmopen, tmclose, 76*7277Swnj "ut", utstrategy, utopen, utclose, 77*7277Swnj #endif 78318Sbill 0,0,0,0 79318Sbill }; 80