Annotation of cci/sys/h/cp.h, revision 1.1

1.1     ! root        1: /*     Console Processor Interface     */
        !             2: /*     Tahoe version, Nov. 1982        */
        !             3: 
        !             4: /****************************************/
        !             5: /*                                     */
        !             6: /*     Reduced DCB layout for byte     */
        !             7: /*     communication.                  */
        !             8: /*                                     */
        !             9: /****************************************/
        !            10: 
        !            11: #define        CPBUFLEN 200            /* Output buffer length */
        !            12: #ifndef        LOCORE
        !            13: struct cphdr
        !            14: {
        !            15:        char    cp_unit;        /* Done bit & unit # */
        !            16:        char    cp_comm;        /* Command */
        !            17:        short   cp_count;       /* Counter (when relevant) */
        !            18: };
        !            19: 
        !            20: struct cpdcb_o                 /* Output structure */
        !            21: {
        !            22:        struct  cphdr   cp_hdr;
        !            23:        char    cp_buf[CPBUFLEN]; /* Buffer for output or 'stty' */
        !            24: };
        !            25: 
        !            26: struct cpdcb_i                 /* Structure for input */
        !            27: {
        !            28:        struct  cphdr   cp_hdr;
        !            29:        char    cpi_buf[4];     /* Buffer for input */
        !            30: };
        !            31: #endif
        !            32: 
        !            33: #define        CPDONE  0x80            /* 'Done' bit in cp_unit */
        !            34: #define        CPTAKE  0x40            /* CP 'ack' to this cpdcb */
        !            35: 
        !            36:                /* Values for 'unit' */
        !            37: #define        CPUNIT  0               /* The CP itself */
        !            38: #define        CPCONS  1               /* Console line */
        !            39: #define        CPREMOT 2               /* Remote line */
        !            40: 
        !            41:                /* Values for 'command' */
        !            42: #define        CPRESET 0
        !            43: #define        CPWRITE 1
        !            44: #define        CPREAD  2
        !            45: #define        CPSTTY  3
        !            46: #define        CPBOOT  4

unix.superglobalmegacorp.com

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