wl12xx.h (42249094f79422fbf5ed4b54eeb48ff096809b8f) wl12xx.h (75fb4df7f804229372e073977615a149a4a28dc0)
1/*
2 * This file is part of wl12xx
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.

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

74 struct wl12xx_priv_conf conf;
75
76 int ref_clock;
77 int tcxo_clock;
78
79 struct wl127x_rx_mem_pool_addr *rx_mem_addr;
80};
81
1/*
2 * This file is part of wl12xx
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.

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

74 struct wl12xx_priv_conf conf;
75
76 int ref_clock;
77 int tcxo_clock;
78
79 struct wl127x_rx_mem_pool_addr *rx_mem_addr;
80};
81
82struct wl12xx_fw_packet_counters {
83 /* Cumulative counter of released packets per AC */
84 u8 tx_released_pkts[NUM_TX_QUEUES];
85
86 /* Cumulative counter of freed packets per HLID */
87 u8 tx_lnk_free_pkts[WL12XX_MAX_LINKS];
88
89 /* Cumulative counter of released Voice memory blocks */
90 u8 tx_voice_released_blks;
91
92 /* Tx rate of the last transmitted packet */
93 u8 tx_last_rate;
94
95 u8 padding[2];
96} __packed;
97
98/* FW status registers */
99struct wl12xx_fw_status {
100 __le32 intr;
101 u8 fw_rx_counter;
102 u8 drv_rx_counter;
103 u8 reserved;
104 u8 tx_results_counter;
105 __le32 rx_pkt_descs[WL12XX_NUM_RX_DESCRIPTORS];
106
107 __le32 fw_localtime;
108
109 /*
110 * A bitmap (where each bit represents a single HLID)
111 * to indicate if the station is in PS mode.
112 */
113 __le32 link_ps_bitmap;
114
115 /*
116 * A bitmap (where each bit represents a single HLID) to indicate
117 * if the station is in Fast mode
118 */
119 __le32 link_fast_bitmap;
120
121 /* Cumulative counter of total released mem blocks since FW-reset */
122 __le32 total_released_blks;
123
124 /* Size (in Memory Blocks) of TX pool */
125 __le32 tx_total;
126
127 struct wl12xx_fw_packet_counters counters;
128
129 __le32 log_start_addr;
130} __packed;
131
82#endif /* __WL12XX_PRIV_H__ */
132#endif /* __WL12XX_PRIV_H__ */