1 #ifndef AMAZON_ATM_MIB_H
2 #define AMAZON_ATM_MIB_H
4 #ifdef CONFIG_IFX_ATM_MIB
7 #include <linux/list.h>
9 #endif /* CONFIG_IFX_ATM_MIB */
12 #include <atmMIB/local_list.h>
13 typedef unsigned int __u32;
19 __u32 ifHCOutOctets_h;
20 __u32 ifHCOutOctets_l;
22 __u32 ifInUnknownProtos;
29 __u32 ifHCOutOctets_h;
30 __u32 ifHCOutOctets_l;
40 __u32 aal5VccCrcErrors;
41 __u32 aal5VccSarTimeOuts;//no timer support yet
42 __u32 aal5VccOverSizedSDUs;
45 #if defined(CONFIG_IFX_ATM_MIB) || defined(IFX_CONFIG_SNMP_ATM_MIB)
46 /* ATM-MIB data structures */
47 typedef struct atmIfConfEntry {
49 int atmInterfaceMaxVpcs;
50 int atmInterfaceMaxVccs;
51 int atmInterfaceConfVpcs;
52 int atmInterfaceConfVccs;
53 int atmInterfaceMaxActiveVpiBits;
54 int atmInterfaceMaxActiveVciBits;
55 int atmInterfaceIlmiVpi;
56 int atmInterfaceIlmiVci;
57 int atmInterfaceAddressType;
58 char atmInterfaceAdminAddress[40];
59 unsigned long atmInterfaceMyNeighborIpAddress;
60 char atmInterfaceMyNeighborIfName[20];
61 int atmInterfaceCurrentMaxVpiBits;
62 int atmInterfaceCurrentMaxVciBits;
63 char atmInterfaceSubscrAddress[40];
67 typedef struct atmTrafficDescParamEntry {
68 /* Following three parameters are used to update VCC QoS values */
73 unsigned int atmTrafficParamIndex;
74 unsigned char traffic_class;
76 /* Subramani: Added min_pcr */
81 int atmTrafficRowStatus;
82 int atmTrafficFrameDiscard;
83 struct list_head vpivci_head;
84 struct list_head list;
85 }atmTrafficDescParamEntry;
88 typedef struct atmVclEntry {
93 int atmVclAdminStatus;
95 unsigned long atmVclLastChange;
96 struct atmTrafficDescParamEntry *atmVclRxTrafficPtr;
97 struct atmTrafficDescParamEntry *atmVclTxTrafficPtr;
98 unsigned char atmVccAalType;
99 unsigned int atmVccAal5TxSduSize;
100 unsigned int atmVccAal5RxSduSize;
105 struct list_head list;
110 typedef union union_atmptrs {
111 struct atmIfConfEntry *atmIfConfEntry_ptr;
112 struct atmTrafficDescParamEntry *atmTrafficDescParamEntry_ptr;
113 struct atmVclEntry *atmVclEntry_ptr;
116 /* ATM Character device major number */
117 #define ATM_MEI_MAJOR 107
119 /* Protocol Constants */
120 #define IFX_PROTO_RAW 0
121 #define IFX_PROTO_BR2684 1
122 #define IFX_PROTO_PPPOATM 2
123 #define IFX_PROTO_CLIP 3
125 /* IOCTL Command Set for ATM-MIB */
126 #define GET_ATM_IF_CONF_DATA 0x0AB0
127 #define SET_ATM_IF_CONF_DATA 0x0AB1
129 #define SET_ATM_QOS_DATA 0x0BC0
131 #define GET_ATM_VCL_DATA 0x0CD0
132 #define SET_ATM_VCL_DATA 0x0CD1
134 #define FIND_VCC_IN_KERNEL 0x0DE0
136 /* User defined flags for VCL Table */
137 #define ATMVCCAAL5CPCSTRANSMITSDUSIZE 9
138 #define ATMVCCAAL5CPCSRECEIVESDUSIZE 10
140 #endif /* CONFIG_IFX_ATM_MIB || IFX_CONFIG_SNMP_ATM_MIB */
142 #endif //AMAZON_ATM_MIB_H