spi: Use dev_get_drvdata at appropriate places
[deliverable/linux.git] / drivers / staging / csr / csr_wifi_hip_ta_sampling.h
1 /*****************************************************************************
2
3 (c) Cambridge Silicon Radio Limited 2011
4 All rights reserved and confidential information of CSR
5
6 Refer to LICENSE.txt included with this source for details
7 on the license terms.
8
9 *****************************************************************************/
10
11 /*
12 * ---------------------------------------------------------------------------
13 * FILE: csr_wifi_hip_ta_sampling.h
14 *
15 * PURPOSE:
16 * This file contains Traffic Analysis definitions common to the
17 * sampling and analysis modules.
18 *
19 * ---------------------------------------------------------------------------
20 */
21 #ifndef __TA_SAMPLING_H__
22 #define __TA_SAMPLING_H__
23
24 #include "csr_wifi_hip_unifi.h"
25
26 typedef struct ta_l4stats
27 {
28 u32 rxTcpBytesCount;
29 u32 txTcpBytesCount;
30 u32 rxUdpBytesCount;
31 u32 txUdpBytesCount;
32 } ta_l4stats_t;
33
34 /*
35 * Context structure to preserve state between calls.
36 */
37
38 typedef struct ta_data
39 {
40 /* Current packet filter configuration */
41 u16 packet_filter;
42
43 /* Current packet custom filter configuration */
44 CsrWifiRouterCtrlTrafficFilter custom_filter;
45
46 /* The timestamp of the last tx packet processed. */
47 u32 tx_last_ts;
48
49 /* The timestamp of the last packet processed. */
50 u32 last_indication_time;
51
52 /* Statistics */
53 CsrWifiRouterCtrlTrafficStats stats;
54
55 /* Current traffic classification */
56 CsrWifiRouterCtrlTrafficType traffic_type;
57
58 /* Sum of packet rx rates for this interval used to calculate mean */
59 u32 rx_sum_rate;
60 ta_l4stats_t ta_l4stats;
61 } ta_data_t;
62
63
64 void unifi_ta_sampling_init(card_t *card);
65
66 #endif /* __TA_SAMPLING_H__ */
This page took 0.035758 seconds and 5 git commands to generate.