1 #ifndef _VBCCINLINE_CAPSIMAGE_H
2 #define _VBCCINLINE_CAPSIMAGE_H
5 #include <exec/types.h>
8 CapsLong
__CAPSInit(__reg("a6") struct Device
*)="\tjsr\t-42(a6)";
9 #define CAPSInit() __CAPSInit(CapsImageBase)
11 CapsLong
__CAPSExit(__reg("a6") struct Device
*)="\tjsr\t-48(a6)";
12 #define CAPSExit() __CAPSExit(CapsImageBase)
14 CapsLong
__CAPSAddImage(__reg("a6") struct Device
*)="\tjsr\t-54(a6)";
15 #define CAPSAddImage() __CAPSAddImage(CapsImageBase)
17 CapsLong
__CAPSRemImage(__reg("a6") struct Device
*, __reg("d0") CapsLong id
)="\tjsr\t-60(a6)";
18 #define CAPSRemImage(id) __CAPSRemImage(CapsImageBase, (id))
20 CapsLong
__CAPSLockImage(__reg("a6") struct Device
*, __reg("d0") CapsLong id
, __reg("a0") CONST_STRPTR name
)="\tjsr\t-66(a6)";
21 #define CAPSLockImage(id, name) __CAPSLockImage(CapsImageBase, (id), (name))
23 CapsLong
__CAPSLockImageMemory(__reg("a6") struct Device
*, __reg("d0") CapsLong id
, __reg("a0") CapsUByte
* buffer
, __reg("d1") CapsULong length
, __reg("d2") CapsULong flag
)="\tjsr\t-72(a6)";
24 #define CAPSLockImageMemory(id, buffer, length, flag) __CAPSLockImageMemory(CapsImageBase, (id), (buffer), (length), (flag))
26 CapsLong
__CAPSUnlockImage(__reg("a6") struct Device
*, __reg("d0") CapsLong id
)="\tjsr\t-78(a6)";
27 #define CAPSUnlockImage(id) __CAPSUnlockImage(CapsImageBase, (id))
29 CapsLong
__CAPSLoadImage(__reg("a6") struct Device
*, __reg("d0") CapsLong id
, __reg("d1") CapsULong flag
)="\tjsr\t-84(a6)";
30 #define CAPSLoadImage(id, flag) __CAPSLoadImage(CapsImageBase, (id), (flag))
32 CapsLong
__CAPSGetImageInfo(__reg("a6") struct Device
*, __reg("a0") struct CapsImageInfo
* pi
, __reg("d0") CapsLong id
)="\tjsr\t-90(a6)";
33 #define CAPSGetImageInfo(pi, id) __CAPSGetImageInfo(CapsImageBase, (pi), (id))
35 CapsLong
__CAPSLockTrack(__reg("a6") struct Device
*, __reg("a0") struct CapsTrackInfo
* pi
, __reg("d0") CapsLong id
, __reg("d1") CapsULong cylinder
, __reg("d2") CapsULong head
, __reg("d3") CapsULong flag
)="\tjsr\t-96(a6)";
36 #define CAPSLockTrack(pi, id, cylinder, head, flag) __CAPSLockTrack(CapsImageBase, (pi), (id), (cylinder), (head), (flag))
38 CapsLong
__CAPSUnlockTrack(__reg("a6") struct Device
*, __reg("d0") CapsLong id
, __reg("d1") CapsULong cylinder
, __reg("d2") CapsULong head
)="\tjsr\t-102(a6)";
39 #define CAPSUnlockTrack(id, cylinder, head) __CAPSUnlockTrack(CapsImageBase, (id), (cylinder), (head))
41 CapsLong
__CAPSUnlockAllTracks(__reg("a6") struct Device
*, __reg("d0") CapsLong id
)="\tjsr\t-108(a6)";
42 #define CAPSUnlockAllTracks(id) __CAPSUnlockAllTracks(CapsImageBase, (id))
44 CONST_STRPTR
__CAPSGetPlatformName(__reg("a6") struct Device
*, __reg("d0") CapsULong pid
)="\tjsr\t-114(a6)";
45 #define CAPSGetPlatformName(pid) __CAPSGetPlatformName(CapsImageBase, (pid))
47 CapsLong
__CAPSGetVersionInfo(__reg("a6") struct Device
*, __reg("a0") struct CapsVersionInfo
* pi
, __reg("d0") CapsULong flag
)="\tjsr\t-120(a6)";
48 #define CAPSGetVersionInfo(pi, flag) __CAPSGetVersionInfo(CapsImageBase, (pi), (flag))
50 #endif /* _VBCCINLINE_CAPSIMAGE_H */