User Manual
Table Of Contents
- DSS NETWORKS
- GigMAC PMC/PCI Controllers
- Document Version 2.0, P/N 131900
- 1. INTRODUCTION
- 1.1 SEE ALSO
- 1.2 COMPATIBILITY
- 2. MODEL NUMBERS
- 3. FEATURES
- 4. OEM DEVELOPER KIT CONTENTS
- 5. SYSTEM REQUIREMENTS
- 6. BOARD AND CONNECTOR INFORMATION
- 6.1 BOARD PHOTOS
- 6.2 BOARD LED INDICATORS
- 6.3 PMC CONNECTOR PIN/SIGNAL DEFINITIONS
- 7. POWER CONSUMPTION SPECS
- 8. HARDWARE INSTALLATION
- 8.1 INSTALLATION IN PC COMPUTER
- 8.2 EMBEDDED OR COMPACT PCI INSTALLATION
- 9. COPPER CABLING AND CONNECTOR INFO
- 9.1. FIBER CABLE SPECIFICATIONS
- 9.2 COPPER RJ-45 CONNECTOR AND CABLE
- 10. SOFTWARE DRIVER INSTALLATION
- 10.1 VXWORKS DRIVER INSTALLATION AND USAGE
- 10.2 LINUX DRIVER INSTALLATION AND USAGE
- 10.3 DPM DRIVER MANAGEMENT API
- 10.4 WINDOWS DRIVER INSTALLATION
- 11. TESTING AND VERIFICATION
- 12. SPECIFICATIONS
- 13. WARRANTEE AND SUPPORT INFO

GigMAC PMC and PCI Board and Driver Users Manual
C. Issue ioctl command
/* issue ioctl to network driver */
err = ioctl (s, SIOCDEVPRIVATE + subCmd, &ifr);
D. Check and print results
if (err < 0)
{
/* perror (errno); */
usage ();
exit (1);
}
if (subCmd == DM_IOCTL_GET_TRC)
{
print_trace();
}
else
{
if ((subCmd != DM_IOCTL_SET_LOOP_MODE) &&
(subCmd != DM_IOCTL_PROG_EEPROM))
printf ("\n%s\n", myDataBuf);
}
IOCTL COMMAND SUB-TYPES
/* 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
DSS NETWORKS, INC.
Version: 2.0 Page: 27