* Add support for USB Mass Storage Devices (BBB)
[oweals/u-boot.git] / drivers / sk98lin / skgemib.c
1 /*****************************************************************************
2  *
3  * Name:        skgemib.c
4  * Project:     GEnesis, PCI Gigabit Ethernet Adapter
5  * Version:     $Revision: 1.7 $
6  * Date:        $Date: 2002/12/16 09:04:34 $
7  * Purpose:     Private Network Management Interface Management Database
8  *
9  ****************************************************************************/
10
11 /******************************************************************************
12  *
13  *      (C)Copyright 2002 SysKonnect GmbH.
14  *
15  *      This program is free software; you can redistribute it and/or modify
16  *      it under the terms of the GNU General Public License as published by
17  *      the Free Software Foundation; either version 2 of the License, or
18  *      (at your option) any later version.
19  *
20  *      The information in this file is provided "AS IS" without warranty.
21  *
22  ******************************************************************************/
23
24 /*****************************************************************************
25  *
26  * History:
27  *
28  *      $Log: skgemib.c,v $
29  *      Revision 1.7  2002/12/16 09:04:34  tschilli
30  *      Code for VCT handling added.
31  *      
32  *      Revision 1.6  2002/08/09 15:40:21  rwahl
33  *      Editorial change (renamed ConfSpeedCap).
34  *      
35  *      Revision 1.5  2002/08/09 11:05:34  rwahl
36  *      Added oid handling for link speed cap.
37  *      
38  *      Revision 1.4  2002/08/09 09:40:27  rwahl
39  *      Added support for NDIS OID_PNP_xxx.
40  *      
41  *      Revision 1.3  2002/07/17 19:39:54  rwahl
42  *      Added handler for OID_SKGE_SPEED_MODE & OID_SKGE_SPEED_STATUS.
43  *      
44  *      Revision 1.2  2002/05/22 08:59:00  rwahl
45  *      - static functions only for release build.
46  *      - Source file must be included.
47  *      
48  *      Revision 1.1  2002/05/22 08:12:42  rwahl
49  *      Initial version.
50  *      
51  ****************************************************************************/
52
53 #include <config.h>
54
55 #ifdef CONFIG_SK98
56
57 /*
58  * PRIVATE OID handler function prototypes
59  */
60 PNMI_STATIC int Addr(SK_AC *pAC, SK_IOC IoC, int action,
61         SK_U32 Id, char *pBuf, unsigned int *pLen, SK_U32 Instance,
62         unsigned int TableIndex, SK_U32 NetIndex);
63 PNMI_STATIC int CsumStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
64         char *pBuf, unsigned int *pLen, SK_U32 Instance,
65         unsigned int TableIndex, SK_U32 NetIndex);
66 PNMI_STATIC int General(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
67         char *pBuf, unsigned int *pLen, SK_U32 Instance,
68         unsigned int TableIndex, SK_U32 NetIndex);
69 PNMI_STATIC int Mac8023Stat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
70         char *pBuf, unsigned int *pLen, SK_U32 Instance,
71         unsigned int TableIndex, SK_U32 NetIndex);
72 PNMI_STATIC int MacPrivateConf(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
73         char *pBuf, unsigned int *pLen, SK_U32 Instance,
74         unsigned int TableIndex, SK_U32 NetIndex);
75 PNMI_STATIC int MacPrivateStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
76         char *pBuf, unsigned int *pLen, SK_U32 Instance,
77         unsigned int TableIndex, SK_U32 NetIndex);
78 PNMI_STATIC int Monitor(SK_AC *pAC, SK_IOC IoC, int action,
79         SK_U32 Id, char *pBuf, unsigned int *pLen, SK_U32 Instance,
80         unsigned int TableIndex, SK_U32 NetIndex);
81 PNMI_STATIC int OidStruct(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
82         char *pBuf, unsigned int *pLen, SK_U32 Instance,
83         unsigned int TableIndex, SK_U32 NetIndex);
84 PNMI_STATIC int Perform(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
85         char *pBuf, unsigned int* pLen, SK_U32 Instance,
86         unsigned int TableIndex, SK_U32 NetIndex);
87 PNMI_STATIC int Rlmt(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
88         char *pBuf, unsigned int *pLen, SK_U32 Instance,
89         unsigned int TableIndex, SK_U32 NetIndex);
90 PNMI_STATIC int RlmtStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
91         char *pBuf, unsigned int *pLen, SK_U32 Instance,
92         unsigned int TableIndex, SK_U32 NetIndex);
93 PNMI_STATIC int SensorStat(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
94         char *pBuf, unsigned int *pLen, SK_U32 Instance,
95         unsigned int TableIndex, SK_U32 NetIndex);
96 PNMI_STATIC int Vpd(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
97         char *pBuf, unsigned int *pLen, SK_U32 Instance,
98         unsigned int TableIndex, SK_U32 NetIndex);
99 PNMI_STATIC int Vct(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
100         char *pBuf, unsigned int *pLen, SK_U32 Instance,
101         unsigned int TableIndex, SK_U32 NetIndex);
102
103 #ifdef SK_POWER_MGMT
104 PNMI_STATIC int PowerManagement(SK_AC *pAC, SK_IOC IoC, int action, SK_U32 Id,
105         char *pBuf, unsigned int *pLen, SK_U32 Instance,
106         unsigned int TableIndex, SK_U32 NetIndex);
107 #endif
108
109
110
111 /* defines *******************************************************************/
112 #define ID_TABLE_SIZE (sizeof(IdTable)/sizeof(IdTable[0]))
113
114
115 /* global variables **********************************************************/
116
117 /*
118  * Table to correlate OID with handler function and index to
119  * hardware register stored in StatAddress if applicable.
120  */
121 PNMI_STATIC const SK_PNMI_TAB_ENTRY IdTable[] = {
122         {OID_GEN_XMIT_OK,
123                 0,
124                 0,
125                 0,
126                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX},
127         {OID_GEN_RCV_OK,
128                 0,
129                 0,
130                 0,
131                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX},
132         {OID_GEN_XMIT_ERROR,
133                 0,
134                 0,
135                 0,
136                 SK_PNMI_RO, General, 0},
137         {OID_GEN_RCV_ERROR,
138                 0,
139                 0,
140                 0,
141                 SK_PNMI_RO, General, 0},
142         {OID_GEN_RCV_NO_BUFFER,
143                 0,
144                 0,
145                 0,
146                 SK_PNMI_RO, General, 0},
147         {OID_GEN_DIRECTED_FRAMES_XMIT,
148                 0,
149                 0,
150                 0,
151                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_UNICAST},
152         {OID_GEN_MULTICAST_FRAMES_XMIT,
153                 0,
154                 0,
155                 0,
156                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_MULTICAST},
157         {OID_GEN_BROADCAST_FRAMES_XMIT,
158                 0,
159                 0,
160                 0,
161                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_BROADCAST},
162         {OID_GEN_DIRECTED_FRAMES_RCV,
163                 0,
164                 0,
165                 0,
166                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_UNICAST},
167         {OID_GEN_MULTICAST_FRAMES_RCV,
168                 0,
169                 0,
170                 0,
171                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_MULTICAST},
172         {OID_GEN_BROADCAST_FRAMES_RCV,
173                 0,
174                 0,
175                 0,
176                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_BROADCAST},
177         {OID_GEN_RCV_CRC_ERROR,
178                 0,
179                 0,
180                 0,
181                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_FCS},
182         {OID_GEN_TRANSMIT_QUEUE_LENGTH,
183                 0,
184                 0,
185                 0,
186                 SK_PNMI_RO, General, 0},
187         {OID_802_3_PERMANENT_ADDRESS,
188                 0,
189                 0,
190                 0,
191                 SK_PNMI_RO, Mac8023Stat, 0},
192         {OID_802_3_CURRENT_ADDRESS,
193                 0,
194                 0,
195                 0,
196                 SK_PNMI_RO, Mac8023Stat, 0},
197         {OID_802_3_RCV_ERROR_ALIGNMENT,
198                 0,
199                 0,
200                 0,
201                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_FRAMING},
202         {OID_802_3_XMIT_ONE_COLLISION,
203                 0,
204                 0,
205                 0,
206                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_SINGLE_COL},
207         {OID_802_3_XMIT_MORE_COLLISIONS,
208                 0,
209                 0,
210                 0,
211                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_MULTI_COL},
212         {OID_802_3_XMIT_DEFERRED,
213                 0,
214                 0,
215                 0,
216                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_DEFFERAL},
217         {OID_802_3_XMIT_MAX_COLLISIONS,
218                 0,
219                 0,
220                 0,
221                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_EXCESS_COL},
222         {OID_802_3_RCV_OVERRUN,
223                 0,
224                 0,
225                 0,
226                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HRX_OVERFLOW},
227         {OID_802_3_XMIT_UNDERRUN,
228                 0,
229                 0,
230                 0,
231                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_UNDERRUN},
232         {OID_802_3_XMIT_TIMES_CRS_LOST,
233                 0,
234                 0,
235                 0,
236                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_CARRIER},
237         {OID_802_3_XMIT_LATE_COLLISIONS,
238                 0,
239                 0,
240                 0,
241                 SK_PNMI_RO, Mac8023Stat, SK_PNMI_HTX_LATE_COL},
242 #ifdef SK_POWER_MGMT
243         {OID_PNP_CAPABILITIES,
244                 0,
245                 0,
246                 0,
247                 SK_PNMI_RO, PowerManagement, 0},
248         {OID_PNP_SET_POWER,
249                 0,
250                 0,
251                 0,
252                 SK_PNMI_WO, PowerManagement, 0},
253         {OID_PNP_QUERY_POWER,
254                 0,
255                 0,
256                 0,
257                 SK_PNMI_RO, PowerManagement, 0},
258         {OID_PNP_ADD_WAKE_UP_PATTERN,
259                 0,
260                 0,
261                 0,
262                 SK_PNMI_WO, PowerManagement, 0},
263         {OID_PNP_REMOVE_WAKE_UP_PATTERN,
264                 0,
265                 0,
266                 0,
267                 SK_PNMI_WO, PowerManagement, 0},
268         {OID_PNP_ENABLE_WAKE_UP,
269                 0,
270                 0,
271                 0,
272                 SK_PNMI_RW, PowerManagement, 0},
273 #endif /* SK_POWER_MGMT */
274         {OID_SKGE_MDB_VERSION,
275                 1,
276                 0,
277                 SK_PNMI_MAI_OFF(MgmtDBVersion),
278                 SK_PNMI_RO, General, 0},
279         {OID_SKGE_SUPPORTED_LIST,
280                 0,
281                 0,
282                 0,
283                 SK_PNMI_RO, General, 0},
284         {OID_SKGE_ALL_DATA,
285                 0,
286                 0,
287                 0,
288                 SK_PNMI_RW, OidStruct, 0},
289         {OID_SKGE_VPD_FREE_BYTES,
290                 1,
291                 0,
292                 SK_PNMI_MAI_OFF(VpdFreeBytes),
293                 SK_PNMI_RO, Vpd, 0},
294         {OID_SKGE_VPD_ENTRIES_LIST,
295                 1,
296                 0,
297                 SK_PNMI_MAI_OFF(VpdEntriesList),
298                 SK_PNMI_RO, Vpd, 0},
299         {OID_SKGE_VPD_ENTRIES_NUMBER,
300                 1,
301                 0,
302                 SK_PNMI_MAI_OFF(VpdEntriesNumber),
303                 SK_PNMI_RO, Vpd, 0},
304         {OID_SKGE_VPD_KEY,
305                 SK_PNMI_VPD_ENTRIES,
306                 sizeof(SK_PNMI_VPD),
307                 SK_PNMI_OFF(Vpd) + SK_PNMI_VPD_OFF(VpdKey),
308                 SK_PNMI_RO, Vpd, 0},
309         {OID_SKGE_VPD_VALUE,
310                 SK_PNMI_VPD_ENTRIES,
311                 sizeof(SK_PNMI_VPD),
312                 SK_PNMI_OFF(Vpd) + SK_PNMI_VPD_OFF(VpdValue),
313                 SK_PNMI_RO, Vpd, 0},
314         {OID_SKGE_VPD_ACCESS,
315                 SK_PNMI_VPD_ENTRIES,
316                 sizeof(SK_PNMI_VPD),
317                 SK_PNMI_OFF(Vpd) + SK_PNMI_VPD_OFF(VpdAccess),
318                 SK_PNMI_RO, Vpd, 0},
319         {OID_SKGE_VPD_ACTION,
320                 SK_PNMI_VPD_ENTRIES,
321                 sizeof(SK_PNMI_VPD),
322                 SK_PNMI_OFF(Vpd) + SK_PNMI_VPD_OFF(VpdAction),
323                 SK_PNMI_RW, Vpd, 0},
324         {OID_SKGE_PORT_NUMBER,          
325                 1,
326                 0,
327                 SK_PNMI_MAI_OFF(PortNumber),
328                 SK_PNMI_RO, General, 0},
329         {OID_SKGE_DEVICE_TYPE,
330                 1,
331                 0,
332                 SK_PNMI_MAI_OFF(DeviceType),
333                 SK_PNMI_RO, General, 0},
334         {OID_SKGE_DRIVER_DESCR,
335                 1,
336                 0,
337                 SK_PNMI_MAI_OFF(DriverDescr),
338                 SK_PNMI_RO, General, 0},
339         {OID_SKGE_DRIVER_VERSION,
340                 1,
341                 0,
342                 SK_PNMI_MAI_OFF(DriverVersion),
343                 SK_PNMI_RO, General, 0},
344         {OID_SKGE_HW_DESCR,
345                 1,
346                 0,
347                 SK_PNMI_MAI_OFF(HwDescr),
348                 SK_PNMI_RO, General, 0},
349         {OID_SKGE_HW_VERSION,
350                 1,
351                 0,
352                 SK_PNMI_MAI_OFF(HwVersion),
353                 SK_PNMI_RO, General, 0},
354         {OID_SKGE_CHIPSET,
355                 1,
356                 0,
357                 SK_PNMI_MAI_OFF(Chipset),
358                 SK_PNMI_RO, General, 0},
359         {OID_SKGE_ACTION,
360                 1,
361                 0,
362                 SK_PNMI_MAI_OFF(Action),
363                 SK_PNMI_RW, Perform, 0},
364         {OID_SKGE_RESULT,
365                 1,
366                 0,
367                 SK_PNMI_MAI_OFF(TestResult),
368                 SK_PNMI_RO, General, 0},
369         {OID_SKGE_BUS_TYPE,
370                 1,
371                 0,
372                 SK_PNMI_MAI_OFF(BusType),
373                 SK_PNMI_RO, General, 0},
374         {OID_SKGE_BUS_SPEED,
375                 1,
376                 0,
377                 SK_PNMI_MAI_OFF(BusSpeed),
378                 SK_PNMI_RO, General, 0},
379         {OID_SKGE_BUS_WIDTH,
380                 1,
381                 0,
382                 SK_PNMI_MAI_OFF(BusWidth),
383                 SK_PNMI_RO, General, 0},
384         {OID_SKGE_TX_SW_QUEUE_LEN,
385                 1,
386                 0,
387                 SK_PNMI_MAI_OFF(TxSwQueueLen),
388                 SK_PNMI_RO, General, 0},
389         {OID_SKGE_TX_SW_QUEUE_MAX,
390                 1,
391                 0,
392                 SK_PNMI_MAI_OFF(TxSwQueueMax),
393                 SK_PNMI_RO, General, 0},
394         {OID_SKGE_TX_RETRY,
395                 1,
396                 0,
397                 SK_PNMI_MAI_OFF(TxRetryCts),
398                 SK_PNMI_RO, General, 0},
399         {OID_SKGE_RX_INTR_CTS,
400                 1,
401                 0,
402                 SK_PNMI_MAI_OFF(RxIntrCts),
403                 SK_PNMI_RO, General, 0},
404         {OID_SKGE_TX_INTR_CTS,
405                 1,
406                 0,
407                 SK_PNMI_MAI_OFF(TxIntrCts),
408                 SK_PNMI_RO, General, 0},
409         {OID_SKGE_RX_NO_BUF_CTS,
410                 1,
411                 0,
412                 SK_PNMI_MAI_OFF(RxNoBufCts),
413                 SK_PNMI_RO, General, 0},
414         {OID_SKGE_TX_NO_BUF_CTS,
415                 1,
416                 0,
417                 SK_PNMI_MAI_OFF(TxNoBufCts),
418                 SK_PNMI_RO, General, 0},
419         {OID_SKGE_TX_USED_DESCR_NO,
420                 1,
421                 0,
422                 SK_PNMI_MAI_OFF(TxUsedDescrNo),
423                 SK_PNMI_RO, General, 0},
424         {OID_SKGE_RX_DELIVERED_CTS,
425                 1,
426                 0,
427                 SK_PNMI_MAI_OFF(RxDeliveredCts),
428                 SK_PNMI_RO, General, 0},
429         {OID_SKGE_RX_OCTETS_DELIV_CTS,
430                 1,
431                 0,
432                 SK_PNMI_MAI_OFF(RxOctetsDeliveredCts),
433                 SK_PNMI_RO, General, 0},
434         {OID_SKGE_RX_HW_ERROR_CTS,
435                 1,
436                 0,
437                 SK_PNMI_MAI_OFF(RxHwErrorsCts),
438                 SK_PNMI_RO, General, 0},
439         {OID_SKGE_TX_HW_ERROR_CTS,
440                 1,
441                 0,
442                 SK_PNMI_MAI_OFF(TxHwErrorsCts),
443                 SK_PNMI_RO, General, 0},
444         {OID_SKGE_IN_ERRORS_CTS,
445                 1,
446                 0,
447                 SK_PNMI_MAI_OFF(InErrorsCts),
448                 SK_PNMI_RO, General, 0},
449         {OID_SKGE_OUT_ERROR_CTS,
450                 1,
451                 0,
452                 SK_PNMI_MAI_OFF(OutErrorsCts),
453                 SK_PNMI_RO, General, 0},
454         {OID_SKGE_ERR_RECOVERY_CTS,
455                 1,
456                 0,
457                 SK_PNMI_MAI_OFF(ErrRecoveryCts),
458                 SK_PNMI_RO, General, 0},
459         {OID_SKGE_SYSUPTIME,
460                 1,
461                 0,
462                 SK_PNMI_MAI_OFF(SysUpTime),
463                 SK_PNMI_RO, General, 0},
464         {OID_SKGE_SENSOR_NUMBER,
465                 1,
466                 0,
467                 SK_PNMI_MAI_OFF(SensorNumber),
468                 SK_PNMI_RO, General, 0},
469         {OID_SKGE_SENSOR_INDEX,
470                 SK_PNMI_SENSOR_ENTRIES,
471                 sizeof(SK_PNMI_SENSOR),
472                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorIndex),
473                 SK_PNMI_RO, SensorStat, 0},
474         {OID_SKGE_SENSOR_DESCR,
475                 SK_PNMI_SENSOR_ENTRIES,
476                 sizeof(SK_PNMI_SENSOR),
477                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorDescr),
478                 SK_PNMI_RO, SensorStat, 0},
479         {OID_SKGE_SENSOR_TYPE,
480                 SK_PNMI_SENSOR_ENTRIES,
481                 sizeof(SK_PNMI_SENSOR),
482                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorType),
483                 SK_PNMI_RO, SensorStat, 0},
484         {OID_SKGE_SENSOR_VALUE,
485                 SK_PNMI_SENSOR_ENTRIES,
486                 sizeof(SK_PNMI_SENSOR),
487                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorValue),
488                 SK_PNMI_RO, SensorStat, 0},
489         {OID_SKGE_SENSOR_WAR_THRES_LOW,
490                 SK_PNMI_SENSOR_ENTRIES,
491                 sizeof(SK_PNMI_SENSOR),
492                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorWarningThresholdLow),
493                 SK_PNMI_RO, SensorStat, 0},
494         {OID_SKGE_SENSOR_WAR_THRES_UPP,
495                 SK_PNMI_SENSOR_ENTRIES,
496                 sizeof(SK_PNMI_SENSOR),
497                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorWarningThresholdHigh),
498                 SK_PNMI_RO, SensorStat, 0},
499         {OID_SKGE_SENSOR_ERR_THRES_LOW,
500                 SK_PNMI_SENSOR_ENTRIES,
501                 sizeof(SK_PNMI_SENSOR),
502                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorErrorThresholdLow),
503                 SK_PNMI_RO, SensorStat, 0},
504         {OID_SKGE_SENSOR_ERR_THRES_UPP,
505                 SK_PNMI_SENSOR_ENTRIES,
506                 sizeof(SK_PNMI_SENSOR),
507                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorErrorThresholdHigh),
508                 SK_PNMI_RO, SensorStat, 0},
509         {OID_SKGE_SENSOR_STATUS,
510                 SK_PNMI_SENSOR_ENTRIES,
511                 sizeof(SK_PNMI_SENSOR),
512                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorStatus),
513                 SK_PNMI_RO, SensorStat, 0},
514         {OID_SKGE_SENSOR_WAR_CTS,
515                 SK_PNMI_SENSOR_ENTRIES,
516                 sizeof(SK_PNMI_SENSOR),
517                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorWarningCts),
518                 SK_PNMI_RO, SensorStat, 0},
519         {OID_SKGE_SENSOR_ERR_CTS,
520                 SK_PNMI_SENSOR_ENTRIES,
521                 sizeof(SK_PNMI_SENSOR),
522                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorErrorCts),
523                 SK_PNMI_RO, SensorStat, 0},
524         {OID_SKGE_SENSOR_WAR_TIME,
525                 SK_PNMI_SENSOR_ENTRIES,
526                 sizeof(SK_PNMI_SENSOR),
527                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorWarningTimestamp),
528                 SK_PNMI_RO, SensorStat, 0},
529         {OID_SKGE_SENSOR_ERR_TIME,
530                 SK_PNMI_SENSOR_ENTRIES,
531                 sizeof(SK_PNMI_SENSOR),
532                 SK_PNMI_OFF(Sensor) + SK_PNMI_SEN_OFF(SensorErrorTimestamp),
533                 SK_PNMI_RO, SensorStat, 0},
534         {OID_SKGE_CHKSM_NUMBER,
535                 1,
536                 0,
537                 SK_PNMI_MAI_OFF(ChecksumNumber),
538                 SK_PNMI_RO, General, 0},
539         {OID_SKGE_CHKSM_RX_OK_CTS,
540                 SKCS_NUM_PROTOCOLS,
541                 sizeof(SK_PNMI_CHECKSUM),
542                 SK_PNMI_OFF(Checksum) + SK_PNMI_CHK_OFF(ChecksumRxOkCts),
543                 SK_PNMI_RO, CsumStat, 0},
544         {OID_SKGE_CHKSM_RX_UNABLE_CTS,
545                 SKCS_NUM_PROTOCOLS,
546                 sizeof(SK_PNMI_CHECKSUM),
547                 SK_PNMI_OFF(Checksum) + SK_PNMI_CHK_OFF(ChecksumRxUnableCts),
548                 SK_PNMI_RO, CsumStat, 0},
549         {OID_SKGE_CHKSM_RX_ERR_CTS,
550                 SKCS_NUM_PROTOCOLS,
551                 sizeof(SK_PNMI_CHECKSUM),
552                 SK_PNMI_OFF(Checksum) + SK_PNMI_CHK_OFF(ChecksumRxErrCts),
553                 SK_PNMI_RO, CsumStat, 0},
554         {OID_SKGE_CHKSM_TX_OK_CTS,
555                 SKCS_NUM_PROTOCOLS,
556                 sizeof(SK_PNMI_CHECKSUM),
557                 SK_PNMI_OFF(Checksum) + SK_PNMI_CHK_OFF(ChecksumTxOkCts),
558                 SK_PNMI_RO, CsumStat, 0},
559         {OID_SKGE_CHKSM_TX_UNABLE_CTS,
560                 SKCS_NUM_PROTOCOLS,
561                 sizeof(SK_PNMI_CHECKSUM),
562                 SK_PNMI_OFF(Checksum) + SK_PNMI_CHK_OFF(ChecksumTxUnableCts),
563                 SK_PNMI_RO, CsumStat, 0},
564         {OID_SKGE_STAT_TX,
565                 SK_PNMI_MAC_ENTRIES,
566                 sizeof(SK_PNMI_STAT),
567                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxOkCts),
568                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX},
569         {OID_SKGE_STAT_TX_OCTETS,
570                 SK_PNMI_MAC_ENTRIES,
571                 sizeof(SK_PNMI_STAT),
572                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxOctetsOkCts),
573                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_OCTET},
574         {OID_SKGE_STAT_TX_BROADCAST,
575                 SK_PNMI_MAC_ENTRIES,
576                 sizeof(SK_PNMI_STAT),
577                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxBroadcastOkCts),
578                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_BROADCAST},
579         {OID_SKGE_STAT_TX_MULTICAST,
580                 SK_PNMI_MAC_ENTRIES,
581                 sizeof(SK_PNMI_STAT),
582                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxMulticastOkCts),
583                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_MULTICAST},
584         {OID_SKGE_STAT_TX_UNICAST,
585                 SK_PNMI_MAC_ENTRIES,
586                 sizeof(SK_PNMI_STAT),
587                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxUnicastOkCts),
588                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_UNICAST},
589         {OID_SKGE_STAT_TX_LONGFRAMES,
590                 SK_PNMI_MAC_ENTRIES,
591                 sizeof(SK_PNMI_STAT),
592                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxLongFramesCts),
593                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_LONGFRAMES},
594         {OID_SKGE_STAT_TX_BURST,
595                 SK_PNMI_MAC_ENTRIES,
596                 sizeof(SK_PNMI_STAT),
597                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxBurstCts),
598                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_BURST},
599         {OID_SKGE_STAT_TX_PFLOWC,
600                 SK_PNMI_MAC_ENTRIES,
601                 sizeof(SK_PNMI_STAT),
602                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxPauseMacCtrlCts),
603                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_PMACC},
604         {OID_SKGE_STAT_TX_FLOWC,
605                 SK_PNMI_MAC_ENTRIES,
606                 sizeof(SK_PNMI_STAT),
607                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxMacCtrlCts),
608                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_MACC},
609         {OID_SKGE_STAT_TX_SINGLE_COL,
610                 SK_PNMI_MAC_ENTRIES,
611                 sizeof(SK_PNMI_STAT),
612                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxSingleCollisionCts),
613                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_SINGLE_COL},
614         {OID_SKGE_STAT_TX_MULTI_COL,
615                 SK_PNMI_MAC_ENTRIES,
616                 sizeof(SK_PNMI_STAT),
617                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxMultipleCollisionCts),
618                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_MULTI_COL},
619         {OID_SKGE_STAT_TX_EXCESS_COL,
620                 SK_PNMI_MAC_ENTRIES,
621                 sizeof(SK_PNMI_STAT),
622                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxExcessiveCollisionCts),
623                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_EXCESS_COL},
624         {OID_SKGE_STAT_TX_LATE_COL,
625                 SK_PNMI_MAC_ENTRIES,
626                 sizeof(SK_PNMI_STAT),
627                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxLateCollisionCts),
628                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_LATE_COL},
629         {OID_SKGE_STAT_TX_DEFFERAL,
630                 SK_PNMI_MAC_ENTRIES,
631                 sizeof(SK_PNMI_STAT),
632                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxDeferralCts),
633                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_DEFFERAL},
634         {OID_SKGE_STAT_TX_EXCESS_DEF,
635                 SK_PNMI_MAC_ENTRIES,
636                 sizeof(SK_PNMI_STAT),
637                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxExcessiveDeferralCts),
638                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_EXCESS_DEF},
639         {OID_SKGE_STAT_TX_UNDERRUN,
640                 SK_PNMI_MAC_ENTRIES,
641                 sizeof(SK_PNMI_STAT),
642                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxFifoUnderrunCts),
643                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_UNDERRUN},
644         {OID_SKGE_STAT_TX_CARRIER,
645                 SK_PNMI_MAC_ENTRIES,
646                 sizeof(SK_PNMI_STAT),
647                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxCarrierCts),
648                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_CARRIER},
649 /*      {OID_SKGE_STAT_TX_UTIL,
650                 SK_PNMI_MAC_ENTRIES,
651                 sizeof(SK_PNMI_STAT),
652                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxUtilization),
653                 SK_PNMI_RO, MacPrivateStat, (SK_U16)(-1)}, */
654         {OID_SKGE_STAT_TX_64,
655                 SK_PNMI_MAC_ENTRIES,
656                 sizeof(SK_PNMI_STAT),
657                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTx64Cts),
658                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_64},
659         {OID_SKGE_STAT_TX_127,
660                 SK_PNMI_MAC_ENTRIES,
661                 sizeof(SK_PNMI_STAT),
662                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTx127Cts),
663                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_127},
664         {OID_SKGE_STAT_TX_255,
665                 SK_PNMI_MAC_ENTRIES,
666                 sizeof(SK_PNMI_STAT),
667                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTx255Cts),
668                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_255},
669         {OID_SKGE_STAT_TX_511,
670                 SK_PNMI_MAC_ENTRIES,
671                 sizeof(SK_PNMI_STAT),
672                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTx511Cts),
673                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_511},
674         {OID_SKGE_STAT_TX_1023,
675                 SK_PNMI_MAC_ENTRIES,
676                 sizeof(SK_PNMI_STAT),
677                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTx1023Cts),
678                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_1023},
679         {OID_SKGE_STAT_TX_MAX,
680                 SK_PNMI_MAC_ENTRIES,
681                 sizeof(SK_PNMI_STAT),
682                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxMaxCts),
683                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_MAX},
684         {OID_SKGE_STAT_TX_SYNC,
685                 SK_PNMI_MAC_ENTRIES,
686                 sizeof(SK_PNMI_STAT),
687                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxSyncCts),
688                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_SYNC},
689         {OID_SKGE_STAT_TX_SYNC_OCTETS,
690                 SK_PNMI_MAC_ENTRIES,
691                 sizeof(SK_PNMI_STAT),
692                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatTxSyncOctetsCts),
693                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HTX_SYNC_OCTET},
694         {OID_SKGE_STAT_RX,
695                 SK_PNMI_MAC_ENTRIES,
696                 sizeof(SK_PNMI_STAT),
697                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxOkCts),
698                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX},
699         {OID_SKGE_STAT_RX_OCTETS,
700                 SK_PNMI_MAC_ENTRIES,
701                 sizeof(SK_PNMI_STAT),
702                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxOctetsOkCts),
703                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_OCTET},
704         {OID_SKGE_STAT_RX_BROADCAST,
705                 SK_PNMI_MAC_ENTRIES,
706                 sizeof(SK_PNMI_STAT),
707                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxBroadcastOkCts),
708                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_BROADCAST},
709         {OID_SKGE_STAT_RX_MULTICAST,
710                 SK_PNMI_MAC_ENTRIES,
711                 sizeof(SK_PNMI_STAT),
712                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxMulticastOkCts),
713                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_MULTICAST},
714         {OID_SKGE_STAT_RX_UNICAST,
715                 SK_PNMI_MAC_ENTRIES,
716                 sizeof(SK_PNMI_STAT),
717                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxUnicastOkCts),
718                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_UNICAST},
719         {OID_SKGE_STAT_RX_LONGFRAMES,
720                 SK_PNMI_MAC_ENTRIES,
721                 sizeof(SK_PNMI_STAT),
722                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxLongFramesCts),
723                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_LONGFRAMES},
724         {OID_SKGE_STAT_RX_PFLOWC,
725                 SK_PNMI_MAC_ENTRIES,
726                 sizeof(SK_PNMI_STAT),
727                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxPauseMacCtrlCts),
728                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_PMACC},
729         {OID_SKGE_STAT_RX_FLOWC,
730                 SK_PNMI_MAC_ENTRIES,
731                 sizeof(SK_PNMI_STAT),
732                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxMacCtrlCts),
733                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_MACC},
734         {OID_SKGE_STAT_RX_PFLOWC_ERR,
735                 SK_PNMI_MAC_ENTRIES,
736                 sizeof(SK_PNMI_STAT),
737                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxPauseMacCtrlErrorCts),
738                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_PMACC_ERR},
739         {OID_SKGE_STAT_RX_FLOWC_UNKWN,
740                 SK_PNMI_MAC_ENTRIES,
741                 sizeof(SK_PNMI_STAT),
742                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxMacCtrlUnknownCts),
743                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_MACC_UNKWN},
744         {OID_SKGE_STAT_RX_BURST,
745                 SK_PNMI_MAC_ENTRIES,
746                 sizeof(SK_PNMI_STAT),
747                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxBurstCts),
748                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_BURST},
749         {OID_SKGE_STAT_RX_MISSED,
750                 SK_PNMI_MAC_ENTRIES,
751                 sizeof(SK_PNMI_STAT),
752                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxMissedCts),
753                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_MISSED},
754         {OID_SKGE_STAT_RX_FRAMING,
755                 SK_PNMI_MAC_ENTRIES,
756                 sizeof(SK_PNMI_STAT),
757                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxFramingCts),
758                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_FRAMING},
759         {OID_SKGE_STAT_RX_OVERFLOW,
760                 SK_PNMI_MAC_ENTRIES,
761                 sizeof(SK_PNMI_STAT),
762                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxFifoOverflowCts),
763                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_OVERFLOW},
764         {OID_SKGE_STAT_RX_JABBER,
765                 SK_PNMI_MAC_ENTRIES,
766                 sizeof(SK_PNMI_STAT),
767                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxJabberCts),
768                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_JABBER},
769         {OID_SKGE_STAT_RX_CARRIER,
770                 SK_PNMI_MAC_ENTRIES,
771                 sizeof(SK_PNMI_STAT),
772                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxCarrierCts),
773                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_CARRIER},
774         {OID_SKGE_STAT_RX_IR_LENGTH,
775                 SK_PNMI_MAC_ENTRIES,
776                 sizeof(SK_PNMI_STAT),
777                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxIRLengthCts),
778                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_IRLENGTH},
779         {OID_SKGE_STAT_RX_SYMBOL,
780                 SK_PNMI_MAC_ENTRIES,
781                 sizeof(SK_PNMI_STAT),
782                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxSymbolCts),
783                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_SYMBOL},
784         {OID_SKGE_STAT_RX_SHORTS,
785                 SK_PNMI_MAC_ENTRIES,
786                 sizeof(SK_PNMI_STAT),
787                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxShortsCts),
788                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_SHORTS},
789         {OID_SKGE_STAT_RX_RUNT,
790                 SK_PNMI_MAC_ENTRIES,
791                 sizeof(SK_PNMI_STAT),
792                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxRuntCts),
793                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_RUNT},
794         {OID_SKGE_STAT_RX_CEXT,
795                 SK_PNMI_MAC_ENTRIES,
796                 sizeof(SK_PNMI_STAT),
797                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxCextCts),
798                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_CEXT},
799         {OID_SKGE_STAT_RX_TOO_LONG,
800                 SK_PNMI_MAC_ENTRIES,
801                 sizeof(SK_PNMI_STAT),
802                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxTooLongCts),
803                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_TOO_LONG},
804         {OID_SKGE_STAT_RX_FCS,
805                 SK_PNMI_MAC_ENTRIES,
806                 sizeof(SK_PNMI_STAT),
807                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxFcsCts),
808                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_FCS},
809 /*      {OID_SKGE_STAT_RX_UTIL,
810                 SK_PNMI_MAC_ENTRIES,
811                 sizeof(SK_PNMI_STAT),
812                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxUtilization),
813                 SK_PNMI_RO, MacPrivateStat, (SK_U16)(-1)}, */
814         {OID_SKGE_STAT_RX_64,
815                 SK_PNMI_MAC_ENTRIES,
816                 sizeof(SK_PNMI_STAT),
817                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRx64Cts),
818                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_64},
819         {OID_SKGE_STAT_RX_127,
820                 SK_PNMI_MAC_ENTRIES,
821                 sizeof(SK_PNMI_STAT),
822                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRx127Cts),
823                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_127},
824         {OID_SKGE_STAT_RX_255,
825                 SK_PNMI_MAC_ENTRIES,
826                 sizeof(SK_PNMI_STAT),
827                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRx255Cts),
828                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_255},
829         {OID_SKGE_STAT_RX_511,
830                 SK_PNMI_MAC_ENTRIES,
831                 sizeof(SK_PNMI_STAT),
832                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRx511Cts),
833                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_511},
834         {OID_SKGE_STAT_RX_1023,
835                 SK_PNMI_MAC_ENTRIES,
836                 sizeof(SK_PNMI_STAT),
837                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRx1023Cts),
838                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_1023},
839         {OID_SKGE_STAT_RX_MAX,
840                 SK_PNMI_MAC_ENTRIES,
841                 sizeof(SK_PNMI_STAT),
842                 SK_PNMI_OFF(Stat) + SK_PNMI_STA_OFF(StatRxMaxCts),
843                 SK_PNMI_RO, MacPrivateStat, SK_PNMI_HRX_MAX},
844         {OID_SKGE_PHYS_CUR_ADDR,
845                 SK_PNMI_MAC_ENTRIES,
846                 sizeof(SK_PNMI_CONF),
847                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfMacCurrentAddr),
848                 SK_PNMI_RW, Addr, 0},
849         {OID_SKGE_PHYS_FAC_ADDR,
850                 SK_PNMI_MAC_ENTRIES,
851                 sizeof(SK_PNMI_CONF),
852                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfMacFactoryAddr),
853                 SK_PNMI_RO, Addr, 0},
854         {OID_SKGE_PMD,
855                 SK_PNMI_MAC_ENTRIES,
856                 sizeof(SK_PNMI_CONF),
857                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfPMD),
858                 SK_PNMI_RO, MacPrivateConf, 0},
859         {OID_SKGE_CONNECTOR,
860                 SK_PNMI_MAC_ENTRIES,
861                 sizeof(SK_PNMI_CONF),
862                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfConnector),
863                 SK_PNMI_RO, MacPrivateConf, 0},
864         {OID_SKGE_LINK_CAP,
865                 SK_PNMI_MAC_ENTRIES,
866                 sizeof(SK_PNMI_CONF),
867                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfLinkCapability),
868                 SK_PNMI_RO, MacPrivateConf, 0},
869         {OID_SKGE_LINK_MODE,
870                 SK_PNMI_MAC_ENTRIES,
871                 sizeof(SK_PNMI_CONF),
872                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfLinkMode),
873                 SK_PNMI_RW, MacPrivateConf, 0},
874         {OID_SKGE_LINK_MODE_STATUS,
875                 SK_PNMI_MAC_ENTRIES,
876                 sizeof(SK_PNMI_CONF),
877                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfLinkModeStatus),
878                 SK_PNMI_RO, MacPrivateConf, 0},
879         {OID_SKGE_LINK_STATUS,
880                 SK_PNMI_MAC_ENTRIES,
881                 sizeof(SK_PNMI_CONF),
882                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfLinkStatus),
883                 SK_PNMI_RO, MacPrivateConf, 0},
884         {OID_SKGE_FLOWCTRL_CAP,
885                 SK_PNMI_MAC_ENTRIES,
886                 sizeof(SK_PNMI_CONF),
887                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfFlowCtrlCapability),
888                 SK_PNMI_RO, MacPrivateConf, 0},
889         {OID_SKGE_FLOWCTRL_MODE,
890                 SK_PNMI_MAC_ENTRIES,
891                 sizeof(SK_PNMI_CONF),
892                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfFlowCtrlMode),
893                 SK_PNMI_RW, MacPrivateConf, 0},
894         {OID_SKGE_FLOWCTRL_STATUS,
895                 SK_PNMI_MAC_ENTRIES,
896                 sizeof(SK_PNMI_CONF),
897                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfFlowCtrlStatus),
898                 SK_PNMI_RO, MacPrivateConf, 0},
899         {OID_SKGE_PHY_OPERATION_CAP,
900                 SK_PNMI_MAC_ENTRIES,
901                 sizeof(SK_PNMI_CONF),
902                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfPhyOperationCapability),
903                 SK_PNMI_RO, MacPrivateConf, 0},
904         {OID_SKGE_PHY_OPERATION_MODE,
905                 SK_PNMI_MAC_ENTRIES,
906                 sizeof(SK_PNMI_CONF),
907                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfPhyOperationMode),
908                 SK_PNMI_RW, MacPrivateConf, 0},
909         {OID_SKGE_PHY_OPERATION_STATUS,
910                 SK_PNMI_MAC_ENTRIES,
911                 sizeof(SK_PNMI_CONF),
912                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfPhyOperationStatus),
913                 SK_PNMI_RO, MacPrivateConf, 0},
914         {OID_SKGE_SPEED_CAP,
915                 SK_PNMI_MAC_ENTRIES,
916                 sizeof(SK_PNMI_CONF),
917                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfSpeedCapability),
918                 SK_PNMI_RO, MacPrivateConf, 0},
919         {OID_SKGE_SPEED_MODE,
920                 SK_PNMI_MAC_ENTRIES,
921                 sizeof(SK_PNMI_CONF),
922                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfSpeedMode),
923                 SK_PNMI_RW, MacPrivateConf, 0},
924         {OID_SKGE_SPEED_STATUS,
925                 SK_PNMI_MAC_ENTRIES,
926                 sizeof(SK_PNMI_CONF),
927                 SK_PNMI_OFF(Conf) + SK_PNMI_CNF_OFF(ConfSpeedStatus),
928                 SK_PNMI_RO, MacPrivateConf, 0},
929         {OID_SKGE_TRAP,
930                 1,
931                 0,
932                 SK_PNMI_MAI_OFF(Trap),
933                 SK_PNMI_RO, General, 0},
934         {OID_SKGE_TRAP_NUMBER,
935                 1,
936                 0,
937                 SK_PNMI_MAI_OFF(TrapNumber),
938                 SK_PNMI_RO, General, 0},
939         {OID_SKGE_RLMT_MODE,
940                 1,
941                 0,
942                 SK_PNMI_MAI_OFF(RlmtMode),
943                 SK_PNMI_RW, Rlmt, 0},
944         {OID_SKGE_RLMT_PORT_NUMBER,
945                 1,
946                 0,
947                 SK_PNMI_MAI_OFF(RlmtPortNumber),
948                 SK_PNMI_RO, Rlmt, 0},
949         {OID_SKGE_RLMT_PORT_ACTIVE,
950                 1,
951                 0,
952                 SK_PNMI_MAI_OFF(RlmtPortActive),
953                 SK_PNMI_RO, Rlmt, 0},
954         {OID_SKGE_RLMT_PORT_PREFERRED,
955                 1,
956                 0,
957                 SK_PNMI_MAI_OFF(RlmtPortPreferred),
958                 SK_PNMI_RW, Rlmt, 0},
959         {OID_SKGE_RLMT_CHANGE_CTS,
960                 1,
961                 0,
962                 SK_PNMI_MAI_OFF(RlmtChangeCts),
963                 SK_PNMI_RO, Rlmt, 0},
964         {OID_SKGE_RLMT_CHANGE_TIME,
965                 1,
966                 0,
967                 SK_PNMI_MAI_OFF(RlmtChangeTime),
968                 SK_PNMI_RO, Rlmt, 0},
969         {OID_SKGE_RLMT_CHANGE_ESTIM,
970                 1,
971                 0,
972                 SK_PNMI_MAI_OFF(RlmtChangeEstimate),
973                 SK_PNMI_RO, Rlmt, 0},
974         {OID_SKGE_RLMT_CHANGE_THRES,
975                 1,
976                 0,
977                 SK_PNMI_MAI_OFF(RlmtChangeThreshold),
978                 SK_PNMI_RW, Rlmt, 0},
979         {OID_SKGE_RLMT_PORT_INDEX,
980                 SK_PNMI_MAC_ENTRIES,
981                 sizeof(SK_PNMI_RLMT),
982                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtIndex),
983                 SK_PNMI_RO, RlmtStat, 0},
984         {OID_SKGE_RLMT_STATUS,
985                 SK_PNMI_MAC_ENTRIES,
986                 sizeof(SK_PNMI_RLMT),
987                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtStatus),
988                 SK_PNMI_RO, RlmtStat, 0},
989         {OID_SKGE_RLMT_TX_HELLO_CTS,
990                 SK_PNMI_MAC_ENTRIES,
991                 sizeof(SK_PNMI_RLMT),
992                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtTxHelloCts),
993                 SK_PNMI_RO, RlmtStat, 0},
994         {OID_SKGE_RLMT_RX_HELLO_CTS,
995                 SK_PNMI_MAC_ENTRIES,
996                 sizeof(SK_PNMI_RLMT),
997                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtRxHelloCts),
998                 SK_PNMI_RO, RlmtStat, 0},
999         {OID_SKGE_RLMT_TX_SP_REQ_CTS,
1000                 SK_PNMI_MAC_ENTRIES,
1001                 sizeof(SK_PNMI_RLMT),
1002                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtTxSpHelloReqCts),
1003                 SK_PNMI_RO, RlmtStat, 0},
1004         {OID_SKGE_RLMT_RX_SP_CTS,
1005                 SK_PNMI_MAC_ENTRIES,
1006                 sizeof(SK_PNMI_RLMT),
1007                 SK_PNMI_OFF(Rlmt) + SK_PNMI_RLM_OFF(RlmtRxSpHelloCts),
1008                 SK_PNMI_RO, RlmtStat, 0},
1009         {OID_SKGE_RLMT_MONITOR_NUMBER,
1010                 1,
1011                 0,
1012                 SK_PNMI_MAI_OFF(RlmtMonitorNumber),
1013                 SK_PNMI_RO, General, 0},
1014         {OID_SKGE_RLMT_MONITOR_INDEX,
1015                 SK_PNMI_MONITOR_ENTRIES,
1016                 sizeof(SK_PNMI_RLMT_MONITOR),
1017                 SK_PNMI_OFF(RlmtMonitor) + SK_PNMI_MON_OFF(RlmtMonitorIndex),
1018                 SK_PNMI_RO, Monitor, 0},
1019         {OID_SKGE_RLMT_MONITOR_ADDR,
1020                 SK_PNMI_MONITOR_ENTRIES,
1021                 sizeof(SK_PNMI_RLMT_MONITOR),
1022                 SK_PNMI_OFF(RlmtMonitor) + SK_PNMI_MON_OFF(RlmtMonitorAddr),
1023                 SK_PNMI_RO, Monitor, 0},
1024         {OID_SKGE_RLMT_MONITOR_ERRS,
1025                 SK_PNMI_MONITOR_ENTRIES,
1026                 sizeof(SK_PNMI_RLMT_MONITOR),
1027                 SK_PNMI_OFF(RlmtMonitor) + SK_PNMI_MON_OFF(RlmtMonitorErrorCts),
1028                 SK_PNMI_RO, Monitor, 0},
1029         {OID_SKGE_RLMT_MONITOR_TIMESTAMP,
1030                 SK_PNMI_MONITOR_ENTRIES,
1031                 sizeof(SK_PNMI_RLMT_MONITOR),
1032                 SK_PNMI_OFF(RlmtMonitor) + SK_PNMI_MON_OFF(RlmtMonitorTimestamp),
1033                 SK_PNMI_RO, Monitor, 0},
1034         {OID_SKGE_RLMT_MONITOR_ADMIN,
1035                 SK_PNMI_MONITOR_ENTRIES,
1036                 sizeof(SK_PNMI_RLMT_MONITOR),
1037                 SK_PNMI_OFF(RlmtMonitor) + SK_PNMI_MON_OFF(RlmtMonitorAdmin),
1038                 SK_PNMI_RW, Monitor, 0},
1039         {OID_SKGE_MTU,
1040                 1,
1041                 0,
1042                 SK_PNMI_MAI_OFF(MtuSize),
1043                 SK_PNMI_RW, MacPrivateConf, 0},
1044         {OID_SKGE_VCT_GET,
1045                 0,
1046                 0,
1047                 0,
1048                 SK_PNMI_RO, Vct, 0},
1049         {OID_SKGE_VCT_SET,
1050                 0,
1051                 0,
1052                 0,
1053                 SK_PNMI_WO, Vct, 0},
1054         {OID_SKGE_VCT_STATUS,
1055                 0,
1056                 0,
1057                 0,
1058                 SK_PNMI_RO, Vct, 0},
1059 };
1060
1061 #endif /* CONFIG_SK98 */