grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / usb / classes / bootmouse / bootmouse.h
blobc47896d981e058c442fe267dfe3e426bf2bc41d7
1 #ifndef BOOTMOUSE_H
2 #define BOOTMOUSE_H
4 #include <intuition/intuition.h>
5 #include <intuition/intuitionbase.h>
6 #include <libraries/mui.h>
7 #include <libraries/gadtools.h>
9 #define ID_ABOUT 0x55555555
10 #define ID_STORE_CONFIG 0xaaaaaaaa
11 #define ID_DEF_CONFIG 0xaaaaaaab
13 struct ClsDevCfg
15 ULONG cdc_ChunkID;
16 ULONG cdc_Length;
17 IPTR cdc_Wheelmouse;
20 struct NepClassHid
22 struct Node nch_Node; /* Node linkage */
23 struct NepHidBase *nch_ClsBase; /* Up linkage */
24 struct Library *nch_Base; /* Poseidon base */
25 struct PsdDevice *nch_Device; /* Up linkage */
26 struct PsdConfig *nch_Config; /* Up linkage */
27 struct PsdInterface *nch_Interface; /* Up linkage */
28 struct PsdPipe *nch_EP0Pipe; /* Endpoint 0 pipe */
29 struct PsdEndpoint *nch_EP1; /* Endpoint 1 */
30 struct PsdPipe *nch_EP1Pipe; /* Endpoint 1 pipe */
31 IPTR nch_EP1PktSize; /* Size of EP1 packets */
32 UBYTE *nch_EP1Buf; /* Packet buffer for EP1 */
33 struct Task *nch_ReadySigTask; /* Task to send ready signal to */
34 LONG nch_ReadySignal; /* Signal to send when ready */
35 struct Task *nch_Task; /* Subtask */
36 struct MsgPort *nch_TaskMsgPort; /* Message Port of Subtask */
37 struct MsgPort *nch_InpMsgPort; /* input.device MsgPort */
38 struct IOStdReq *nch_InpIOReq; /* input.device IORequest */
39 struct InputEvent nch_FakeEvent; /* Input Event */
40 struct Library *nch_InputBase; /* Pointer to input.device base */
41 IPTR nch_IfNum; /* Interface number */
43 STRPTR nch_DevIDString; /* Device ID String */
44 STRPTR nch_IfIDString; /* Interface ID String */
46 BOOL nch_UsingDefaultCfg;
47 struct ClsDevCfg *nch_CDC;
49 struct Library *nch_MUIBase; /* MUI master base */
50 struct Library *nch_PsdBase; /* Poseidon base */
51 struct Library *nch_IntBase; /* Intuition base */
52 struct Task *nch_GUITask; /* GUI Task */
53 struct NepClassHid *nch_GUIBinding; /* Window of binding that's open */
55 Object *nch_App;
56 Object *nch_MainWindow;
57 Object *nch_WheelmouseObj;
59 Object *nch_UseObj;
60 Object *nch_SetDefaultObj;
61 Object *nch_CloseObj;
63 Object *nch_AboutMI;
64 Object *nch_UseMI;
65 Object *nch_SetDefaultMI;
66 Object *nch_MUIPrefsMI;
69 struct NepHidBase
71 struct Library nh_Library; /* standard */
72 UWORD nh_Flags; /* various flags */
74 struct Library *nh_UtilityBase; /* Utility base */
76 struct List nh_Bindings; /* List of bindings created */
78 struct NepClassHid nh_DummyNCH; /* Dummy NCH for default config */
81 #endif /* BOOTMOUSE_H */