Intel PCI-X user manual Switch Status Show Function, DPM Driver Management API

Page 45

GigMAC-PMC and PCI

 

GigPMC Switch

Board and Driver Users Manual

10.3.11 SWITCH STATUS SHOW FUNCTION

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

vxWorks usage:

inShowSwitch(unit)

# unit = device index starting from 0

Linux usage:

 

./dmUtil –sw eth1

# eth1, eth2, etc.

Command output:

 

-> inShowSwitch

 

unit: 0, switch link sts: 0x39, rctl: 0x1

link: 0, upFlg: 1 (UP)

link: 1, upFlg: 0 (DOWN)

link: 2, upFlg: 0 (DOWN)

link: 3, upFlg: 1 (UP)

link: 4, upFlg: 1 (UP)

link: 5, upFlg: 1 (UP)

link: 6, upFlg: 0 (DOWN)

link: 7, upFlg: 0 (DOWN)

10.4 DPM DRIVER MANAGEMENT API

The dpm network driver management API is an api extension primarily used by the ‘dmUtil’ command line utility to enable various management functions or to acquire driver status and statistics. The typical api usage sequence is as follows:

1.User enters ‘dmUtil’ command and parameters as shown in the following example:

./dmUtil –s eth1

2.dmUtil parses command line and prepares an “ioctl” request block to send to driver. A pointer to a application buffer to hold the text message results (for example formatted statistics) is provided by dmUtil in the request block.

3.Driver receives ioctl request block performs action and copies result data to applications message buffer.

The following is an API description of the management ioctl commands issued to the driver from the ‘dmUtil’ application’s viewpoint:

DSS NETWORKS, INC.

Version: 2.6

Page: 45

Image 45
Contents Sept DSS NetworksGigMAC-PMC and PCI GigPMC Switch Environmental Specifications Introduction See AlsoCompatibility PMC models Model NumbersPCI-Express models PCI-X modelsKEY Features OEM Developer KIT Contents Switch Capabilities Models 5468/6468GigMAC-PMC and PCI GigPMC Switch Wind River System RequirementsHardware Information 6.1 Board Photos DSS NETWORKS, INC Board LED Indicators Link LNK IndicatorTransmit and Receive Activity Indicators Receive activity Transmit activity‰ TBD PMC Connectors Pin Assignments Pn1/Jn1 32 Bit PCI PMC Connector PIN/SIGNAL DefinitionsPn2/Jn2 32 Bit PCI Pn3/Jn3 32 Bit PCI Pn4/Jn4 optional I/O Model 5468 only PCI Configuration Registers Vendor and Device IDS Eeprom ListingsModel Model 5262-RJ Default Register Settings GigMAC-PMC and PCI GigPMC Switch Power Consumption Specs Hardware InstallationEthernet Frame Latency Embedded or Compact PCI Installation Installation in PC ComputerCopper Cabling and Connector Info Fiber Cable Specifications Copper RJ-45 Connector and Cable Software Driver Installation Linux Driver Installation and UsageBuilding the driver Installing the driver Sample MODULES.CONF File Tuning the Installation Parameter Name Valid Default Description Range/Settings ‘Insmod’ Command Line ParametersSuggested basic verifications to be run Edit Makefile Un-comment the following define Using dmUtil dpm driver utility Vxworks Driver Installation and UsageVxWorks usage PCI Registers Show Function Unit 0, ioAddr 40020000, mac regs MAC Registers Show FunctionMAC Statistics Show Function GigMAC-PMC and PCI GigPMC Switch PHY Registers Show Function Eeprom Show Function Buffer Descriptor Status Show Function MAC Address Show FunctionStopping Frame Generator Starting Frame GeneratorDPM Driver Management API Switch Status Show FunctionIoctl Command SUB-TYPES Functions to reset and initialize switch Switch Configuration / Management APIFunctions to read and write registers in the switch Testing and Verification Specifications Environmental Range Environmental Standards Compliance pendingStandards Compliance GigMAC-PMC and PCI GigPMC Switch Environmental Specifications Warrantee and Support Info Technical Support and Warranty
Related manuals
Manual 406 pages 21.68 Kb