Annotation of cci/sys/bsc/bscio.h, revision 1.1.1.1

1.1       root        1: /* @(#)bscio.h 1.7 REL */
                      2: struct bscio {
                      3:        unsigned short b_blks;  /* max blksize | #sent/rcvd */
                      4:        unsigned short b_flags; /* see description to follow */
                      5:        char b_termid[20];      /* our terminal id */
                      6:        char b_hostid[20];      /* host id */
                      7:        char b_nbid;            /* bid limit   | count */
                      8:        char b_nnak;            /* nak limit   | count */
                      9:        char b_nretry;          /* retry limit | count */
                     10:        char b_nttd;            /* ttd limit   | count */
                     11:        char b_nwack;           /* wack limit  | count */
                     12:        short b_nor;            /* initial read timeout |
                     13:                                   overrun count */
                     14: };
                     15: #define        BSCGET          _IOR(b,1,struct bscio)  /* get current bscio block */
                     16: #define BSCSET         _IOW(b,2,struct bscio)  /* set new bscio parameters */
                     17: #define BSCTRNSP       _IO(b,3)        /* set transparent mode */
                     18: #define BSCNTRNS       _IO(b,4)        /* reset transparent mode */
                     19: #define BSCSOH         _IO(b,5)        /* start next block with SOH */
                     20: #define BSCLAST                _IO(b,6)        /* Last block in series to send */
                     21: #define BSCNSOH                _IO(b,7)        /* Negate effect of BSCSOH */
                     22: #define BSCID          _IOR(b,8,int)   /* Terminal identification */
                     23: #define        BSCNDLY         _IO(b,9)        /* Don't delay on read */
                     24: #define BSCFACK                _IO(b,10)       /* Fast ack mode for read -> write */
                     25: #define BSWAK          _IO(b,11)       /* send WACK */ 
                     26: 
                     27: /* important information: */
                     28: #define BSCMBLK        4096            /* max. for b_blks on set (max block size) */
                     29: 
                     30: /* b_flags on SET: */
                     31: #define BSCASCII       0x0001  /* transmission code is ascii */
                     32: #define BSCFDX         0x0002  /* full duplex modems being used */
                     33: #define BSCIUS         0x0004  /* unit separators in use */
                     34: #define BSCRVIABT      0x0008  /* abort on RVI */
                     35: #define BSCPRIM                0x0010  /* we are primary node */
                     36: #define BSCCKHOST      0x0020  /* chk host id, abort if wrong */
                     37: #define BSCMPT         0x0040  /* multi-point protocol */
                     38: #define BSC_UFLAGS     0x007f  /* mask for user-defined flags */
                     39: 
                     40: /* b_flags on GET: */
                     41: #define BSCPROTO       1       /* protocol error by remote host */
                     42: #define BSCRVI         2       /* RVI abort */
                     43: #define BSCNBID                3       /* NBID limit exceeded */
                     44: #define BSCNNAK                4       /* NNAK limit exceeded */
                     45: #define BSCNRETR       5       /* NRETRY limit exceeded */
                     46: #define BSCNTTD                6       /* NTTD limit exceeded */
                     47: #define BSCNWACK       7       /* NWACK limit exceeded */
                     48: #define BSCNDSR                8       /* no DSR indication from modem */
                     49: #define BSCTXTO                9       /* transmit timeout */
                     50: #define BSCRXTO                10      /* idle receive timeout */
                     51: #define BSCDSC         11      /* remote end sent DISC (DLE-EOT) */
                     52: #define BSCRABT                12      /* remote end aborted our sending */
                     53: #define BSCEEOF                13      /* remote end aborted their sending */
                     54: #define BSCWHI         14      /* wrong host id */
                     55: #define BSCTXP         15      /* block received in transparent mode */
                     56:                                /* (not an error) */
                     57: #define BSCBSOH                16      /* block began with SOH */
                     58:                                /* (not an error) */
                     59: #define        BSCONTND        17      /* line contention (not an error) */
                     60: #define        BSC2BIG         18      /* Received block exceeded BSCMBLK bytes */

unix.superglobalmegacorp.com

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