wl18xx.h (27eb2c4b3d3e13f376a359e293c212a2e9407af5) wl18xx.h (75fb4df7f804229372e073977615a149a4a28dc0)
1/*
2 * This file is part of wl18xx
3 *
4 * Copyright (C) 2011 Texas Instruments Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.

--- 95 unchanged lines hidden (view full) ---

104 /* Should have less than this number of packets in queue of a fast
105 * link before we stop queuing up packets for it.
106 */
107 u8 tx_fast_stop_threshold;
108
109 u8 padding[3];
110};
111
1/*
2 * This file is part of wl18xx
3 *
4 * Copyright (C) 2011 Texas Instruments Inc.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.

--- 95 unchanged lines hidden (view full) ---

104 /* Should have less than this number of packets in queue of a fast
105 * link before we stop queuing up packets for it.
106 */
107 u8 tx_fast_stop_threshold;
108
109 u8 padding[3];
110};
111
112struct wl18xx_fw_packet_counters {
113 /* Cumulative counter of released packets per AC */
114 u8 tx_released_pkts[NUM_TX_QUEUES];
115
116 /* Cumulative counter of freed packets per HLID */
117 u8 tx_lnk_free_pkts[WL12XX_MAX_LINKS];
118
119 /* Cumulative counter of released Voice memory blocks */
120 u8 tx_voice_released_blks;
121
122 /* Tx rate of the last transmitted packet */
123 u8 tx_last_rate;
124
125 u8 padding[2];
126} __packed;
127
128/* FW status registers */
129struct wl18xx_fw_status {
130 __le32 intr;
131 u8 fw_rx_counter;
132 u8 drv_rx_counter;
133 u8 reserved;
134 u8 tx_results_counter;
135 __le32 rx_pkt_descs[WL18XX_NUM_RX_DESCRIPTORS];
136
137 __le32 fw_localtime;
138
139 /*
140 * A bitmap (where each bit represents a single HLID)
141 * to indicate if the station is in PS mode.
142 */
143 __le32 link_ps_bitmap;
144
145 /*
146 * A bitmap (where each bit represents a single HLID) to indicate
147 * if the station is in Fast mode
148 */
149 __le32 link_fast_bitmap;
150
151 /* Cumulative counter of total released mem blocks since FW-reset */
152 __le32 total_released_blks;
153
154 /* Size (in Memory Blocks) of TX pool */
155 __le32 tx_total;
156
157 struct wl18xx_fw_packet_counters counters;
158
159 __le32 log_start_addr;
160
161 /* Private status to be used by the lower drivers */
162 struct wl18xx_fw_status_priv priv;
163} __packed;
164
112#define WL18XX_PHY_VERSION_MAX_LEN 20
113
114struct wl18xx_static_data_priv {
115 char phy_version[WL18XX_PHY_VERSION_MAX_LEN];
116};
117
118struct wl18xx_clk_cfg {
119 u32 n;

--- 21 unchanged lines hidden ---
165#define WL18XX_PHY_VERSION_MAX_LEN 20
166
167struct wl18xx_static_data_priv {
168 char phy_version[WL18XX_PHY_VERSION_MAX_LEN];
169};
170
171struct wl18xx_clk_cfg {
172 u32 n;

--- 21 unchanged lines hidden ---