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

  1. #ifndef _INLINE_BATTMEM_H
  2. #define _INLINE_BATTMEM_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef BATTMEM_BASE_NAME
  9. #define BATTMEM_BASE_NAME BattMemBase
  10. #endif
  11.  
  12. #define ObtainBattSemaphore() \
  13.     LP0NR(0x6, ObtainBattSemaphore, \
  14.     , BATTMEM_BASE_NAME)
  15.  
  16. #define ReadBattMem(buffer, offset, length) \
  17.     LP3(0x12, ULONG, ReadBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  18.     , BATTMEM_BASE_NAME)
  19.  
  20. #define ReleaseBattSemaphore() \
  21.     LP0NR(0xc, ReleaseBattSemaphore, \
  22.     , BATTMEM_BASE_NAME)
  23.  
  24. #define WriteBattMem(buffer, offset, length) \
  25.     LP3(0x18, ULONG, WriteBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  26.     , BATTMEM_BASE_NAME)
  27.  
  28. #endif /* _INLINE_BATTMEM_H */
  29.