ath6kl: remove-typedef HIF_PENDING_EVENTS_INFO
remove-typedef -s HIF_PENDING_EVENTS_INFO \ "struct hif_pending_events_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>
This commit is contained in:
parent
d45f742841
commit
03210b8fbc
3 changed files with 8 additions and 8 deletions
|
@ -790,7 +790,7 @@ bmiBufferReceive(HIF_DEVICE *device,
|
||||||
int status;
|
int status;
|
||||||
u32 address;
|
u32 address;
|
||||||
u32 mboxAddress[HTC_MAILBOX_NUM_MAX];
|
u32 mboxAddress[HTC_MAILBOX_NUM_MAX];
|
||||||
HIF_PENDING_EVENTS_INFO hifPendingEvents;
|
struct hif_pending_events_info hifPendingEvents;
|
||||||
static HIF_PENDING_EVENTS_FUNC getPendingEventsFunc = NULL;
|
static HIF_PENDING_EVENTS_FUNC getPendingEventsFunc = NULL;
|
||||||
|
|
||||||
if (!pendingEventsFuncCheck) {
|
if (!pendingEventsFuncCheck) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ int DevPollMboxMsgRecv(struct ar6k_device *pDev,
|
||||||
|
|
||||||
if (pDev->GetPendingEventsFunc != NULL) {
|
if (pDev->GetPendingEventsFunc != NULL) {
|
||||||
|
|
||||||
HIF_PENDING_EVENTS_INFO events;
|
struct hif_pending_events_info events;
|
||||||
|
|
||||||
#ifdef THREAD_X
|
#ifdef THREAD_X
|
||||||
events.Polling =1;
|
events.Polling =1;
|
||||||
|
@ -319,7 +319,7 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket)
|
||||||
|
|
||||||
if (pDev->GetPendingEventsFunc != NULL) {
|
if (pDev->GetPendingEventsFunc != NULL) {
|
||||||
/* the HIF layer collected the information for us */
|
/* the HIF layer collected the information for us */
|
||||||
HIF_PENDING_EVENTS_INFO *pEvents = (HIF_PENDING_EVENTS_INFO *)pPacket->pBuffer;
|
struct hif_pending_events_info *pEvents = (struct hif_pending_events_info *)pPacket->pBuffer;
|
||||||
if (pEvents->Events & HIF_RECV_MSG_AVAIL) {
|
if (pEvents->Events & HIF_RECV_MSG_AVAIL) {
|
||||||
lookAhead = pEvents->LookAhead;
|
lookAhead = pEvents->LookAhead;
|
||||||
if (0 == lookAhead) {
|
if (0 == lookAhead) {
|
||||||
|
@ -439,7 +439,7 @@ int DevCheckPendingRecvMsgsAsync(void *context)
|
||||||
if (pDev->GetPendingEventsFunc) {
|
if (pDev->GetPendingEventsFunc) {
|
||||||
/* HIF layer has it's own mechanism, pass the IO to it.. */
|
/* HIF layer has it's own mechanism, pass the IO to it.. */
|
||||||
status = pDev->GetPendingEventsFunc(pDev->HIFDevice,
|
status = pDev->GetPendingEventsFunc(pDev->HIFDevice,
|
||||||
(HIF_PENDING_EVENTS_INFO *)pIOPacket->pBuffer,
|
(struct hif_pending_events_info *)pIOPacket->pBuffer,
|
||||||
pIOPacket);
|
pIOPacket);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -490,7 +490,7 @@ static int ProcessPendingIRQs(struct ar6k_device *pDev, bool *pDone, bool *pASyn
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pDev->GetPendingEventsFunc != NULL) {
|
if (pDev->GetPendingEventsFunc != NULL) {
|
||||||
HIF_PENDING_EVENTS_INFO events;
|
struct hif_pending_events_info events;
|
||||||
|
|
||||||
#ifdef THREAD_X
|
#ifdef THREAD_X
|
||||||
events.Polling= 0;
|
events.Polling= 0;
|
||||||
|
|
|
@ -343,7 +343,7 @@ typedef struct osdrv_callbacks {
|
||||||
needs to read the register table to figure out what */
|
needs to read the register table to figure out what */
|
||||||
#define HIF_RECV_MSG_AVAIL (1 << 1) /* pending recv packet */
|
#define HIF_RECV_MSG_AVAIL (1 << 1) /* pending recv packet */
|
||||||
|
|
||||||
typedef struct _HIF_PENDING_EVENTS_INFO {
|
struct hif_pending_events_info {
|
||||||
u32 Events;
|
u32 Events;
|
||||||
u32 LookAhead;
|
u32 LookAhead;
|
||||||
u32 AvailableRecvBytes;
|
u32 AvailableRecvBytes;
|
||||||
|
@ -351,12 +351,12 @@ typedef struct _HIF_PENDING_EVENTS_INFO {
|
||||||
u32 Polling;
|
u32 Polling;
|
||||||
u32 INT_CAUSE_REG;
|
u32 INT_CAUSE_REG;
|
||||||
#endif
|
#endif
|
||||||
} HIF_PENDING_EVENTS_INFO;
|
};
|
||||||
|
|
||||||
/* function to get pending events , some HIF modules use special mechanisms
|
/* function to get pending events , some HIF modules use special mechanisms
|
||||||
* to detect packet available and other interrupts */
|
* to detect packet available and other interrupts */
|
||||||
typedef int ( *HIF_PENDING_EVENTS_FUNC)(HIF_DEVICE *device,
|
typedef int ( *HIF_PENDING_EVENTS_FUNC)(HIF_DEVICE *device,
|
||||||
HIF_PENDING_EVENTS_INFO *pEvents,
|
struct hif_pending_events_info *pEvents,
|
||||||
void *AsyncContext);
|
void *AsyncContext);
|
||||||
|
|
||||||
#define HIF_MASK_RECV true
|
#define HIF_MASK_RECV true
|
||||||
|
|
Reference in a new issue