aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2011-03-14 13:58:38 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-03-14 14:58:41 -0400
commitc9478eaf5e78c6379fab320eac98f9a878efd579 (patch)
tree0c9f26c802457e4cc05f6c3b8f2d06d38198496c /drivers/staging
parented8b361d88c23e2ee01ceb3ab00ab57e3b0d8233 (diff)
ath6kl: remove-typedef HCI_TRANSPORT_CONFIG_INFO
remove-typedef -s HCI_TRANSPORT_CONFIG_INFO \ "struct hci_transport_config_info" 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')
-rw-r--r--drivers/staging/ath6kl/htc2/AR6000/ar6k.h2
-rw-r--r--drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c6
-rw-r--r--drivers/staging/ath6kl/include/hci_transport_api.h6
-rw-r--r--drivers/staging/ath6kl/os/linux/export_hci_transport.c2
-rw-r--r--drivers/staging/ath6kl/os/linux/hci_bridge.c4
-rw-r--r--drivers/staging/ath6kl/os/linux/include/export_hci_transport.h2
6 files changed, 11 insertions, 11 deletions
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k.h b/drivers/staging/ath6kl/htc2/AR6000/ar6k.h
index 88ef25a1abc..4b69f91ef3f 100644
--- a/drivers/staging/ath6kl/htc2/AR6000/ar6k.h
+++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k.h
@@ -361,7 +361,7 @@ static INLINE int DevSetupGMbox(struct ar6k_device *pDev) {
361#ifdef ATH_AR6K_ENABLE_GMBOX 361#ifdef ATH_AR6K_ENABLE_GMBOX
362 362
363 /* GMBOX protocol modules must expose each of these internal APIs */ 363 /* GMBOX protocol modules must expose each of these internal APIs */
364HCI_TRANSPORT_HANDLE GMboxAttachProtocol(struct ar6k_device *pDev, HCI_TRANSPORT_CONFIG_INFO *pInfo); 364HCI_TRANSPORT_HANDLE GMboxAttachProtocol(struct ar6k_device *pDev, struct hci_transport_config_info *pInfo);
365int GMboxProtocolInstall(struct ar6k_device *pDev); 365int GMboxProtocolInstall(struct ar6k_device *pDev);
366void GMboxProtocolUninstall(struct ar6k_device *pDev); 366void GMboxProtocolUninstall(struct ar6k_device *pDev);
367 367
diff --git a/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c b/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
index 78da8a15512..c7e8f711ad0 100644
--- a/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
+++ b/drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c
@@ -57,7 +57,7 @@
57#define BTPWRSAV_TIMEOUT_MS 1 57#define BTPWRSAV_TIMEOUT_MS 1
58 58
59struct gmbox_proto_hci_uart { 59struct gmbox_proto_hci_uart {
60 HCI_TRANSPORT_CONFIG_INFO HCIConfig; 60 struct hci_transport_config_info HCIConfig;
61 bool HCIAttached; 61 bool HCIAttached;
62 bool HCIStopped; 62 bool HCIStopped;
63 u32 RecvStateFlags; 63 u32 RecvStateFlags;
@@ -936,7 +936,7 @@ static int NotifyTransportReady(struct gmbox_proto_hci_uart *pProt)
936 936
937/*********** HCI UART protocol implementation ************************************************/ 937/*********** HCI UART protocol implementation ************************************************/
938 938
939HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo) 939HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, struct hci_transport_config_info *pInfo)
940{ 940{
941 struct gmbox_proto_hci_uart *pProtocol = NULL; 941 struct gmbox_proto_hci_uart *pProtocol = NULL;
942 struct ar6k_device *pDev; 942 struct ar6k_device *pDev;
@@ -961,7 +961,7 @@ HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_I
961 break; 961 break;
962 } 962 }
963 963
964 memcpy(&pProtocol->HCIConfig, pInfo, sizeof(HCI_TRANSPORT_CONFIG_INFO)); 964 memcpy(&pProtocol->HCIConfig, pInfo, sizeof(struct hci_transport_config_info));
965 965
966 A_ASSERT(pProtocol->HCIConfig.pHCIPktRecv != NULL); 966 A_ASSERT(pProtocol->HCIConfig.pHCIPktRecv != NULL);
967 A_ASSERT(pProtocol->HCIConfig.pHCISendComplete != NULL); 967 A_ASSERT(pProtocol->HCIConfig.pHCISendComplete != NULL);
diff --git a/drivers/staging/ath6kl/include/hci_transport_api.h b/drivers/staging/ath6kl/include/hci_transport_api.h
index 8ab692db6cf..7fa44f0e12a 100644
--- a/drivers/staging/ath6kl/include/hci_transport_api.h
+++ b/drivers/staging/ath6kl/include/hci_transport_api.h
@@ -85,7 +85,7 @@ typedef struct {
85 int IOBlockPad; /* I/O block padding required (always a power of 2) */ 85 int IOBlockPad; /* I/O block padding required (always a power of 2) */
86} HCI_TRANSPORT_PROPERTIES; 86} HCI_TRANSPORT_PROPERTIES;
87 87
88typedef struct _HCI_TRANSPORT_CONFIG_INFO { 88struct hci_transport_config_info {
89 int ACLRecvBufferWaterMark; /* low watermark to trigger recv refill */ 89 int ACLRecvBufferWaterMark; /* low watermark to trigger recv refill */
90 int EventRecvBufferWaterMark; /* low watermark to trigger recv refill */ 90 int EventRecvBufferWaterMark; /* low watermark to trigger recv refill */
91 int MaxSendQueueDepth; /* max number of packets in the single send queue */ 91 int MaxSendQueueDepth; /* max number of packets in the single send queue */
@@ -99,7 +99,7 @@ typedef struct _HCI_TRANSPORT_CONFIG_INFO {
99 HCI_TRANSPORT_RECV_REFILL pHCIPktRecvRefill; 99 HCI_TRANSPORT_RECV_REFILL pHCIPktRecvRefill;
100 HCI_TRANSPORT_RECV_ALLOC pHCIPktRecvAlloc; 100 HCI_TRANSPORT_RECV_ALLOC pHCIPktRecvAlloc;
101 HCI_TRANSPORT_SEND_FULL pHCISendFull; 101 HCI_TRANSPORT_SEND_FULL pHCISendFull;
102} HCI_TRANSPORT_CONFIG_INFO; 102};
103 103
104/* ------ Function Prototypes ------ */ 104/* ------ Function Prototypes ------ */
105/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 105/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -113,7 +113,7 @@ typedef struct _HCI_TRANSPORT_CONFIG_INFO {
113 @example: 113 @example:
114 @see also: HCI_TransportDetach 114 @see also: HCI_TransportDetach
115+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ 115+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
116HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo); 116HCI_TRANSPORT_HANDLE HCI_TransportAttach(void *HTCHandle, struct hci_transport_config_info *pInfo);
117 117
118/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 118/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
119 @desc: Detach from the HCI transport module 119 @desc: Detach from the HCI transport module
diff --git a/drivers/staging/ath6kl/os/linux/export_hci_transport.c b/drivers/staging/ath6kl/os/linux/export_hci_transport.c
index 168d6f7282b..fd875263f27 100644
--- a/drivers/staging/ath6kl/os/linux/export_hci_transport.c
+++ b/drivers/staging/ath6kl/os/linux/export_hci_transport.c
@@ -36,7 +36,7 @@
36#include "AR6002/hw4.0/hw/uart_reg.h" 36#include "AR6002/hw4.0/hw/uart_reg.h"
37#include "AR6002/hw4.0/hw/rtc_wlan_reg.h" 37#include "AR6002/hw4.0/hw/rtc_wlan_reg.h"
38 38
39HCI_TRANSPORT_HANDLE (*_HCI_TransportAttach)(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo); 39HCI_TRANSPORT_HANDLE (*_HCI_TransportAttach)(void *HTCHandle, struct hci_transport_config_info *pInfo);
40void (*_HCI_TransportDetach)(HCI_TRANSPORT_HANDLE HciTrans); 40void (*_HCI_TransportDetach)(HCI_TRANSPORT_HANDLE HciTrans);
41int (*_HCI_TransportAddReceivePkts)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue); 41int (*_HCI_TransportAddReceivePkts)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue);
42int (*_HCI_TransportSendPkt)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous); 42int (*_HCI_TransportSendPkt)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous);
diff --git a/drivers/staging/ath6kl/os/linux/hci_bridge.c b/drivers/staging/ath6kl/os/linux/hci_bridge.c
index 61ce094be2c..d0b68144359 100644
--- a/drivers/staging/ath6kl/os/linux/hci_bridge.c
+++ b/drivers/staging/ath6kl/os/linux/hci_bridge.c
@@ -469,7 +469,7 @@ int ar6000_setup_hci(void *ar)
469int ar6000_setup_hci(AR_SOFTC_T *ar) 469int ar6000_setup_hci(AR_SOFTC_T *ar)
470#endif 470#endif
471{ 471{
472 HCI_TRANSPORT_CONFIG_INFO config; 472 struct hci_transport_config_info config;
473 int status = 0; 473 int status = 0;
474 int i; 474 int i;
475 HTC_PACKET *pPacket; 475 HTC_PACKET *pPacket;
@@ -521,7 +521,7 @@ int ar6000_setup_hci(AR_SOFTC_T *ar)
521 FreeHTCStruct(pHcidevInfo,pPacket); 521 FreeHTCStruct(pHcidevInfo,pPacket);
522 } 522 }
523 523
524 A_MEMZERO(&config,sizeof(HCI_TRANSPORT_CONFIG_INFO)); 524 A_MEMZERO(&config,sizeof(struct hci_transport_config_info));
525 config.ACLRecvBufferWaterMark = MAX_ACL_RECV_BUFS / 2; 525 config.ACLRecvBufferWaterMark = MAX_ACL_RECV_BUFS / 2;
526 config.EventRecvBufferWaterMark = MAX_EVT_RECV_BUFS / 2; 526 config.EventRecvBufferWaterMark = MAX_EVT_RECV_BUFS / 2;
527 config.MaxSendQueueDepth = MAX_HCI_WRITE_QUEUE_DEPTH; 527 config.MaxSendQueueDepth = MAX_HCI_WRITE_QUEUE_DEPTH;
diff --git a/drivers/staging/ath6kl/os/linux/include/export_hci_transport.h b/drivers/staging/ath6kl/os/linux/include/export_hci_transport.h
index 51187f6b706..cf66717de39 100644
--- a/drivers/staging/ath6kl/os/linux/include/export_hci_transport.h
+++ b/drivers/staging/ath6kl/os/linux/include/export_hci_transport.h
@@ -25,7 +25,7 @@
25#include "hci_transport_api.h" 25#include "hci_transport_api.h"
26#include "common_drv.h" 26#include "common_drv.h"
27 27
28extern HCI_TRANSPORT_HANDLE (*_HCI_TransportAttach)(void *HTCHandle, HCI_TRANSPORT_CONFIG_INFO *pInfo); 28extern HCI_TRANSPORT_HANDLE (*_HCI_TransportAttach)(void *HTCHandle, struct hci_transport_config_info *pInfo);
29extern void (*_HCI_TransportDetach)(HCI_TRANSPORT_HANDLE HciTrans); 29extern void (*_HCI_TransportDetach)(HCI_TRANSPORT_HANDLE HciTrans);
30extern int (*_HCI_TransportAddReceivePkts)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue); 30extern int (*_HCI_TransportAddReceivePkts)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET_QUEUE *pQueue);
31extern int (*_HCI_TransportSendPkt)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous); 31extern int (*_HCI_TransportSendPkt)(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKET *pPacket, bool Synchronous);