1*318Sbill /* conf.c 1.1 06/28/80 */ 2*318Sbill 3*318Sbill #include "../h/param.h" 4*318Sbill #include "../h/inode.h" 5*318Sbill #include "../h/mba.h" 6*318Sbill #include "saio.h" 7*318Sbill 8*318Sbill devread(io) 9*318Sbill register struct iob *io; 10*318Sbill { 11*318Sbill 12*318Sbill return( (*devsw[io->i_ino.i_dev].dv_strategy)(io,READ) ); 13*318Sbill } 14*318Sbill 15*318Sbill devwrite(io) 16*318Sbill register struct iob *io; 17*318Sbill { 18*318Sbill return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) ); 19*318Sbill } 20*318Sbill 21*318Sbill devopen(io) 22*318Sbill register struct iob *io; 23*318Sbill { 24*318Sbill (*devsw[io->i_ino.i_dev].dv_open)(io); 25*318Sbill } 26*318Sbill 27*318Sbill devclose(io) 28*318Sbill register struct iob *io; 29*318Sbill { 30*318Sbill (*devsw[io->i_ino.i_dev].dv_close)(io); 31*318Sbill } 32*318Sbill 33*318Sbill nullsys() 34*318Sbill { ; } 35*318Sbill 36*318Sbill int nullsys(); 37*318Sbill int hpstrategy(), hpopen(); 38*318Sbill int htstrategy(), htopen(), htclose(); 39*318Sbill int upstrategy(), upopen(); 40*318Sbill 41*318Sbill struct devsw devsw[] = { 42*318Sbill "hp", hpstrategy, hpopen, nullsys, 43*318Sbill "ht", htstrategy, htopen, htclose, 44*318Sbill "up", upstrategy, upopen, nullsys, 45*318Sbill 0,0,0,0 46*318Sbill }; 47*318Sbill 48*318Sbill int mbanum[] = { /* mba number of major device */ 49*318Sbill 0, /* disk */ 50*318Sbill 1, /* tape */ 51*318Sbill -1, /* unused */ 52*318Sbill }; 53*318Sbill 54*318Sbill int *mbaloc[] = { /* physical location of mba */ 55*318Sbill (int *)PHYSMBA0, 56*318Sbill (int *)PHYSMBA1, 57*318Sbill }; 58