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

  1. #ifndef _INLINE_CARDRES_H
  2. #define _INLINE_CARDRES_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef CARDRES_BASE_NAME
  9. #define CARDRES_BASE_NAME CardResource
  10. #endif
  11.  
  12. #define BeginCardAccess(handle) \
  13.     LP1(0x18, BOOL, BeginCardAccess, struct CardHandle *, handle, a1, \
  14.     , CARDRES_BASE_NAME)
  15.  
  16. #define CardAccessSpeed(handle, nanoseconds) \
  17.     LP2(0x36, ULONG, CardAccessSpeed, struct CardHandle *, handle, a1, unsigned long, nanoseconds, d0, \
  18.     , CARDRES_BASE_NAME)
  19.  
  20. #define CardChangeCount() \
  21.     LP0(0x60, ULONG, CardChangeCount, \
  22.     , CARDRES_BASE_NAME)
  23.  
  24. #define CardForceChange() \
  25.     LP0(0x5a, BOOL, CardForceChange, \
  26.     , CARDRES_BASE_NAME)
  27.  
  28. #define CardInterface() \
  29.     LP0(0x66, ULONG, CardInterface, \
  30.     , CARDRES_BASE_NAME)
  31.  
  32. #define CardMiscControl(handle, control_bits) \
  33.     LP2(0x30, UBYTE, CardMiscControl, struct CardHandle *, handle, a1, unsigned long, control_bits, d1, \
  34.     , CARDRES_BASE_NAME)
  35.  
  36. #define CardProgramVoltage(handle, voltage) \
  37.     LP2(0x3c, LONG, CardProgramVoltage, struct CardHandle *, handle, a1, unsigned long, voltage, d0, \
  38.     , CARDRES_BASE_NAME)
  39.  
  40. #define CardResetCard(handle) \
  41.     LP1(0x42, BOOL, CardResetCard, struct CardHandle *, handle, a1, \
  42.     , CARDRES_BASE_NAME)
  43.  
  44. #define CardResetRemove(handle, flag) \
  45.     LP2(0x2a, BOOL, CardResetRemove, struct CardHandle *, handle, a1, unsigned long, flag, d0, \
  46.     , CARDRES_BASE_NAME)
  47.  
  48. #define CopyTuple(handle, buffer, tuplecode, size) \
  49.     LP4(0x48, BOOL, CopyTuple, struct CardHandle *, handle, a1, UBYTE *, buffer, a0, unsigned long, tuplecode, d1, unsigned long, size, d0, \
  50.     , CARDRES_BASE_NAME)
  51.  
  52. #define DeviceTuple(tuple_data, storage) \
  53.     LP2(0x4e, ULONG, DeviceTuple, UBYTE *, tuple_data, a0, struct DeviceTData *, storage, a1, \
  54.     , CARDRES_BASE_NAME)
  55.  
  56. #define EndCardAccess(handle) \
  57.     LP1(0x1e, BOOL, EndCardAccess, struct CardHandle *, handle, a1, \
  58.     , CARDRES_BASE_NAME)
  59.  
  60. #define GetCardMap() \
  61.     LP0(0x12, struct CardMemoryMap *, GetCardMap, \
  62.     , CARDRES_BASE_NAME)
  63.  
  64. #define IfAmigaXIP(handle) \
  65.     LP1(0x54, struct Resident *, IfAmigaXIP, struct CardHandle *, handle, a2, \
  66.     , CARDRES_BASE_NAME)
  67.  
  68. #define OwnCard(handle) \
  69.     LP1(0x6, struct CardHandle *, OwnCard, struct CardHandle *, handle, a1, \
  70.     , CARDRES_BASE_NAME)
  71.  
  72. #define ReadCardStatus() \
  73.     LP0(0x24, UBYTE, ReadCardStatus, \
  74.     , CARDRES_BASE_NAME)
  75.  
  76. #define ReleaseCard(handle, flags) \
  77.     LP2NR(0xc, ReleaseCard, struct CardHandle *, handle, a1, unsigned long, flags, d0, \
  78.     , CARDRES_BASE_NAME)
  79.  
  80. #endif /* _INLINE_CARDRES_H */
  81.