diff options
Diffstat (limited to 'drivers/net/wireless/bcmdhd/include/htsf.h')
-rw-r--r-- | drivers/net/wireless/bcmdhd/include/htsf.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/include/htsf.h b/drivers/net/wireless/bcmdhd/include/htsf.h new file mode 100644 index 00000000000..379fbbe37db --- /dev/null +++ b/drivers/net/wireless/bcmdhd/include/htsf.h | |||
@@ -0,0 +1,74 @@ | |||
1 | /* | ||
2 | * Time stamps for latency measurements | ||
3 | * | ||
4 | * Copyright (C) 1999-2011, Broadcom Corporation | ||
5 | * | ||
6 | * Unless you and Broadcom execute a separate written software license | ||
7 | * agreement governing use of this software, this software is licensed to you | ||
8 | * under the terms of the GNU General Public License version 2 (the "GPL"), | ||
9 | * available at http://www.broadcom.com/licenses/GPLv2.php, with the | ||
10 | * following added to such license: | ||
11 | * | ||
12 | * As a special exception, the copyright holders of this software give you | ||
13 | * permission to link this software with independent modules, and to copy and | ||
14 | * distribute the resulting executable under terms of your choice, provided that | ||
15 | * you also meet, for each linked independent module, the terms and conditions of | ||
16 | * the license of that module. An independent module is a module which is not | ||
17 | * derived from this software. The special exception does not apply to any | ||
18 | * modifications of the software. | ||
19 | * | ||
20 | * Notwithstanding the above, under no circumstances may you combine this | ||
21 | * software in any way with any other Broadcom software provided under a license | ||
22 | * other than the GPL, without Broadcom's express prior written consent. | ||
23 | * | ||
24 | * $Id: htsf.h,v 1.1.2.4 2011-01-21 08:27:03 Exp $ | ||
25 | */ | ||
26 | #ifndef _HTSF_H_ | ||
27 | #define _HTSF_H_ | ||
28 | |||
29 | #define HTSFMAGIC 0xCDCDABAB /* in network order for tcpdump */ | ||
30 | #define HTSFENDMAGIC 0xEFEFABAB /* to distinguish from RT2 magic */ | ||
31 | #define HTSF_HOSTOFFSET 102 | ||
32 | #define HTSF_DNGLOFFSET HTSF_HOSTOFFSET - 4 | ||
33 | #define HTSF_DNGLOFFSET2 HTSF_HOSTOFFSET + 106 | ||
34 | #define HTSF_MIN_PKTLEN 200 | ||
35 | #define ETHER_TYPE_BRCM_PKTDLYSTATS 0x886d | ||
36 | |||
37 | typedef enum htsfts_type { | ||
38 | T10, | ||
39 | T20, | ||
40 | T30, | ||
41 | T40, | ||
42 | T50, | ||
43 | T60, | ||
44 | T70, | ||
45 | T80, | ||
46 | T90, | ||
47 | TA0, | ||
48 | TE0 | ||
49 | } htsf_timestamp_t; | ||
50 | |||
51 | typedef struct { | ||
52 | uint32 magic; | ||
53 | uint32 prio; | ||
54 | uint32 seqnum; | ||
55 | uint32 misc; | ||
56 | uint32 c10; | ||
57 | uint32 t10; | ||
58 | uint32 c20; | ||
59 | uint32 t20; | ||
60 | uint32 t30; | ||
61 | uint32 t40; | ||
62 | uint32 t50; | ||
63 | uint32 t60; | ||
64 | uint32 t70; | ||
65 | uint32 t80; | ||
66 | uint32 t90; | ||
67 | uint32 cA0; | ||
68 | uint32 tA0; | ||
69 | uint32 cE0; | ||
70 | uint32 tE0; | ||
71 | uint32 endmagic; | ||
72 | } htsfts_t; | ||
73 | |||
74 | #endif /* _HTSF_H_ */ | ||