5 switch configuration / management api – DSS Networks C5468 User Manual
Page 39

GigMAC-CPCI-3U Network Interface Cards
Gig-CPCI-3U Gigabit Ethernet Switches
Board and Driver Users Manual
DSS NETWORKS, INC. DocVersion: 1.2
Page: 39
/* 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 C5468 Gig 3U CPCI 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);