grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / hidds / i8042 / kbd.h
blob59d6f4b334e4176c25c911b26f200df5f22b3dd7
1 #ifndef HIDD_KBD_H
2 #define HIDD_KBD_H
4 /*
5 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Include for the kbd HIDD.
9 Lang: English.
12 #define __OOP_NOMETHODBASES__
14 #include <exec/libraries.h>
15 #include <oop/oop.h>
16 #include <exec/semaphores.h>
17 #include <exec/interrupts.h>
18 #include <dos/bptr.h>
20 #include "libbase.h"
22 /****************************************************************************************/
24 #define KBD_OUTCMD_SET_LEDS 0xED
25 #define KBD_OUTCMD_SET_RATE 0xF3
26 #define KBD_OUTCMD_ENABLE 0xF4
27 #define KBD_OUTCMD_DISABLE 0xF5
28 #define KBD_OUTCMD_RESET 0xFF
30 /****************************************************************************************/
32 struct kbd_data
34 VOID (*kbd_callback)(APTR, UWORD);
35 APTR callbackdata;
36 APTR irq;
38 ULONG kbd_keystate;
39 WORD prev_amigacode;
40 UWORD prev_keycode;
43 /****************************************************************************************/
45 #endif /* HIDD_KBD_H */