Henry Ptasinski | cf2b448 | 2010-09-20 22:33:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2010 Broadcom Corporation |
| 3 | * |
| 4 | * Permission to use, copy, modify, and/or distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 11 | * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
| 13 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 14 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _BCMETH_H_ |
| 18 | #define _BCMETH_H_ |
| 19 | |
Henry Ptasinski | cf2b448 | 2010-09-20 22:33:12 -0700 | [diff] [blame] | 20 | #include <packed_section_start.h> |
| 21 | |
| 22 | #define BCMILCP_SUBTYPE_RATE 1 |
| 23 | #define BCMILCP_SUBTYPE_LINK 2 |
| 24 | #define BCMILCP_SUBTYPE_CSA 3 |
| 25 | #define BCMILCP_SUBTYPE_LARQ 4 |
| 26 | #define BCMILCP_SUBTYPE_VENDOR 5 |
| 27 | #define BCMILCP_SUBTYPE_FLH 17 |
| 28 | #define BCMILCP_SUBTYPE_VENDOR_LONG 32769 |
| 29 | #define BCMILCP_SUBTYPE_CERT 32770 |
| 30 | #define BCMILCP_SUBTYPE_SES 32771 |
| 31 | #define BCMILCP_BCM_SUBTYPE_RESERVED 0 |
| 32 | #define BCMILCP_BCM_SUBTYPE_EVENT 1 |
| 33 | #define BCMILCP_BCM_SUBTYPE_SES 2 |
| 34 | #define BCMILCP_BCM_SUBTYPE_DPT 4 |
| 35 | #define BCMILCP_BCM_SUBTYPEHDR_MINLENGTH 8 |
| 36 | #define BCMILCP_BCM_SUBTYPEHDR_VERSION 0 |
| 37 | |
| 38 | typedef BWL_PRE_PACKED_STRUCT struct bcmeth_hdr { |
Greg Kroah-Hartman | 7d4df48 | 2010-10-07 17:04:47 -0700 | [diff] [blame] | 39 | u16 subtype; |
| 40 | u16 length; |
Greg Kroah-Hartman | de9bca6 | 2010-10-05 10:23:40 -0700 | [diff] [blame] | 41 | u8 version; |
| 42 | u8 oui[3]; |
Greg Kroah-Hartman | 7d4df48 | 2010-10-07 17:04:47 -0700 | [diff] [blame] | 43 | u16 usr_subtype; |
Henry Ptasinski | cf2b448 | 2010-09-20 22:33:12 -0700 | [diff] [blame] | 44 | } BWL_POST_PACKED_STRUCT bcmeth_hdr_t; |
| 45 | |
| 46 | #include <packed_section_end.h> |
| 47 | |
| 48 | #endif /* _BCMETH_H_ */ |