revert - libatomic is still needed for target code.
[AROS.git] / rom / hidds / i8042 / mouse.h
blobf0583b55bb20c3a74a177c58ed4d1fade4d8c925
1 #ifndef _MOUSE_H
2 #define _MOUSE_H
4 /*
5 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Include for the mouse native 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 <hidd/mouse.h>
19 #include "libbase.h"
21 /* defines for buttonstate */
23 #define LEFT_BUTTON 1
24 #define RIGHT_BUTTON 2
25 #define MIDDLE_BUTTON 4
27 #define INTELLIMOUSE_SUPPORT 1
29 #define PS2_PROTOCOL_STANDARD 0
30 #define PS2_PROTOCOL_INTELLIMOUSE 1
32 /***** Mouse HIDD *******************/
34 struct mouse_data
36 VOID (*mouse_callback)(APTR, struct pHidd_Mouse_Event *);
37 APTR callbackdata;
39 UWORD buttonstate;
40 APTR irq;
41 UBYTE mouse_data[5];
42 UBYTE mouse_collected_bytes;
43 UBYTE mouse_protocol;
44 UBYTE mouse_packetsize;
45 UBYTE expected_mouse_acks;
46 UBYTE packetsize;
48 struct pHidd_Mouse_Event event;
51 /****************************************************************************************/
53 #define KBD_OUTCMD_SET_RES 0xE8
54 #define KBD_OUTCMD_SET_SCALE11 0xE6
55 #define KBD_OUTCMD_SET_SCALE21 0xE7
56 #define KBD_OUTCMD_STATUS_REQUEST 0xE9
57 #define KBD_OUTCMD_SET_STREAM_MODE 0xEA
58 #define KBD_OUTCMD_READ_DATA 0xEB
59 #define KBD_OUTCMD_SET_REMOTE_MODE 0xF0
60 #define KBD_OUTCMD_GET_ID 0xF2
61 #define KBD_OUTCMD_SET_RATE 0xF3
62 #define KBD_OUTCMD_SET_STREAM 0xEA
63 #define KBD_OUTCMD_ENABLE 0xF4
64 #define KBD_OUTCMD_DISABLE 0xF5
65 #define KBD_OUTCMD_RESET 0xFF
67 /****************************************************************************************/
69 #endif /* _MOUSE_H */