blob: f7d3d8dfd3ae4bad10e605ac79e9c4b142baf8a6 [file] [log] [blame]
Henry Ptasinskicf2b4482010-09-20 22:33:12 -07001/*
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 Ptasinskicf2b4482010-09-20 22:33:12 -070020#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
38typedef BWL_PRE_PACKED_STRUCT struct bcmeth_hdr {
Greg Kroah-Hartman7d4df482010-10-07 17:04:47 -070039 u16 subtype;
40 u16 length;
Greg Kroah-Hartmande9bca62010-10-05 10:23:40 -070041 u8 version;
42 u8 oui[3];
Greg Kroah-Hartman7d4df482010-10-07 17:04:47 -070043 u16 usr_subtype;
Henry Ptasinskicf2b4482010-09-20 22:33:12 -070044} BWL_POST_PACKED_STRUCT bcmeth_hdr_t;
45
46#include <packed_section_end.h>
47
48#endif /* _BCMETH_H_ */