grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / usb / classes / bluetooth / bluetooth.h
blob2f41945ddb48f44c80dec6a49bd9424e44f6e97e
1 #ifndef BLUETOOTH_H
2 #define BLUETOOTH_H
4 #include <intuition/intuition.h>
5 #include <intuition/intuitionbase.h>
6 #include <libraries/mui.h>
7 #include <libraries/gadtools.h>
8 #include <exec/devices.h>
10 #if defined(__GNUC__)
11 # pragma pack(2)
12 #endif
14 #define ID_ABOUT 0x55555555
15 #define ID_STORE_CONFIG 0xaaaaaaaa
16 #define ID_DEF_CONFIG 0xaaaaaaab
18 struct ClsDevCfg
20 ULONG cdc_ChunkID;
21 ULONG cdc_Length;
22 ULONG cdc_StackAuto;
23 ULONG cdc_DefaultUnit;
26 #if defined(__GNUC__)
27 # pragma pack()
28 #endif
30 /* Misc */
32 struct NepBTDevBase
34 struct Library np_Library; /* standard */
35 UWORD np_Flags; /* various flags */
37 BPTR np_SegList; /* device seglist */
38 struct NepBTBase *np_ClsBase; /* pointer to class base */
39 struct Library *np_UtilityBase; /* cached utilitybase */
42 struct NepClassBT
44 struct Unit ncp_Unit; /* Unit structure */
45 ULONG ncp_UnitNo; /* Unit number */
46 struct NepBTBase *ncp_ClsBase; /* Up linkage */
47 struct NepBTDevBase *ncp_DevBase; /* Device base */
48 struct Library *ncp_Base; /* Poseidon base */
49 struct PsdDevice *ncp_Device; /* Up linkage */
50 struct PsdConfig *ncp_Config; /* Up linkage */
51 struct PsdInterface *ncp_Interface; /* Up linkage */
52 struct Task *ncp_ReadySigTask; /* Task to send ready signal to */
53 LONG ncp_ReadySignal; /* Signal to send when ready */
54 struct Task *ncp_Task; /* Subtask */
55 struct MsgPort *ncp_TaskMsgPort; /* Message Port of Subtask */
57 struct PsdPipe *ncp_EPCmdPipe; /* Endpoint 0 pipe */
58 struct PsdEndpoint *ncp_EPACLOut; /* Endpoint 1 */
59 struct PsdPipe *ncp_EPACLOutPipe; /* Endpoint 1 pipe */
60 struct PsdEndpoint *ncp_EPACLIn; /* Endpoint 2 */
61 struct PsdPipe *ncp_EPACLInPipe; /* Endpoint 2 pipe */
62 IPTR ncp_EPACLInMaxPktSize; /* Endpoint 2 max pkt size */
63 struct PsdEndpoint *ncp_EPEventInt; /* Interrupt Endpoint */
64 struct PsdPipe *ncp_EPEventIntPipe; /* Interrupt pipe */
65 IPTR ncp_EPEventIntMaxPktSize; /* Endpoint 2 max pkt size */
67 struct MsgPort *ncp_DevMsgPort; /* Message Port for IOParReq */
68 UWORD ncp_UnitProdID; /* ProductID of unit */
69 UWORD ncp_UnitVendorID; /* VendorID of unit */
70 UWORD ncp_UnitCfgNum; /* Config of unit */
71 UWORD ncp_UnitIfNum; /* Interface number */
72 UWORD ncp_UnitAltIfNum; /* Alternate interface number */
73 BOOL ncp_DenyRequests; /* Do not accept further IO requests */
74 BOOL ncp_AbortRead;
75 BOOL ncp_AbortWrite;
77 struct IOBTHCIReq *ncp_ReadPending; /* read IORequest pending */
78 struct IOBTHCIReq *ncp_WritePending; /* write IORequest pending */
79 struct List ncp_ReadQueue; /* List of read requests */
80 struct List ncp_WriteQueue; /* List of write requests */
82 struct MsgPort *ncp_EventMsgPort; /* Message Port to relay events to */
83 struct MsgPort *ncp_EventReplyPort; /* Reply port for events */
84 ULONG ncp_EventsPending; /* number of events not replied yet */
85 struct BTHCIEventMsg *ncp_CurrEventMsg; /* current event message being filled */
87 STRPTR ncp_DevIDString; /* Device ID String */
88 STRPTR ncp_IfIDString; /* Interface ID String */
90 BOOL ncp_UsingDefaultCfg;
91 struct ClsDevCfg *ncp_CDC;
93 struct Library *ncp_MUIBase; /* MUI master base */
94 struct Library *ncp_PsdBase; /* Poseidon base */
95 struct Library *ncp_IntBase; /* Intuition base */
96 struct Task *ncp_GUITask; /* GUI Task */
97 struct NepClassHid *ncp_GUIBinding; /* Window of binding that's open */
99 Object *ncp_App;
100 Object *ncp_MainWindow;
102 Object *ncp_UnitObj;
103 Object *ncp_StackAutoObj;
105 Object *ncp_UseObj;
106 Object *ncp_SetDefaultObj;
107 Object *ncp_CloseObj;
109 Object *ncp_AboutMI;
110 Object *ncp_UseMI;
111 Object *ncp_SetDefaultMI;
112 Object *ncp_MUIPrefsMI;
116 struct NepBTBase
118 struct Library nh_Library; /* standard */
119 UWORD nh_Flags; /* various flags */
121 struct Library *nh_UtilityBase; /* utility base */
123 struct NepBTDevBase *nh_DevBase; /* base of device created */
124 struct List nh_Units; /* List of units available */
125 APTR nh_MemPool; /* Memory Pool */
127 BOOL nh_UsingDefaultCfg;
128 struct NepClassBT nh_DummyNCP; /* Dummy ncp for default config */
132 #endif /* RAWWRAP_H */