• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Broadcom Ethernettype  protocol definitions
3  *
4  * Copyright (C) 1999-2011, Broadcom Corporation
5  *
6  * Permission to use, copy, modify, and/or distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17  *
18  * $Id: bcmeth.h,v 9.12 2009-12-29 19:57:18 Exp $
19  */
20 
21 
22 
23 
24 #ifndef _BCMETH_H_
25 #define _BCMETH_H_
26 
27 #ifndef _TYPEDEFS_H_
28 #include <typedefs.h>
29 #endif
30 
31 
32 #include <packed_section_start.h>
33 
34 
35 
36 
37 
38 
39 
40 #define	BCMILCP_SUBTYPE_RATE		1
41 #define	BCMILCP_SUBTYPE_LINK		2
42 #define	BCMILCP_SUBTYPE_CSA		3
43 #define	BCMILCP_SUBTYPE_LARQ		4
44 #define BCMILCP_SUBTYPE_VENDOR		5
45 #define	BCMILCP_SUBTYPE_FLH		17
46 
47 #define BCMILCP_SUBTYPE_VENDOR_LONG	32769
48 #define BCMILCP_SUBTYPE_CERT		32770
49 #define BCMILCP_SUBTYPE_SES		32771
50 
51 
52 #define BCMILCP_BCM_SUBTYPE_RESERVED		0
53 #define BCMILCP_BCM_SUBTYPE_EVENT		1
54 #define BCMILCP_BCM_SUBTYPE_SES			2
55 
56 
57 #define BCMILCP_BCM_SUBTYPE_DPT			4
58 
59 #define BCMILCP_BCM_SUBTYPEHDR_MINLENGTH	8
60 #define BCMILCP_BCM_SUBTYPEHDR_VERSION		0
61 
62 
63 typedef BWL_PRE_PACKED_STRUCT struct bcmeth_hdr
64 {
65 	uint16	subtype;
66 	uint16	length;
67 	uint8	version;
68 	uint8	oui[3];
69 
70 	uint16	usr_subtype;
71 } BWL_POST_PACKED_STRUCT bcmeth_hdr_t;
72 
73 
74 
75 #include <packed_section_end.h>
76 
77 #endif
78