revert between 56095 -> 55830 in arch
[AROS.git] / rom / devs / keyboard / keyboard_gcc.h
blob1f0005ef5370795ff095df5ae46a1e558e8830ee
1 #ifndef KEYBOARD_GCC_H
2 #define KEYBOARD_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 "keyboard_intern.h"
21 #define init(KBBase, segList) \
22 AROS_LC2(struct KeyboardBase *, init, AROS_LCA(struct KeyboardBase *, KBBase, D0), AROS_LCA(BPTR, segList, A0), struct ExecBase *, SysBase, 0, Keyboard)
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 KeyboardBase *, KBBase, 1, Keyboard)
27 #define close(ioreq) \
28 AROS_LC1(BPTR, close, AROS_LCA(struct IORequest *, ioreq, A1), struct KeyboardBase *, KBBase, 2, Keyboard)
30 #define expunge() \
31 AROS_LC0(BPTR, expunge, struct KeyboardBase *, KBBase, 3, Keyboard)
33 #define null() \
34 AROS_LC0(int, null, struct KeyboardBase *, KBBase, 4, Keyboard)
36 #define beginio(ioreq) \
37 AROS_LC1(void, beginio, AROS_LCA(struct IORequest *, ioreq, A1), struct KeyboardBase *, KBBase, 5, Keyboard)
39 #define abortio(ioreq) \
40 AROS_LC1(LONG, abortio, AROS_LCA(struct IORequest *, ioreq, A1), struct KeyboardBase *, KBBase, 6, Keyboard)
43 #endif /* KEYBOARD_GCC_H */