wrong version committed
[AROS.git] / rom / devs / gameport / gameport_gcc.h
blob5b2d8be12b811cc2f4119e8a7d30b197b76e1584
1 #ifndef GAMEPORT_GCC_H
2 #define GAMEPORT_GCC_H
4 /*
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc:
9 Lang: English
12 /* Johan Alfredsson */
14 #include <aros/libcall.h>
15 #include <exec/execbase.h>
16 #include <exec/io.h>
17 #include <exec/devices.h>
18 #include <dos/dos.h>
19 #include "gameport_intern.h"
21 #define init(GPBase, segList) \
22 AROS_LC2(struct GameportBase *, init, AROS_LCA(struct GameportBase *, GPBase, D0), AROS_LCA(BPTR, segList, A0), struct ExecBase *, SysBase, 0, Gameport)
24 #define open(ioreq, unitnum, flags) \
25 AROS_LC3(void, open, AROS_LCA(struct IORequest *, ioreq, A1), AROS_LCA(ULONG, unitnum, D0), AROS_LCA(ULONG, flags, D0), struct GameportBase *, GPBase, 1, Gameport)
27 #define close(ioreq) \
28 AROS_LC1(BPTR, close, AROS_LCA(struct IORequest *, ioreq, A1), struct GameportBase *, GPBase, 2, Gameport)
30 #define expunge() \
31 AROS_LC0(BPTR, expunge, struct GameportBase *, GPBase, 3, Gameport)
33 #define null() \
34 AROS_LC0(int, null, struct GameportBase *, GPBase, 4, Gameport)
36 #define beginio(ioreq) \
37 AROS_LC1(void, beginio, AROS_LCA(struct IORequest *, ioreq, A1), struct GameportBase *, GPBase, 5, Gameport)
39 #define abortio(ioreq) \
40 AROS_LC1(LONG, abortio, AROS_LCA(struct IORequest *, ioreq, A1), struct GameportBase *, GPBase, 6, Gameport)
43 #endif /* GAMEPORT_GCC_H */