Removed unnecessary structure packing.
[AROS.git] / compiler / include / devices / bluetoothhci.h
blob421d11583967d16931b7fcd5b1f294a2e55a39cb
1 #ifndef DEVICES_BLUETOOTHHCI_H
2 #define DEVICES_BLUETOOTHHCI_H
3 /*
4 ** $VER: bluetoothhci.h 1.1 (22.12.2011)
5 **
6 ** standard bluetooth host controller interface device include file
7 **
8 ** (C) Copyright 2005 Chris Hodges
9 ** (C) Copyright 2011 AROS Development Team
10 ** All Rights Reserved
13 #ifndef EXEC_IO_H
14 #include "exec/io.h"
15 #endif
17 #ifndef EXEC_ERRORS_H
18 #include <exec/errors.h>
19 #endif
21 #ifndef BLUETOOTH_HCI_H
22 #include "bluetooth/hci.h"
23 #endif
25 /* IO Request structure */
27 struct IOBTHCIReq
29 struct IORequest iobt_Req;
30 ULONG iobt_Actual; /* Actual bytes transferred */
31 ULONG iobt_Length; /* Size of buffer */
32 APTR iobt_Data; /* Pointer to in/out buffer */
33 APTR iobt_UserData; /* private data, may not be touched by hardware driver,
34 do not make assumptions about its contents */
37 /* BT HCI Event Message returned by HCI Driver */
38 struct BTHCIEventMsg
40 struct Message bem_Msg; /* message header */
41 struct BTHCIEvent bem_Event; /* actual event */
44 /* non-standard commands */
46 #define BTCMD_QUERYDEVICE (CMD_NONSTD+0)
47 #define BTCMD_WRITEHCI (CMD_NONSTD+1)
48 #define BTCMD_READEVENT (CMD_NONSTD+2)
49 #define BTCMD_READACL (CMD_NONSTD+3)
50 #define BTCMD_WRITEACL (CMD_NONSTD+4)
51 #define BTCMD_SETUPSCO (CMD_NONSTD+5)
52 #define BTCMD_READSCO (CMD_NONSTD+6)
53 #define BTCMD_WRITESCO (CMD_NONSTD+7)
54 #define BTCMD_ADDMSGPORT (CMD_NONSTD+8)
55 #define BTCMD_REMMSGPORT (CMD_NONSTD+9)
57 /* Error codes for io_Error field */
59 #define BTIOERR_NO_ERROR 0 /* No error occured */
60 #define BTIOERR_BTOFFLINE 1 /* USB non-operational */
61 #define BTIOERR_HOSTERROR 3 /* Unspecific host error */
62 #define BTIOERR_TIMEOUT 6 /* No acknoledge on packet */
63 #define BTIOERR_OVERFLOW 7 /* More data received than expected */
64 #define BTIOERR_BADPARAMS 11 /* Illegal parameters in request */
65 #define BTIOERR_OUTOFMEMORY 12 /* Out of auxiliary memory for the driver */
67 /* Tags for BTCMD_QUERYDEVICE */
69 #define BTA_Dummy (TAG_USER + 0x4711)
70 #define BTA_Author (BTA_Dummy + 0x10)
71 #define BTA_ProductName (BTA_Dummy + 0x11)
72 #define BTA_Version (BTA_Dummy + 0x12)
73 #define BTA_Revision (BTA_Dummy + 0x13)
74 #define BTA_Description (BTA_Dummy + 0x14)
75 #define BTA_Copyright (BTA_Dummy + 0x15)
76 #define BTA_DriverVersion (BTA_Dummy + 0x20)
78 #endif /* DEVICES_BLUETOOTHHCI_H */