diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2011-03-14 13:58:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 14:58:40 -0400 |
commit | 55b0f0daa6f3f7225042ba67cfe5773c77efe425 (patch) | |
tree | 3b93ca274c02deb226e30de821571a3fe70dab92 /drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | |
parent | 01eb1da1aad93a36ab1254fc2d337ed0f6783156 (diff) |
ath6kl: remove-typedef GMBOX_PROTO_HCI_UART
remove-typedef -s GMBOX_PROTO_HCI_UART \
"struct gmbox_proto_hci_uart" drivers/staging/ath6kl/
Tested-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c')
-rw-r--r-- | drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c b/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c index 3ee3d40893d..78da8a15512 100644 --- a/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c +++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | |||
@@ -56,7 +56,7 @@ | |||
56 | #define BAUD_TIMEOUT_MS 1 | 56 | #define BAUD_TIMEOUT_MS 1 |
57 | #define BTPWRSAV_TIMEOUT_MS 1 | 57 | #define BTPWRSAV_TIMEOUT_MS 1 |
58 | 58 | ||
59 | typedef struct { | 59 | struct gmbox_proto_hci_uart { |
60 | HCI_TRANSPORT_CONFIG_INFO HCIConfig; | 60 | HCI_TRANSPORT_CONFIG_INFO HCIConfig; |
61 | bool HCIAttached; | 61 | bool HCIAttached; |
62 | bool HCIStopped; | 62 | bool HCIStopped; |
@@ -75,7 +75,7 @@ typedef struct { | |||
75 | int CreditSize; | 75 | int CreditSize; |
76 | int CreditsCurrentSeek; | 76 | int CreditsCurrentSeek; |
77 | int SendProcessCount; | 77 | int SendProcessCount; |
78 | } GMBOX_PROTO_HCI_UART; | 78 | }; |
79 | 79 | ||
80 | #define LOCK_HCI_RX(t) A_MUTEX_LOCK(&(t)->HCIRxLock); | 80 | #define LOCK_HCI_RX(t) A_MUTEX_LOCK(&(t)->HCIRxLock); |
81 | #define UNLOCK_HCI_RX(t) A_MUTEX_UNLOCK(&(t)->HCIRxLock); | 81 | #define UNLOCK_HCI_RX(t) A_MUTEX_UNLOCK(&(t)->HCIRxLock); |
@@ -99,9 +99,9 @@ do { \ | |||
99 | (p)->HCIConfig.pHCISendComplete((p)->HCIConfig.pContext, (pt)); \ | 99 | (p)->HCIConfig.pHCISendComplete((p)->HCIConfig.pContext, (pt)); \ |
100 | } | 100 | } |
101 | 101 | ||
102 | static int HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, bool Synchronous); | 102 | static int HCITrySend(struct gmbox_proto_hci_uart *pProt, HTC_PACKET *pPacket, bool Synchronous); |
103 | 103 | ||
104 | static void HCIUartCleanup(GMBOX_PROTO_HCI_UART *pProtocol) | 104 | static void HCIUartCleanup(struct gmbox_proto_hci_uart *pProtocol) |
105 | { | 105 | { |
106 | A_ASSERT(pProtocol != NULL); | 106 | A_ASSERT(pProtocol != NULL); |
107 | 107 | ||
@@ -111,7 +111,7 @@ static void HCIUartCleanup(GMBOX_PROTO_HCI_UART *pProtocol) | |||
111 | A_FREE(pProtocol); | 111 | A_FREE(pProtocol); |
112 | } | 112 | } |
113 | 113 | ||
114 | static int InitTxCreditState(GMBOX_PROTO_HCI_UART *pProt) | 114 | static int InitTxCreditState(struct gmbox_proto_hci_uart *pProt) |
115 | { | 115 | { |
116 | int status; | 116 | int status; |
117 | int credits; | 117 | int credits; |
@@ -191,7 +191,7 @@ static int InitTxCreditState(GMBOX_PROTO_HCI_UART *pProt) | |||
191 | 191 | ||
192 | static int CreditsAvailableCallback(void *pContext, int Credits, bool CreditIRQEnabled) | 192 | static int CreditsAvailableCallback(void *pContext, int Credits, bool CreditIRQEnabled) |
193 | { | 193 | { |
194 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)pContext; | 194 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)pContext; |
195 | bool enableCreditIrq = false; | 195 | bool enableCreditIrq = false; |
196 | bool disableCreditIrq = false; | 196 | bool disableCreditIrq = false; |
197 | bool doPendingSends = false; | 197 | bool doPendingSends = false; |
@@ -274,7 +274,7 @@ static int CreditsAvailableCallback(void *pContext, int Credits, bool CreditIRQE | |||
274 | return status; | 274 | return status; |
275 | } | 275 | } |
276 | 276 | ||
277 | static INLINE void NotifyTransportFailure(GMBOX_PROTO_HCI_UART *pProt, int status) | 277 | static INLINE void NotifyTransportFailure(struct gmbox_proto_hci_uart *pProt, int status) |
278 | { | 278 | { |
279 | if (pProt->HCIConfig.TransportFailure != NULL) { | 279 | if (pProt->HCIConfig.TransportFailure != NULL) { |
280 | pProt->HCIConfig.TransportFailure(pProt->HCIConfig.pContext, status); | 280 | pProt->HCIConfig.TransportFailure(pProt->HCIConfig.pContext, status); |
@@ -283,7 +283,7 @@ static INLINE void NotifyTransportFailure(GMBOX_PROTO_HCI_UART *pProt, int stat | |||
283 | 283 | ||
284 | static void FailureCallback(void *pContext, int Status) | 284 | static void FailureCallback(void *pContext, int Status) |
285 | { | 285 | { |
286 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)pContext; | 286 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)pContext; |
287 | 287 | ||
288 | /* target assertion occured */ | 288 | /* target assertion occured */ |
289 | NotifyTransportFailure(pProt, Status); | 289 | NotifyTransportFailure(pProt, Status); |
@@ -291,7 +291,7 @@ static void FailureCallback(void *pContext, int Status) | |||
291 | 291 | ||
292 | static void StateDumpCallback(void *pContext) | 292 | static void StateDumpCallback(void *pContext) |
293 | { | 293 | { |
294 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)pContext; | 294 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)pContext; |
295 | 295 | ||
296 | AR_DEBUG_PRINTF(ATH_DEBUG_ANY,("============ HCIUart State ======================\n")); | 296 | AR_DEBUG_PRINTF(ATH_DEBUG_ANY,("============ HCIUart State ======================\n")); |
297 | AR_DEBUG_PRINTF(ATH_DEBUG_ANY,("RecvStateFlags : 0x%X \n",pProt->RecvStateFlags)); | 297 | AR_DEBUG_PRINTF(ATH_DEBUG_ANY,("RecvStateFlags : 0x%X \n",pProt->RecvStateFlags)); |
@@ -306,7 +306,7 @@ static void StateDumpCallback(void *pContext) | |||
306 | 306 | ||
307 | static int HCIUartMessagePending(void *pContext, u8 LookAheadBytes[], int ValidBytes) | 307 | static int HCIUartMessagePending(void *pContext, u8 LookAheadBytes[], int ValidBytes) |
308 | { | 308 | { |
309 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)pContext; | 309 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)pContext; |
310 | int status = 0; | 310 | int status = 0; |
311 | int totalRecvLength = 0; | 311 | int totalRecvLength = 0; |
312 | HCI_TRANSPORT_PACKET_TYPE pktType = HCI_PACKET_INVALID; | 312 | HCI_TRANSPORT_PACKET_TYPE pktType = HCI_PACKET_INVALID; |
@@ -534,7 +534,7 @@ static int HCIUartMessagePending(void *pContext, u8 LookAheadBytes[], int ValidB | |||
534 | 534 | ||
535 | static void HCISendPacketCompletion(void *Context, HTC_PACKET *pPacket) | 535 | static void HCISendPacketCompletion(void *Context, HTC_PACKET *pPacket) |
536 | { | 536 | { |
537 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)Context; | 537 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)Context; |
538 | AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion (pPacket:0x%lX) \n",(unsigned long)pPacket)); | 538 | AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion (pPacket:0x%lX) \n",(unsigned long)pPacket)); |
539 | 539 | ||
540 | if (pPacket->Status) { | 540 | if (pPacket->Status) { |
@@ -547,7 +547,7 @@ static void HCISendPacketCompletion(void *Context, HTC_PACKET *pPacket) | |||
547 | AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion \n")); | 547 | AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("+HCISendPacketCompletion \n")); |
548 | } | 548 | } |
549 | 549 | ||
550 | static int SeekCreditsSynch(GMBOX_PROTO_HCI_UART *pProt) | 550 | static int SeekCreditsSynch(struct gmbox_proto_hci_uart *pProt) |
551 | { | 551 | { |
552 | int status = 0; | 552 | int status = 0; |
553 | int credits; | 553 | int credits; |
@@ -579,7 +579,7 @@ static int SeekCreditsSynch(GMBOX_PROTO_HCI_UART *pProt) | |||
579 | return status; | 579 | return status; |
580 | } | 580 | } |
581 | 581 | ||
582 | static int HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, bool Synchronous) | 582 | static int HCITrySend(struct gmbox_proto_hci_uart *pProt, HTC_PACKET *pPacket, bool Synchronous) |
583 | { | 583 | { |
584 | int status = 0; | 584 | int status = 0; |
585 | int transferLength; | 585 | int transferLength; |
@@ -794,7 +794,7 @@ static int HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, bool Syn | |||
794 | return status; | 794 | return status; |
795 | } | 795 | } |
796 | 796 | ||
797 | static void FlushSendQueue(GMBOX_PROTO_HCI_UART *pProt) | 797 | static void FlushSendQueue(struct gmbox_proto_hci_uart *pProt) |
798 | { | 798 | { |
799 | HTC_PACKET *pPacket; | 799 | HTC_PACKET *pPacket; |
800 | HTC_PACKET_QUEUE discardQueue; | 800 | HTC_PACKET_QUEUE discardQueue; |
@@ -818,7 +818,7 @@ static void FlushSendQueue(GMBOX_PROTO_HCI_UART *pProt) | |||
818 | 818 | ||
819 | } | 819 | } |
820 | 820 | ||
821 | static void FlushRecvBuffers(GMBOX_PROTO_HCI_UART *pProt) | 821 | static void FlushRecvBuffers(struct gmbox_proto_hci_uart *pProt) |
822 | { | 822 | { |
823 | HTC_PACKET_QUEUE discardQueue; | 823 | HTC_PACKET_QUEUE discardQueue; |
824 | HTC_PACKET *pPacket; | 824 | HTC_PACKET *pPacket; |
@@ -849,11 +849,11 @@ static void FlushRecvBuffers(GMBOX_PROTO_HCI_UART *pProt) | |||
849 | int GMboxProtocolInstall(struct ar6k_device *pDev) | 849 | int GMboxProtocolInstall(struct ar6k_device *pDev) |
850 | { | 850 | { |
851 | int status = 0; | 851 | int status = 0; |
852 | GMBOX_PROTO_HCI_UART *pProtocol = NULL; | 852 | struct gmbox_proto_hci_uart *pProtocol = NULL; |
853 | 853 | ||
854 | do { | 854 | do { |
855 | 855 | ||
856 | pProtocol = A_MALLOC(sizeof(GMBOX_PROTO_HCI_UART)); | 856 | pProtocol = A_MALLOC(sizeof(struct gmbox_proto_hci_uart)); |
857 | 857 | ||
858 | if (NULL == pProtocol) { | 858 | if (NULL == pProtocol) { |
859 | status = A_NO_MEMORY; | 859 | status = A_NO_MEMORY; |
@@ -891,7 +891,7 @@ int GMboxProtocolInstall(struct ar6k_device *pDev) | |||
891 | /*** protocol module uninstall entry point ***/ | 891 | /*** protocol module uninstall entry point ***/ |
892 | void GMboxProtocolUninstall(struct ar6k_device *pDev) | 892 | void GMboxProtocolUninstall(struct ar6k_device *pDev) |
893 | { | 893 | { |
894 | GMBOX_PROTO_HCI_UART *pProtocol = (GMBOX_PROTO_HCI_UART *)DEV_GMBOX_GET_PROTOCOL(pDev); | 894 | struct gmbox_proto_hci_uart *pProtocol = (struct gmbox_proto_hci_uart *)DEV_GMBOX_GET_PROTOCOL(pDev); |
895 | 895 | ||
896 | if (pProtocol != NULL) { | 896 | if (pProtocol != NULL) { |
897 | 897 | ||
@@ -908,7 +908,7 @@ void GMboxProtocolUninstall(struct ar6k_device *pDev) | |||
908 | 908 | ||
909 | } | 909 | } |
910 | 910 | ||
911 | static int NotifyTransportReady(GMBOX_PROTO_HCI_UART *pProt) | 911 | static int NotifyTransportReady(struct gmbox_proto_hci_uart *pProt) |
912 | { | 912 | { |
913 | HCI_TRANSPORT_PROPERTIES props; | 913 | HCI_TRANSPORT_PROPERTIES props; |
914 | int status = 0; | 914 | int status = 0; |
@@ -938,7 +938,7 @@ static int NotifyTransportReady(GMBOX_PROTO_HCI_UART *pProt) | |||
938 | 938 | ||
939 | HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo) | 939 | HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo) |
940 | { | 940 | { |
941 | GMBOX_PROTO_HCI_UART *pProtocol = NULL; | 941 | struct gmbox_proto_hci_uart *pProtocol = NULL; |
942 | struct ar6k_device *pDev; | 942 | struct ar6k_device *pDev; |
943 | 943 | ||
944 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportAttach \n")); | 944 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportAttach \n")); |
@@ -949,7 +949,7 @@ HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_I | |||
949 | 949 | ||
950 | do { | 950 | do { |
951 | 951 | ||
952 | pProtocol = (GMBOX_PROTO_HCI_UART *)DEV_GMBOX_GET_PROTOCOL(pDev); | 952 | pProtocol = (struct gmbox_proto_hci_uart *)DEV_GMBOX_GET_PROTOCOL(pDev); |
953 | 953 | ||
954 | if (NULL == pProtocol) { | 954 | if (NULL == pProtocol) { |
955 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("GMBOX protocol not installed! \n")); | 955 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("GMBOX protocol not installed! \n")); |
@@ -983,7 +983,7 @@ HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_I | |||
983 | 983 | ||
984 | void HCI_TransportDetach(HCI_TRANSPORT_HANDLE HciTrans) | 984 | void HCI_TransportDetach(HCI_TRANSPORT_HANDLE HciTrans) |
985 | { | 985 | { |
986 | GMBOX_PROTO_HCI_UART *pProtocol = (GMBOX_PROTO_HCI_UART *)HciTrans; | 986 | struct gmbox_proto_hci_uart *pProtocol = (struct gmbox_proto_hci_uart *)HciTrans; |
987 | struct ar6k_device *pDev = pProtocol->pDev; | 987 | struct ar6k_device *pDev = pProtocol->pDev; |
988 | 988 | ||
989 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportDetach \n")); | 989 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportDetach \n")); |
@@ -1003,7 +1003,7 @@ void HCI_TransportDetach(HCI_TRANSPORT_HANDLE HciTrans) | |||
1003 | 1003 | ||
1004 | int HCI_TransportAddReceivePkts(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue) | 1004 | int HCI_TransportAddReceivePkts(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue) |
1005 | { | 1005 | { |
1006 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1006 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1007 | int status = 0; | 1007 | int status = 0; |
1008 | bool unblockRecv = false; | 1008 | bool unblockRecv = false; |
1009 | HTC_PACKET *pPacket; | 1009 | HTC_PACKET *pPacket; |
@@ -1071,14 +1071,14 @@ int HCI_TransportAddReceivePkts(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE | |||
1071 | 1071 | ||
1072 | int HCI_TransportSendPkt(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous) | 1072 | int HCI_TransportSendPkt(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous) |
1073 | { | 1073 | { |
1074 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1074 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1075 | 1075 | ||
1076 | return HCITrySend(pProt,pPacket,Synchronous); | 1076 | return HCITrySend(pProt,pPacket,Synchronous); |
1077 | } | 1077 | } |
1078 | 1078 | ||
1079 | void HCI_TransportStop(HCI_TRANSPORT_HANDLE HciTrans) | 1079 | void HCI_TransportStop(HCI_TRANSPORT_HANDLE HciTrans) |
1080 | { | 1080 | { |
1081 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1081 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1082 | 1082 | ||
1083 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportStop \n")); | 1083 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportStop \n")); |
1084 | 1084 | ||
@@ -1105,7 +1105,7 @@ void HCI_TransportStop(HCI_TRANSPORT_HANDLE HciTrans) | |||
1105 | int HCI_TransportStart(HCI_TRANSPORT_HANDLE HciTrans) | 1105 | int HCI_TransportStart(HCI_TRANSPORT_HANDLE HciTrans) |
1106 | { | 1106 | { |
1107 | int status; | 1107 | int status; |
1108 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1108 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1109 | 1109 | ||
1110 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportStart \n")); | 1110 | AR_DEBUG_PRINTF(ATH_DEBUG_TRC,("+HCI_TransportStart \n")); |
1111 | 1111 | ||
@@ -1151,7 +1151,7 @@ int HCI_TransportStart(HCI_TRANSPORT_HANDLE HciTrans) | |||
1151 | 1151 | ||
1152 | int HCI_TransportEnableDisableAsyncRecv(HCI_TRANSPORT_HANDLE HciTrans, bool Enable) | 1152 | int HCI_TransportEnableDisableAsyncRecv(HCI_TRANSPORT_HANDLE HciTrans, bool Enable) |
1153 | { | 1153 | { |
1154 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1154 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1155 | return DevGMboxIRQAction(pProt->pDev, | 1155 | return DevGMboxIRQAction(pProt->pDev, |
1156 | Enable ? GMBOX_RECV_IRQ_ENABLE : GMBOX_RECV_IRQ_DISABLE, | 1156 | Enable ? GMBOX_RECV_IRQ_ENABLE : GMBOX_RECV_IRQ_DISABLE, |
1157 | PROC_IO_SYNC); | 1157 | PROC_IO_SYNC); |
@@ -1162,7 +1162,7 @@ int HCI_TransportRecvHCIEventSync(HCI_TRANSPORT_HANDLE HciTrans, | |||
1162 | HTC_PACKET *pPacket, | 1162 | HTC_PACKET *pPacket, |
1163 | int MaxPollMS) | 1163 | int MaxPollMS) |
1164 | { | 1164 | { |
1165 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1165 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1166 | int status = 0; | 1166 | int status = 0; |
1167 | u8 lookAhead[8]; | 1167 | u8 lookAhead[8]; |
1168 | int bytes; | 1168 | int bytes; |
@@ -1232,7 +1232,7 @@ int HCI_TransportRecvHCIEventSync(HCI_TRANSPORT_HANDLE HciTrans, | |||
1232 | #define MSB_SCRATCH_IDX 5 | 1232 | #define MSB_SCRATCH_IDX 5 |
1233 | int HCI_TransportSetBaudRate(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud) | 1233 | int HCI_TransportSetBaudRate(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud) |
1234 | { | 1234 | { |
1235 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1235 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1236 | HIF_DEVICE *pHIFDevice = (HIF_DEVICE *)(pProt->pDev->HIFDevice); | 1236 | HIF_DEVICE *pHIFDevice = (HIF_DEVICE *)(pProt->pDev->HIFDevice); |
1237 | u32 scaledBaud, scratchAddr; | 1237 | u32 scaledBaud, scratchAddr; |
1238 | int status = 0; | 1238 | int status = 0; |
@@ -1264,7 +1264,7 @@ int HCI_TransportSetBaudRate(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud) | |||
1264 | int HCI_TransportEnablePowerMgmt(HCI_TRANSPORT_HANDLE HciTrans, bool Enable) | 1264 | int HCI_TransportEnablePowerMgmt(HCI_TRANSPORT_HANDLE HciTrans, bool Enable) |
1265 | { | 1265 | { |
1266 | int status; | 1266 | int status; |
1267 | GMBOX_PROTO_HCI_UART *pProt = (GMBOX_PROTO_HCI_UART *)HciTrans; | 1267 | struct gmbox_proto_hci_uart *pProt = (struct gmbox_proto_hci_uart *)HciTrans; |
1268 | 1268 | ||
1269 | if (Enable) { | 1269 | if (Enable) { |
1270 | status = DevGMboxSetTargetInterrupt(pProt->pDev, MBOX_SIG_HCI_BRIDGE_PWR_SAV_ON, BTPWRSAV_TIMEOUT_MS); | 1270 | status = DevGMboxSetTargetInterrupt(pProt->pDev, MBOX_SIG_HCI_BRIDGE_PWR_SAV_ON, BTPWRSAV_TIMEOUT_MS); |