e1000g_stat.c revision 4d7379630d53d9992780329b674af8c85935e858
2N/A * Module Name: e1000g_stat.c *
#include "e1000g_sw.h"
#include "e1000g_debug.h"
frame_len--;
#ifdef E1000G_DEBUG
return (EACCES);
#ifdef E1000G_DEBUG
#ifdef E1000G_DEBUG
switch (stat) {
case MAC_STAT_IFSPEED:
case MAC_STAT_MULTIRCV:
case MAC_STAT_BRDCSTRCV:
case MAC_STAT_MULTIXMT:
case MAC_STAT_BRDCSTXMT:
case MAC_STAT_NORCVBUF:
case MAC_STAT_IERRORS:
case MAC_STAT_NOXMTBUF:
case MAC_STAT_OERRORS:
case MAC_STAT_COLLISIONS:
case MAC_STAT_RBYTES:
case MAC_STAT_IPACKETS:
case MAC_STAT_OBYTES:
case MAC_STAT_OPACKETS:
case ETHER_STAT_ALIGN_ERRORS:
case ETHER_STAT_FCS_ERRORS:
case ETHER_STAT_SQE_ERRORS:
case ETHER_STAT_EX_COLLISIONS:
case ETHER_STAT_DEFER_XMTS:
case ETHER_STAT_MACRCV_ERRORS:
case ETHER_STAT_MACXMT_ERRORS:
case ETHER_STAT_XCVR_ADDR:
case ETHER_STAT_XCVR_ID:
case ETHER_STAT_XCVR_INUSE:
case SPEED_1000:
*val =
case SPEED_100:
*val =
case SPEED_10:
case ETHER_STAT_CAP_1000FDX:
case ETHER_STAT_CAP_1000HDX:
case ETHER_STAT_CAP_100FDX:
case ETHER_STAT_CAP_100HDX:
case ETHER_STAT_CAP_10FDX:
case ETHER_STAT_CAP_10HDX:
case ETHER_STAT_CAP_ASMPAUSE:
case ETHER_STAT_CAP_PAUSE:
case ETHER_STAT_CAP_AUTONEG:
case ETHER_STAT_ADV_CAP_10FDX:
case ETHER_STAT_ADV_CAP_10HDX:
case ETHER_STAT_ADV_CAP_PAUSE:
case ETHER_STAT_LP_CAP_100FDX:
case ETHER_STAT_LP_CAP_100HDX:
case ETHER_STAT_LP_CAP_10FDX:
case ETHER_STAT_LP_CAP_10HDX:
case ETHER_STAT_LP_CAP_PAUSE:
case ETHER_STAT_LINK_ASMPAUSE:
case ETHER_STAT_LINK_PAUSE:
case ETHER_STAT_LINK_AUTONEG:
case ETHER_STAT_LINK_DUPLEX:
case ETHER_STAT_CAP_100T4:
case ETHER_STAT_ADV_CAP_100T4:
case ETHER_STAT_LP_CAP_100T4:
return (ENOTSUP);
return (DDI_FAILURE);
#ifdef E1000G_DEBUG
#ifdef E1000G_DEBUG
#ifdef E1000G_DEBUG
return (DDI_SUCCESS);