Annotation of xinu/sys/ethrstrt.c, revision 1.1.1.1

1.1       root        1: /* ethrstrt.c - ethrstrt */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <network.h>
                      6: #include <qbus.h>
                      7: 
                      8: /*------------------------------------------------------------------------
                      9:  *  ethrstrt - start an ethernet read operation on the DEQNA
                     10:  *------------------------------------------------------------------------
                     11:  */
                     12: 
                     13: ethrstrt(etptr, buf, len)
                     14:        struct  etblk   *etptr;
                     15:        char    *buf;
                     16:        int     len;
                     17: {
                     18:        struct  dcmd    *dcmptr;
                     19:        struct  dqregs  *dqptr;
                     20: 
                     21:        dcmptr = etptr->ercmd;
                     22:        dcmptr->dc_bufh = DC_VALID | hiQ2low(buf);
                     23:        dcmptr->dc_buf  = (short) buf;
                     24:        dcmptr->dc_len = dqlen(len);
                     25:        dcmptr->dc_st1 = dcmptr->dc_st2 = DC_INIT;
                     26:        dcmptr->dc_flag = DC_NUSED;
                     27:        dqptr = etptr->eioaddr;
                     28:        dqptr->d_rcmd = (short) dcmptr;
                     29:        dqptr->d_rcmdh = hiQ2low(dcmptr);
                     30:        return(OK);
                     31: }

unix.superglobalmegacorp.com

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