GigMAC-PMC and PCI

 

GigPMC Switch

Board and Driver Users Manual

/* get driver trace buffer */

#define DM_IOCTL_GET_TRC

1

/* get driver statistics */

2

#define DM_IOCTL_GET_STATS

/* get phy registers */

3

#define DM_IOCTL_GET_PHY_REGS

/* get mac registers */

4

#define DM_IOCTL_GET_MAC_REGS

/* set loopback mode */

5

#define DM_IOCTL_SET_LOOP_MODE

Additional arguments:

arg1=0

Disable loopback

 

arg1=1

Enable loopback

 

/* read eeprom */

 

6

#define DM_IOCTL_READ_EEPROM

/* program eeprom */

7

#define DM_IOCTL_PROG_EEPROM

/* get mac address */

8

#define DM_IOCTL_GET_MAC_ADDR

/* dump buffer descriptors */

9

#define DM_IOCTL_DUMP_BDS

/* get mac MIB statistics */

10

#define DM_IOCTL_GET_MAC_STATS

Please also see example code in dmUtil.c for additional information.

10.5 SWITCH CONFIGURATION / MANAGEMENT API

Note: This section is applicable for Model 5468 GigPMC and Model 6468 GigPCIe switch/interface cards only.

The following functions are provide a low-level access capability for reading and writing the configuration and management registers on the embedded switch:

Functions to reset and initialize switch:

STATUS inResetSwitchDevice(int unit, int initialReset);

LOCAL void inLiInitBcm5388(InLiDev *pLiDev);

DSS NETWORKS, INC.

Version: 2.6

Page: 47

Page 47
Image 47
Intel PCI-X user manual Switch Configuration / Management API, Functions to reset and initialize switch