devnp-mpc85xx.so

Driver for Freescale MPC85XX TSEC Ethernet controllers


Note: This driver is shipped only with the BSPs that need it.

Syntax:

io-pkt-variant -d mpc85xx mac=ZZZZZZZZZZZZ
    [option[,option...]] ... &

where variant is one of v4, v4-hc, or v6-hc.

Runs on:

Neutrino

Options:


Note: Use commas, not spaces, to separate the options. These options override the autodetected defaults.

duplex=0|1
Half (0) or full (1) duplex mode. The default is automatically detected on supported hardware. You can also use ifconfig -m and ifconfig tsecX media to set this.
etsec=0|1
Use the older TSEC (0) or newer eTSEC (1). The default is automatically detected on supported hardware.
fifo=num
Set the transmit FIFO threshold to num. The default is 64 on 85xx, and 480 on 83xx. Each entry is 4 bytes.
kermask=0|1
Specify the masking:
loopback
Place the MAC into loopback mode for testing purposes.
mac=XXXXXXXXXXXX
The interface address of the controller. You must specify this option if you aren't using the syspage option.
nomulticast
Disable multicast support. By default, multicast is enabled.
pauseignore
Disable link-layer flow control for Rx.
pausesuppress
Disable link-layer flow control for Tx.
phy_addr=X
The PHY address that en0 has.
phy_incr=X
The PHY address increment to add to get the address for the next interface.
probe_phy=0|1
Disable (0) or force (1) periodic PHY probing when idle.
receive=num
The number of receive descriptors. The default is 512.
rx_delay=X
Set the Rx interrupt coalescing timer threshold. Valid values are 1 through 65,535; the default is zero (disabled). If you set rx_delay, you must also set rx_frame.
rx_frame=X
Set the Rx interrupt coalescing frame threshold. Valid values are 1 through 255; the default is zero (disabled). If you set rx_frame, you must also set rx_delay.
speed=10|100|1000
The media data rate in megabits/second. The default is automatically detected on supported hardware. You can also use ifconfig -m and ifconfig tsecX media to set this.
syspage
Read hardware parameters (IRQs, MAC, base register address, and PHY address) for all devices from system page. If you don't use this option, you must use the mac=X option.
transmit=num
The number of transmit descriptors. The default is 1024.
verbose
verbose=N
Be verbose. Specify num for more verbosity (num can be 1-4; the higher the number, the more detailed the output). The default is 0. The output goes to slogger; invoke sloginfo to view it.

Description:

The devnp-mpc85xx.so driver controls Freescale MPC85XX TSEC Ethernet controllers. This is a native io-pkt driver; its interface names are in the form tsecX, where X is an integer.

Some devices support hardware checksums, although some might do so in only one direction; to determine if your device does, type:

ifconfig tsecX

and look for the following in the list of supported options:

You can then use ifconfig to enable or disable whichever of these options your device supports.


Note: Native io-pkt and ported NetBSD drivers don't put entries into the /dev/io-net namespace, so a waitfor command for such an entry won't work properly in buildfiles or scripts. Use if_up -p instead; for example, instead of waitfor /dev/io-net/tsec0, use if_up -p tsec0.

Examples:

Start the v4 TCP/IP variant of io-pkt using the devnp-mpc85xx.so driver:

io-pkt-v4 -d mpc85xx mac=00123456789a
ifconfig tsec0 10.184

See also:

devn-*, devnp-*, ifconfig, io-pkt, nicinfo