From 8778f48ffa742cc83a719e3de47ee80781f5f327 Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Sat, 10 Mar 2007 15:57:11 +0100 Subject: rename KEVENT_* to AT76_DEVENT, also rename the corresponding functions and variables --- at76_usb.h | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'at76_usb.h') diff --git a/at76_usb.h b/at76_usb.h index 7893d3f..7f5e347 100644 --- a/at76_usb.h +++ b/at76_usb.h @@ -388,19 +388,19 @@ enum infra_state { MONITORING, }; -#define KEVENT_CTRL_HALT 1 -#define KEVENT_NEW_BSS 2 -#define KEVENT_SET_PROMISC 3 -#define KEVENT_MGMT_TIMEOUT 4 -#define KEVENT_SCAN 5 -#define KEVENT_JOIN 6 -#define KEVENT_STARTIBSS 7 -#define KEVENT_SUBMIT_RX 8 -#define KEVENT_RESTART 9 -#define KEVENT_ASSOC_DONE 10 -#define KEVENT_EXTERNAL_FW 11 -#define KEVENT_INTERNAL_FW 12 -#define KEVENT_RESET_DEVICE 13 +#define AT76_DEVENT_CTRL_HALT 1 +#define AT76_DEVENT_NEW_BSS 2 +#define AT76_DEVENT_SET_PROMISC 3 +#define AT76_DEVENT_MGMT_TIMEOUT 4 +#define AT76_DEVENT_SCAN 5 +#define AT76_DEVENT_JOIN 6 +#define AT76_DEVENT_STARTIBSS 7 +#define AT76_DEVENT_SUBMIT_RX 8 +#define AT76_DEVENT_RESTART 9 +#define AT76_DEVENT_ASSOC_DONE 10 +#define AT76_DEVENT_EXTERNAL_FW 11 +#define AT76_DEVENT_INTERNAL_FW 12 +#define AT76_DEVENT_RESET_DEVICE 13 /* a description of a regulatory domain and the allowed channels */ struct reg_domain { @@ -478,8 +478,10 @@ struct at76c503 { int open_count; /* number of times this port has been opened */ struct semaphore sem; /* locks this structure */ - unsigned long kevent_flags; - struct work_struct kevent; + /* our deferred event queue */ + unsigned long devent_flags; + struct work_struct devent_queue; + int nr_submit_rx_tries; /* number of tries to submit an rx urb left */ struct tasklet_struct tasklet; struct urb *rx_urb; /* tmp urb pointer for rx_tasklet */ @@ -713,7 +715,7 @@ static const u8 hw_rates[4] = { 0x82, 0x84, 0x0b, 0x16 }; #define DBG_PROGRESS 0x00000001 /* progress of scan-join-(auth-assoc)-connected */ #define DBG_BSS_TABLE 0x00000002 /* show the bss table after scans */ #define DBG_IOCTL 0x00000004 /* ioctl calls / settings */ -#define DBG_KEVENT 0x00000008 /* kevents */ +#define DBG_DEVENT 0x00000008 /* at76_devents */ #define DBG_TX_DATA 0x00000010 /* tx header */ #define DBG_TX_DATA_CONTENT 0x00000020 /* tx content */ #define DBG_TX_MGMT 0x00000040 -- cgit v1.2.3