1 /* gbe.h
2 
3 Copyright (c) 2015, Nikolaj Schlej. All rights reserved.
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution.  The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8 
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHWARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 */
12 
13 #ifndef GBE_H
14 #define GBE_H
15 
16 #include "basetypes.h"
17 
18 // Make sure we use right packing rules
19 #pragma pack(push, 1)
20 
21 typedef struct GBE_MAC_ADDRESS_ {
22     UINT8 vendor[3];
23     UINT8 device[3];
24 } GBE_MAC_ADDRESS;
25 
26 #define GBE_VERSION_OFFSET 10
27 
28 typedef struct GBE_VERSION_ {
29     UINT8 id    : 4;
30     UINT8 minor : 4;
31     UINT8 major;
32 } GBE_VERSION;
33 
34 // Restore previous packing rules
35 #pragma pack(pop)
36 
37 #endif // GBE_H
38