rk: temp revert rk change
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / bcmdhd / include / proto / bcmeth.h
1 /*
2  * Broadcom Ethernettype  protocol definitions
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: bcmeth.h 277737 2011-08-16 17:54:59Z $
25  */
26
27
28
29
30 #ifndef _BCMETH_H_
31 #define _BCMETH_H_
32
33 #ifndef _TYPEDEFS_H_
34 #include <typedefs.h>
35 #endif
36
37
38 #include <packed_section_start.h>
39
40
41
42
43
44
45
46 #define BCMILCP_SUBTYPE_RATE            1
47 #define BCMILCP_SUBTYPE_LINK            2
48 #define BCMILCP_SUBTYPE_CSA             3
49 #define BCMILCP_SUBTYPE_LARQ            4
50 #define BCMILCP_SUBTYPE_VENDOR          5
51 #define BCMILCP_SUBTYPE_FLH             17
52
53 #define BCMILCP_SUBTYPE_VENDOR_LONG     32769
54 #define BCMILCP_SUBTYPE_CERT            32770
55 #define BCMILCP_SUBTYPE_SES             32771
56
57
58 #define BCMILCP_BCM_SUBTYPE_RESERVED            0
59 #define BCMILCP_BCM_SUBTYPE_EVENT               1
60 #define BCMILCP_BCM_SUBTYPE_SES                 2
61
62
63 #define BCMILCP_BCM_SUBTYPE_DPT                 4
64
65 #define BCMILCP_BCM_SUBTYPEHDR_MINLENGTH        8
66 #define BCMILCP_BCM_SUBTYPEHDR_VERSION          0
67
68
69 typedef BWL_PRE_PACKED_STRUCT struct bcmeth_hdr
70 {
71         uint16  subtype;        
72         uint16  length;
73         uint8   version;        
74         uint8   oui[3];         
75         
76         uint16  usr_subtype;
77 } BWL_POST_PACKED_STRUCT bcmeth_hdr_t;
78
79
80
81 #include <packed_section_end.h>
82
83 #endif