Annotation of 40BSD/sys/stand/conf.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.