OLD | NEW |
(Empty) | |
| 1 //------------------------------------------------------------------------------ |
| 2 // <copyright file="ar3Kconfig.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 /* AR3K module configuration APIs for HCI-bridge operation */ |
| 21 |
| 22 #ifndef AR3KCONFIG_H_ |
| 23 #define AR3KCONFIG_H_ |
| 24 |
| 25 #include <net/bluetooth/bluetooth.h> |
| 26 #include <net/bluetooth/hci_core.h> |
| 27 |
| 28 #ifdef __cplusplus |
| 29 extern "C" { |
| 30 #endif |
| 31 |
| 32 #define AR3K_CONFIG_FLAG_FORCE_MINBOOT_EXIT (1 << 0) |
| 33 #define AR3K_CONFIG_FLAG_SET_AR3K_BAUD (1 << 1) |
| 34 #define AR3K_CONFIG_FLAG_AR3K_BAUD_CHANGE_DELAY (1 << 2) |
| 35 #define AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP (1 << 3) |
| 36 |
| 37 |
| 38 typedef struct { |
| 39 A_UINT32 Flags; /* config flags */ |
| 40 void *pHCIDev; /* HCI bridge device */ |
| 41 HCI_TRANSPORT_PROPERTIES *pHCIProps; /* HCI bridge props */ |
| 42 HIF_DEVICE *pHIFDevice; /* HIF layer device */ |
| 43 |
| 44 A_UINT32 AR3KBaudRate; /* AR3K operational baud rate */ |
| 45 A_UINT16 AR6KScale; /* AR6K UART scale value */ |
| 46 A_UINT16 AR6KStep; /* AR6K UART step value */ |
| 47 struct hci_dev *pBtStackHCIDev; /* BT Stack HCI dev */ |
| 48 } AR3K_CONFIG_INFO; |
| 49
|
| 50 A_STATUS AR3KConfigure(AR3K_CONFIG_INFO *pConfigInfo); |
| 51 |
| 52 A_STATUS AR3KConfigureExit(void *config); |
| 53 |
| 54 #ifdef __cplusplus |
| 55 } |
| 56 #endif |
| 57 |
| 58 #endif /*AR3KCONFIG_H_*/ |
OLD | NEW |