~ubuntu-branches/ubuntu/natty/bcmwl/natty

« back to all changes in this revision

Viewing changes to src/src/include/proto/bcmeth.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Milone
  • Date: 2010-02-14 19:58:58 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20100214195858-76xedzc2a1gz1ujz
Tags: upstream-5.60.48.36+bdcom
ImportĀ upstreamĀ versionĀ 5.60.48.36+bdcom

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Broadcom Ethernettype  protocol definitions
3
3
 *
4
 
 * Copyright 2008, Broadcom Corporation
 
4
 * Copyright (C) 2010, Broadcom Corporation
5
5
 * All Rights Reserved.
6
6
 * 
7
 
 *      Unless you and Broadcom execute a separate written software license
8
 
 * agreement governing use of this software, this software is licensed to you
9
 
 * under the terms of the GNU General Public License version 2, available at
10
 
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"), with the
11
 
 * following added to such license:
12
 
 *      As a special exception, the copyright holders of this software give you
13
 
 * permission to link this software with independent modules, regardless of the
14
 
 * license terms of these independent modules, and to copy and distribute the
15
 
 * resulting executable under terms of your choice, provided that you also meet,
16
 
 * for each linked independent module, the terms and conditions of the license
17
 
 * of that module. An independent module is a module which is not derived from
18
 
 * this software.
19
 
 *
20
7
 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
21
8
 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
22
9
 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
23
10
 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
24
11
 *
25
 
 * $Id: bcmeth.h,v 9.9.12.2 2008/05/02 23:24:25 Exp $
 
12
 * $Id: bcmeth.h,v 9.11.68.1 2009/11/04 02:12:59 Exp $
26
13
 */
27
14
 
28
15
#ifndef _BCMETH_H_
29
16
#define _BCMETH_H_
30
17
 
31
 
#if defined(__GNUC__)
32
 
#define PACKED  __attribute__((packed))
33
 
#else
34
 
#pragma pack(1)
35
 
#define PACKED
 
18
#ifndef _TYPEDEFS_H_
 
19
#include <typedefs.h>
36
20
#endif
37
21
 
38
 
typedef  struct bcmeth_hdr
 
22
#include <packed_section_start.h>
 
23
 
 
24
typedef BWL_PRE_PACKED_STRUCT struct bcmeth_hdr
39
25
{
40
26
        uint16  subtype;        
41
27
        uint16  length;
43
29
        uint8   oui[3];         
44
30
 
45
31
        uint16  usr_subtype;
46
 
} PACKED bcmeth_hdr_t;
 
32
} BWL_POST_PACKED_STRUCT bcmeth_hdr_t;
47
33
 
48
 
#undef PACKED
49
 
#if !defined(__GNUC__)
50
 
#pragma pack()
51
 
#endif
 
34
#include <packed_section_end.h>
52
35
 
53
36
#endif