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