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

Defined macros

FLERRS defined in line 43; used 1 times
FL_BUSY defined in line 50; used 3 times
FL_CAN defined in line 40; used 1 times
FL_CANCEL defined in line 20; used 1 times
FL_COM defined in line 39; used 2 times
FL_DAR defined in line 38; used 1 times
FL_DATA defined in line 16; used 4 times
FL_DAX defined in line 37; used 1 times
FL_ERR defined in line 14; used 2 times
FL_FFC defined in line 13; used 1 times
FL_IDLE defined in line 33; used 6 times
FL_MAND defined in line 34; used 2 times
FL_OPEN defined in line 49; used 1 times
FL_PERR defined in line 15; used 1 times
FL_RS defined in line 17; used 2 times
FL_SEC defined in line 35; used 2 times
FL_STAT defined in line 19; never used
FL_TRACK defined in line 36; used 1 times
FL_WS defined in line 18; used 2 times
MAXSEC defined in line 25; used 1 times
RXBYSEC defined in line 24; used 4 times
RXFTRK defined in line 22; used 1 times
  • in line 25
RXSTRK defined in line 23; used 3 times

Usage of this include

flp.h used 1 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 790
Valid CSS Valid XHTML 1.0 Strict