summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/bcm4330/include/htsf.h
blob: cef9e004f025d9aa4475cc2501fea034405ba932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
 * Time stamps for latency measurements 
 *
 * Copyright (C) 1999-2011, Broadcom Corporation
 * 
 *         Unless you and Broadcom execute a separate written software license
 * agreement governing use of this software, this software is licensed to you
 * under the terms of the GNU General Public License version 2 (the "GPL"),
 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
 * following added to such license:
 * 
 *      As a special exception, the copyright holders of this software give you
 * permission to link this software with independent modules, and to copy and
 * distribute the resulting executable under terms of your choice, provided that
 * you also meet, for each linked independent module, the terms and conditions of
 * the license of that module.  An independent module is a module which is not
 * derived from this software.  The special exception does not apply to any
 * modifications of the software.
 * 
 *      Notwithstanding the above, under no circumstances may you combine this
 * software in any way with any other Broadcom software provided under a license
 * other than the GPL, without Broadcom's express prior written consent.
 *
 * $Id: htsf.h 275703 2011-08-04 20:20:27Z $
 */
#ifndef _HTSF_H_
#define _HTSF_H_

#define HTSFMAGIC       	0xCDCDABAB  /* in network order for tcpdump  */
#define HTSFENDMAGIC    	0xEFEFABAB  /* to distinguish from RT2 magic */
#define HTSF_HOSTOFFSET		102
#define HTSF_DNGLOFFSET		HTSF_HOSTOFFSET	- 4
#define HTSF_DNGLOFFSET2	HTSF_HOSTOFFSET	+ 106
#define HTSF_MIN_PKTLEN 	200
#define ETHER_TYPE_BRCM_PKTDLYSTATS     0x886d

typedef enum htsfts_type {
	T10,
	T20,
	T30,
	T40,
	T50,
	T60,
	T70,
	T80,
	T90,
	TA0,
	TE0
} htsf_timestamp_t;

typedef struct {
	uint32 magic;
	uint32 prio;
	uint32 seqnum;
	uint32 misc;
	uint32 c10;
	uint32 t10;
	uint32 c20;
	uint32 t20;
	uint32 t30;
	uint32 t40;
	uint32 t50;
	uint32 t60;
	uint32 t70;
	uint32 t80;
	uint32 t90;
	uint32 cA0;
	uint32 tA0;
	uint32 cE0;
	uint32 tE0;
	uint32 endmagic;
} htsfts_t;

#endif /* _HTSF_H_ */