1*3274Swnj /* conf.c 4.7 81/03/16 */ 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(); 44318Sbill int hpstrategy(), hpopen(); 45318Sbill int htstrategy(), htopen(), htclose(); 46318Sbill int upstrategy(), upopen(); 471812Sbill int tmstrategy(), tmopen(), tmclose(); 483261Swnj int tsstrategy(), tsopen(), tsclose(); 491913Swnj int rkopen(),rkstrategy(); 50318Sbill 51318Sbill struct devsw devsw[] = { 52318Sbill "hp", hpstrategy, hpopen, nullsys, 53318Sbill "ht", htstrategy, htopen, htclose, 54318Sbill "up", upstrategy, upopen, nullsys, 551812Sbill "tm", tmstrategy, tmopen, tmclose, 563261Swnj "hk", rkstrategy, rkopen, nullsys, 57*3274Swnj "ts", tsstrategy, tsopen, tsclose, 58318Sbill 0,0,0,0 59318Sbill }; 60