OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="gmboxif.h" company="Atheros"> |
| 3 // Copyright (c) 2009 Atheros Corporation. All rights reserved. |
| 4 // |
| 5 // This program is free software; you can redistribute it and/or modify |
| 6 // it under the terms of the GNU General Public License version 2 as |
| 7 // published by the Free Software Foundation; |
| 8 // |
| 9 // Software distributed under the License is distributed on an "AS |
| 10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
| 11 // implied. See the License for the specific language governing |
| 12 // rights and limitations under the License. |
| 13 // |
| 14 // |
| 15 //------------------------------------------------------------------------------ |
| 16 //============================================================================== |
| 17 // Author(s): ="Atheros" |
| 18 //============================================================================== |
| 19 |
| 20 #ifndef __GMBOXIF_H__ |
| 21 #define __GMBOXIF_H__ |
| 22 |
| 23 #ifndef ATH_TARGET |
| 24 #include "athstartpack.h" |
| 25 #endif |
| 26 |
| 27 /* GMBOX interface definitions */ |
| 28 |
| 29 #define AR6K_GMBOX_CREDIT_COUNTER 1 /* we use credit counter 1 to track
credits */ |
| 30 #define AR6K_GMBOX_CREDIT_SIZE_COUNTER 2 /* credit counter 2 is used to pass
the size of each credit */ |
| 31 |
| 32 |
| 33 /* HCI UART transport definitions when used over GMBOX interface */ |
| 34 #define HCI_UART_COMMAND_PKT 0x01 |
| 35 #define HCI_UART_ACL_PKT 0x02 |
| 36 #define HCI_UART_SCO_PKT 0x03 |
| 37 #define HCI_UART_EVENT_PKT 0x04 |
| 38 |
| 39 /* definitions for BT HCI packets */ |
| 40 typedef PREPACK struct { |
| 41 A_UINT16 Flags_ConnHandle; |
| 42 A_UINT16 Length; |
| 43 } POSTPACK BT_HCI_ACL_HEADER; |
| 44 |
| 45 typedef PREPACK struct { |
| 46 A_UINT16 Flags_ConnHandle; |
| 47 A_UINT8 Length; |
| 48 } POSTPACK BT_HCI_SCO_HEADER; |
| 49 |
| 50 typedef PREPACK struct { |
| 51 A_UINT16 OpCode; |
| 52 A_UINT8 ParamLength; |
| 53 } POSTPACK BT_HCI_COMMAND_HEADER; |
| 54 |
| 55 typedef PREPACK struct { |
| 56 A_UINT8 EventCode; |
| 57 A_UINT8 ParamLength; |
| 58 } POSTPACK BT_HCI_EVENT_HEADER; |
| 59 |
| 60 /* MBOX host interrupt signal assignments */ |
| 61 |
| 62 #define MBOX_SIG_HCI_BRIDGE_MAX 8 |
| 63 #define MBOX_SIG_HCI_BRIDGE_BT_ON 0 |
| 64 #define MBOX_SIG_HCI_BRIDGE_BT_OFF 1 |
| 65 |
| 66 |
| 67 #ifndef ATH_TARGET |
| 68 #include "athendpack.h" |
| 69 #endif |
| 70 |
| 71 #endif /* __GMBOXIF_H__ */ |
| 72 |
OLD | NEW |