home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / fd2inline-1.0-bin.lha / include / inline / disk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  795 b   |  37 lines

  1. #ifndef _INLINE_DISK_H
  2. #define _INLINE_DISK_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef DISK_BASE_NAME
  9. #define DISK_BASE_NAME DiskBase
  10. #endif
  11.  
  12. #define AllocUnit(unitNum) \
  13.     LP1(0x6, BOOL, AllocUnit, long, unitNum, d0, \
  14.     , DISK_BASE_NAME)
  15.  
  16. #define FreeUnit(unitNum) \
  17.     LP1NR(0xc, FreeUnit, long, unitNum, d0, \
  18.     , DISK_BASE_NAME)
  19.  
  20. #define GetUnit(unitPointer) \
  21.     LP1(0x12, struct DiskResourceUnit *, GetUnit, struct DiskResourceUnit *, unitPointer, a1, \
  22.     , DISK_BASE_NAME)
  23.  
  24. #define GetUnitID(unitNum) \
  25.     LP1(0x1e, LONG, GetUnitID, long, unitNum, d0, \
  26.     , DISK_BASE_NAME)
  27.  
  28. #define GiveUnit() \
  29.     LP0NR(0x18, GiveUnit, \
  30.     , DISK_BASE_NAME)
  31.  
  32. #define ReadUnitID(unitNum) \
  33.     LP1(0x24, LONG, ReadUnitID, long, unitNum, d0, \
  34.     , DISK_BASE_NAME)
  35.  
  36. #endif /* _INLINE_DISK_H */
  37.