diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-05-10 12:13:21 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 15:55:00 +0300 |
commit | 1fab39dc4a5fbd241787eb964d911d0aecbbcb84 (patch) | |
tree | 51f7b659f74fdab7f1d186d3b4278822001f8e6b /drivers/net/wireless/ti/wl18xx/wl18xx.h | |
parent | f648eab75815086328ea92f31b10df16cf090075 (diff) | |
download | blackbird-obmc-linux-1fab39dc4a5fbd241787eb964d911d0aecbbcb84.tar.gz blackbird-obmc-linux-1fab39dc4a5fbd241787eb964d911d0aecbbcb84.zip |
wl18xx: add fw_status private data
The wl18xx chip passes extra information in the firmware status to the
driver. Add a private data section to handle that.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/wl18xx.h')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/wl18xx.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/wl18xx.h b/drivers/net/wireless/ti/wl18xx/wl18xx.h index 58709bb88b7b..68ef5ba2f607 100644 --- a/drivers/net/wireless/ti/wl18xx/wl18xx.h +++ b/drivers/net/wireless/ti/wl18xx/wl18xx.h @@ -30,4 +30,22 @@ struct wl18xx_priv { u8 cmd_buf[WL18XX_CMD_MAX_SIZE]; }; +#define WL18XX_FW_MAX_TX_STATUS_DESC 33 + +struct wl18xx_fw_status_priv { + /* + * Index in released_tx_desc for first byte that holds + * released tx host desc + */ + u8 fw_release_idx; + + /* + * Array of host Tx descriptors, where fw_release_idx + * indicated the first released idx. + */ + u8 released_tx_desc[WL18XX_FW_MAX_TX_STATUS_DESC]; + + u8 padding[2]; +}; + #endif /* __WL18XX_PRIV_H__ */ |