home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / e2fltsrc.zip / os2head.h < prev    next >
C/C++ Source or Header  |  1995-07-20  |  1KB  |  53 lines

  1. #ifndef _OS2HEAD_H_
  2. #define _OS2HEAD_H_
  3.  
  4. #define INCL_NOBASEAPI
  5. #define INCL_NOPMAPI
  6. #include <os2.h>
  7.  
  8. #include <devcmd.h>
  9. #include <devclass.h>
  10. #include <dskinit.h>
  11.  
  12. #define INCL_INITRP_ONLY
  13. #include <reqpkt.h>
  14. #include <iorb.h>
  15.  
  16. #define ERROR_I24_QUIET_INIT_FAIL       21    /* from bseerr.h */
  17.  
  18. #define IOERR_NO_SUCH_UNIT        IOERR_UNIT_NOT_ALLOCATED
  19.  
  20. typedef struct DevClassTableEntry FAR *PDevClassTableEntry;
  21. typedef struct DevClassTableStruc FAR *PDevClassTableStruc;
  22.  
  23. typedef VOID (FAR* PADDEntryPoint)(PIORB pSomeIORB);
  24. typedef PIORB (FAR* PNotifyAddr)(PIORB pSomeIORB);
  25.  
  26. #define    MAKE_SEC_CYL(SEC,CYL)        (((SEC)&0x3F)|(((CYL)&0x300)>>2)|\
  27.                      (((CYL)&0xFF)<<8))
  28.  
  29. /* Modified: original file was wrong. */
  30. typedef struct _PARTITIONENTRY
  31. {
  32.    UCHAR        BootIndicator;
  33.    UCHAR        BegHead;
  34.    USHORT       BegSecCyl;
  35.    UCHAR        SysIndicator;
  36.    UCHAR        EndHead;
  37.    USHORT       EndSecCyl;
  38.    ULONG        RelativeSectors;
  39.    ULONG        NumSectors;
  40. } PARTITIONENTRY;
  41.  
  42. typedef struct _MBR
  43. {
  44.    UCHAR          Pad[0x1BE];
  45.    PARTITIONENTRY PartitionTable[4];
  46.    USHORT         Signature;
  47. } MBR;
  48.  
  49. #define ENABLE    asm { sti }
  50. #define DISABLE    asm { cli }
  51.  
  52. #endif
  53.