home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cdisk.zip / EDDI / EDDI.H
Text File  |  1992-07-06  |  2KB  |  82 lines

  1. typedef struct _DRIVCAPSTRUCT {
  2.    USHORT     reserved;
  3.    UCHAR      VerMajor;    /* major version, should be 01 */
  4.    UCHAR      VerMinor;    /* minor version, should be 01 */
  5.    ULONG      Capabilities;/* capabilities bits           */
  6.    PFUNCTION  Strategy2;   /* 16:16 pointer to STRAT2     */
  7.    PFUNCTION  SetFSDInfo;  /* 16:16 pointer to SetFSDInfo */
  8.    PFUNCTION  ChgPriority; /* 16:16 pointer to ChgPriority*/
  9.    PFUNCTION  SetRestPos;  /* 16:16 pointer to RestPos    */
  10.    PFUNCTION  GetBoundary; /* 16:16 pointer to GetBoundary*/
  11.    } DRIVCAPSTRUCT;
  12.  
  13. typedef struct _VOLCHARSTRUCT {
  14.    USHORT VolDescriptor;
  15.    USHORT AvgSeekTime;
  16.    USHORT AvgLatency;
  17.    USHORT TrackMinBlocks;
  18.    USHORT TrackMaxBlocks;
  19.    USHORT Heads per cylinder
  20.    } VOLCHARSTRUCT;
  21.  
  22. typedef struct _REQUESTLISTHEADER {
  23.   USHORT     ReqListCount;
  24.   USHORT     Reserved;
  25.   FARPOINTER ListNotifyAddress;
  26.   USHORT     ListRequestControl;
  27.   UCHAR      BlkDevUnit;
  28.   UCHAR      ListStatus;
  29.   ULONG      Reserved1
  30.   ULONG      Reserved2;
  31.   } REQUESTLISTHEADER;
  32.  
  33. typedef struct _REQUESTHEADER {
  34.    USHORT      ReqLength;
  35.    UCHAR       CmdPrefix;
  36.    UCHAR       CmdCode;
  37.    ULONG       HeaderOffset;
  38.    UCHAR       RequestCtl;
  39.    UCHAR       Priority;
  40.    UCHAR       Status;
  41.    UCHAR       ErrorCode;
  42.    FARPOINTER  NotifyAddress; 
  43.    FARPOINTER  HintPointer;
  44.    ULONG       Reserved1;
  45.    ULONG       Reserved2;
  46.    ULONG       Reserved3;
  47.    } REQUESTHEADER;
  48.  
  49. typedef struct _SGD {
  50.    PHYSADDR BufferPtr;
  51.    ULONG    BufferSize;
  52.    } SGD;
  53.  
  54. typedef struct _READWRITE {
  55.    REQUESTHEADER ReadWriteHeader;
  56.    ULONG         StartBlock;
  57.    ULONG         BlockCount;
  58.    ULONG         BlocksXferred;
  59.    USHORT        Flags;
  60.    USHORT        SGDescrCount
  61.    ULONG         Reserved;
  62.    SGD           Sgd[SGDescrCount];
  63.    } READWRITE;
  64.  
  65. typedef struct _READPREFETCH {
  66.   REQUESTHEADER ReadPreHdr;
  67.   ULONG         StartBlock;
  68.   ULONG         BlockCount;
  69.   ULONG         BlocksXferred;
  70.   USHORT        Flags;
  71.   USHORT        Reserved;
  72.   } READPREFETCH;
  73.  
  74. typedef struct _FSDInfo {
  75.   ULONG       Reserved1;   /* reserved, must be 0          */
  76.   FARPOINTER  EndOfInit;   /* pointer to FSD's EOI         */
  77.   ULONG       Reserved2;   /* reserved, must be 0          */
  78.   FARPOINTER  AccValidate; /* pointer to FSD's AccValidate */
  79.   } FSDInfo;
  80.  
  81.  
  82.