Intel PCI Switch User Manual


 
GigMAC-PMC and PCI
GigPMC Switch Board and Driver Users Manual
DSS NETWORKS, INC. Version: 2.6 Page: 47
/* get driver trace buffer */
#define DM_IOCTL_GET_TRC 1
/* get driver statistics */
#define DM_IOCTL_GET_STATS 2
/* get phy registers */
#define DM_IOCTL_GET_PHY_REGS 3
/* get mac registers */
#define DM_IOCTL_GET_MAC_REGS 4
/* set loopback mode */
#define DM_IOCTL_SET_LOOP_MODE 5
Additional arguments:
arg1=0 Disable loopback
arg1=1 Enable loopback
/* read eeprom */
#define DM_IOCTL_READ_EEPROM 6
/* program eeprom */
#define DM_IOCTL_PROG_EEPROM 7
/* get mac address */
#define DM_IOCTL_GET_MAC_ADDR 8
/* dump buffer descriptors */
#define DM_IOCTL_DUMP_BDS 9
/* get mac MIB statistics */
#define DM_IOCTL_GET_MAC_STATS 10
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);