diff options
author | Luciano Coelho <coelho@ti.com> | 2012-04-11 10:15:46 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-04-12 08:43:57 +0300 |
commit | f16ff75872b04fa6c779367ae24146c8a1729f2e (patch) | |
tree | 05e21d99615ee1312ce91edecc7c47b575398959 /drivers/net/wireless/ti/wlcore/wlcore.h | |
parent | 30d9b4a58bc168620eed0fc6d90b2f05cd02a462 (diff) | |
download | linux-f16ff75872b04fa6c779367ae24146c8a1729f2e.tar.bz2 |
wlcore/wl12xx: add command trigger and event ack operations
Different chips may use different bits in the interrupt trigger
register. Add operations to handle these differences.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/wlcore.h')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/wlcore.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/ti/wlcore/wlcore.h b/drivers/net/wireless/ti/wlcore/wlcore.h index 38d1ed2967c8..76c27dd93c20 100644 --- a/drivers/net/wireless/ti/wlcore/wlcore.h +++ b/drivers/net/wireless/ti/wlcore/wlcore.h @@ -30,6 +30,8 @@ struct wlcore_ops { int (*identify_chip)(struct wl1271 *wl); int (*boot)(struct wl1271 *wl); + void (*trigger_cmd)(struct wl1271 *wl); + void (*ack_event)(struct wl1271 *wl); s8 (*get_pg_ver)(struct wl1271 *wl); void (*get_mac)(struct wl1271 *wl); }; @@ -345,22 +347,6 @@ int wlcore_free_hw(struct wl1271 *wl); /* Hardware to Embedded CPU Interrupts - first 32-bit register set */ /* - * Host Command Interrupt. Setting this bit masks - * the interrupt that the host issues to inform - * the FW that it has sent a command - * to the Wlan hardware Command Mailbox. - */ -#define INTR_TRIG_CMD BIT(0) - -/* - * Host Event Acknowlegde Interrupt. The host - * sets this bit to acknowledge that it received - * the unsolicited information from the event - * mailbox. - */ -#define INTR_TRIG_EVENT_ACK BIT(1) - -/* * The host sets this bit to inform the Wlan * FW that a TX packet is in the XFER * Buffer #0. |