Annotation of researchv9/sys.vax/h/flp.h, revision 1.1

1.1     ! root        1: #if VAX780
        !             2: /*
        !             3:  * Console floppy command/status and sectoring information.
        !             4:  */
        !             5: #define        FL_FFC          0x200           /* floppy function complete */
        !             6: #define        FL_ERR          0x80            /* error bit in floppy status byte */
        !             7: #define        FL_PERR         0x905           /* floppy protocol error */
        !             8: #define        FL_DATA         0x100           /* floppy data select code */
        !             9: #define        FL_RS           0x900           /* floppy read sector command */
        !            10: #define        FL_WS           0x901           /* floppy write sector command*/
        !            11: #define        FL_STAT         0x902           /* floppy get status command*/
        !            12: #define        FL_CANCEL       0x904           /* cancel floppy function */
        !            13: 
        !            14: #define        RXFTRK  77              /* tracks/floppy */
        !            15: #define        RXSTRK  26              /* sectors/track */
        !            16: #define        RXBYSEC 128             /* bytes/sector */
        !            17: #define        MAXSEC (RXFTRK*RXSTRK)  /* sectors/floppy */
        !            18: 
        !            19: /*
        !            20:  * In the floppy driver routines, the device active byte is used
        !            21:  * not as a boolean, but as an indicator of the state we are in.
        !            22:  * That is, it contains what to do on the next interrupt.
        !            23:  */
        !            24: 
        !            25: #define        FL_IDLE         0       /* floppy idle */
        !            26: #define        FL_MAND         1       /* about to send read/write command */
        !            27: #define        FL_SEC          2       /* about to send sector # to LSI */
        !            28: #define        FL_TRACK        3       /* about to send track # to LSI */
        !            29: #define        FL_DAX          4       /* transmitting data */
        !            30: #define        FL_DAR          5       /* receiving data */
        !            31: #define        FL_COM          6       /* completing transmission */
        !            32: #define        FL_CAN          7       /* give cancel order - we had an error,
        !            33:                                   and are to restart */
        !            34: 
        !            35: #define        FLERRS          5       /* number of retries before quitting */
        !            36: 
        !            37: /*
        !            38:  * The state byte is used to retain exclusivity,
        !            39:  * and contains the busy flag.
        !            40:  */
        !            41: #define        FL_OPEN         1
        !            42: #define        FL_BUSY         2
        !            43: #endif

unix.superglobalmegacorp.com

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