diff options
Diffstat (limited to 'drivers/net/wireless/ti/wl12xx/wl12xx.h')
-rw-r--r-- | drivers/net/wireless/ti/wl12xx/wl12xx.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl12xx/wl12xx.h b/drivers/net/wireless/ti/wl12xx/wl12xx.h index 9e5484a73667..75c92658bfea 100644 --- a/drivers/net/wireless/ti/wl12xx/wl12xx.h +++ b/drivers/net/wireless/ti/wl12xx/wl12xx.h | |||
@@ -65,6 +65,9 @@ | |||
65 | 65 | ||
66 | #define WL12XX_RX_BA_MAX_SESSIONS 3 | 66 | #define WL12XX_RX_BA_MAX_SESSIONS 3 |
67 | 67 | ||
68 | #define WL12XX_MAX_AP_STATIONS 8 | ||
69 | #define WL12XX_MAX_LINKS 12 | ||
70 | |||
68 | struct wl127x_rx_mem_pool_addr { | 71 | struct wl127x_rx_mem_pool_addr { |
69 | u32 addr; | 72 | u32 addr; |
70 | u32 addr_extra; | 73 | u32 addr_extra; |
@@ -79,4 +82,54 @@ struct wl12xx_priv { | |||
79 | struct wl127x_rx_mem_pool_addr *rx_mem_addr; | 82 | struct wl127x_rx_mem_pool_addr *rx_mem_addr; |
80 | }; | 83 | }; |
81 | 84 | ||
85 | struct wl12xx_fw_packet_counters { | ||
86 | /* Cumulative counter of released packets per AC */ | ||
87 | u8 tx_released_pkts[NUM_TX_QUEUES]; | ||
88 | |||
89 | /* Cumulative counter of freed packets per HLID */ | ||
90 | u8 tx_lnk_free_pkts[WL12XX_MAX_LINKS]; | ||
91 | |||
92 | /* Cumulative counter of released Voice memory blocks */ | ||
93 | u8 tx_voice_released_blks; | ||
94 | |||
95 | /* Tx rate of the last transmitted packet */ | ||
96 | u8 tx_last_rate; | ||
97 | |||
98 | u8 padding[2]; | ||
99 | } __packed; | ||
100 | |||
101 | /* FW status registers */ | ||
102 | struct wl12xx_fw_status { | ||
103 | __le32 intr; | ||
104 | u8 fw_rx_counter; | ||
105 | u8 drv_rx_counter; | ||
106 | u8 reserved; | ||
107 | u8 tx_results_counter; | ||
108 | __le32 rx_pkt_descs[WL12XX_NUM_RX_DESCRIPTORS]; | ||
109 | |||
110 | __le32 fw_localtime; | ||
111 | |||
112 | /* | ||
113 | * A bitmap (where each bit represents a single HLID) | ||
114 | * to indicate if the station is in PS mode. | ||
115 | */ | ||
116 | __le32 link_ps_bitmap; | ||
117 | |||
118 | /* | ||
119 | * A bitmap (where each bit represents a single HLID) to indicate | ||
120 | * if the station is in Fast mode | ||
121 | */ | ||
122 | __le32 link_fast_bitmap; | ||
123 | |||
124 | /* Cumulative counter of total released mem blocks since FW-reset */ | ||
125 | __le32 total_released_blks; | ||
126 | |||
127 | /* Size (in Memory Blocks) of TX pool */ | ||
128 | __le32 tx_total; | ||
129 | |||
130 | struct wl12xx_fw_packet_counters counters; | ||
131 | |||
132 | __le32 log_start_addr; | ||
133 | } __packed; | ||
134 | |||
82 | #endif /* __WL12XX_PRIV_H__ */ | 135 | #endif /* __WL12XX_PRIV_H__ */ |