|
|
1.1 ! root 1: /* conf.c 4.9 81/12/01 */ ! 2: ! 3: #include "../h/param.h" ! 4: #include "../h/inode.h" ! 5: #include "../h/pte.h" ! 6: #include "../h/mbareg.h" ! 7: #include "saio.h" ! 8: ! 9: devread(io) ! 10: register struct iob *io; ! 11: { ! 12: ! 13: return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) ); ! 14: } ! 15: ! 16: devwrite(io) ! 17: register struct iob *io; ! 18: { ! 19: ! 20: return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) ); ! 21: } ! 22: ! 23: devopen(io) ! 24: register struct iob *io; ! 25: { ! 26: ! 27: (*devsw[io->i_ino.i_dev].dv_open)(io); ! 28: } ! 29: ! 30: devclose(io) ! 31: register struct iob *io; ! 32: { ! 33: ! 34: (*devsw[io->i_ino.i_dev].dv_close)(io); ! 35: } ! 36: ! 37: nullsys() ! 38: { ! 39: ! 40: ; ! 41: } ! 42: ! 43: int nullsys(); ! 44: int hpstrategy(), hpopen(); ! 45: int upstrategy(), upopen(); ! 46: int rkstrategy(), rkopen(); ! 47: int udstrategy(), udopen(); ! 48: #ifndef BOOT ! 49: int htstrategy(), htopen(), htclose(); ! 50: int tmstrategy(), tmopen(), tmclose(); ! 51: int tsstrategy(), tsopen(), tsclose(); ! 52: int mtstrategy(), mtopen(), mtclose(); ! 53: #endif ! 54: ! 55: struct devsw devsw[] = { ! 56: "hp", hpstrategy, hpopen, nullsys, ! 57: "up", upstrategy, upopen, nullsys, ! 58: "hk", rkstrategy, rkopen, nullsys, ! 59: "ra", udstrategy, udopen, nullsys, ! 60: #ifndef BOOT ! 61: "ht", htstrategy, htopen, htclose, ! 62: "tm", tmstrategy, tmopen, tmclose, ! 63: "ts", tsstrategy, tsopen, tsclose, ! 64: "mt", mtstrategy, mtopen, mtclose, ! 65: #endif ! 66: 0,0,0,0 ! 67: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.