versadac  1
versadac - Scalable Recorder Firmware
8023mib.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET Controller */
14 /* Component : LLDP */
15 /* $Workfile:: 8023mib.h $*/
16 /* $Revision:: 1 $*/
17 /* $Date:: 9/07/09 4:45p $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* - LLDP 802.3 MIB header */
23 /*---------------------------------------------------------------------------*/
24 #ifndef _8023_MIB_H
25 #define _8023_MIB_H
26 
27 
28 
29 
30 typedef struct ST_LLDP_LOCAL_8023_MIB{
31 
32  APP_WORD w8023OperationMauType;
33  APP_BYTE by8023TxEnabled;
34  APP_BOOL b8023AutoNegSupported;
35  APP_BOOL b8023AutoNegEnabled;
36  APP_WORD w8023AutoNegAdvertisedCap;
37 
39 
40 
41 typedef struct _LLDP_REMOTE_8023_MIB{
42 
43  APP_WORD w8023RemOperationMauType;
44  APP_BOOL b8023RemAutoNegSupported;
45  APP_BOOL b8023RemAutoNegEnabled;
46  APP_BYTE s8023RemAutoNegAdvertisedCap[2];
47 
48 
50 
51 
52 /* 8023 Tx Enabled Masks */
53 #define LLDP_8023_MACPHYCONFSTATUS_MASK 1
54 #define LLDP_8023_POWERVIAMDI_MASK 2 /* Not supported Yet */
55 #define LLDP_8023_LINKAGGREGATION_MASK 4 /* Not supported Yet */
56 #define LLDP_8023_MACFRAMESIZE_MASK 8 /* Not supported Yet */
57 
58 
59 #define LLDP_8023_AutoNeg_Supported_Bit 1
60 #define LLDP_8023_AutoNeg_Enabled_Bit 2
61 
62 
63 #define WSE_LLDP_8023_MAUTYPE 0x0010
64 #define WSE_LLDP_8023_ADVERTISED_100TXFD 0x6C00
65 
66 
67 APP_WORD Initialise8023LocalMIB(APP_LPWORD lpwStatus);
68 
69 #endif /* END OF HEADER FILE */
Definition: 8023mib.h:30
Definition: 8023mib.h:41