1*4868Sroot /* conf.c 4.8 81/11/12 */ 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(); 49*4868Sroot int mtstrategy(), mtopen(), mtclose(); 50*4868Sroot int rkstrategy(), rkopen(); 51*4868Sroot int udstrategy(), udopen(); 52318Sbill 53318Sbill struct devsw devsw[] = { 54318Sbill "hp", hpstrategy, hpopen, nullsys, 55318Sbill "ht", htstrategy, htopen, htclose, 56318Sbill "up", upstrategy, upopen, nullsys, 571812Sbill "tm", tmstrategy, tmopen, tmclose, 583261Swnj "hk", rkstrategy, rkopen, nullsys, 593274Swnj "ts", tsstrategy, tsopen, tsclose, 60*4868Sroot "mt", mtstrategy, mtopen, mtclose, 61*4868Sroot "ra", udstrategy, udopen, nullsys, 62318Sbill 0,0,0,0 63318Sbill }; 64