unit-address = “0”

In the third line in the previous example:

parent = “pci@5

unit-address = “1”

2.Set the parameters for the above devices in the /platform/sun4u/kernel/drv/ce.conf file.

In the following example, the adv_autoneg_cap and adv_1000fdx_cap parameters are set for all Sun GigaSwift Ethernet devices. (See the driver.conf(4) man page for more information.)

adv-autoneg-cap=0 adv-1000fdx-cap=0;

In the following example, the adv-autoneg-capand adv-1000fdx-capparameters are set for a single instance of the Sun GigaSwift Ethernet device.

name="pci108e,abba" parent="pci@9,600000" unit-address="2" adv-autoneg-cap=0 adv-100hdx-cap=0 adv-100fdx-cap=1 adv-1000fdx-cap=0 adv- 10hdx-cap=0 adv-10fdx-cap=0 adv-1000hdx-cap=0 adv-100T4-cap=0;

Note The difference between setting parameters for all Sun GigaSwift Ethernet devices and setting parameters for a single instance of the device depends on whether you include the name=, parent=, and unit-address=. If you omit these definitions, the settings become global to all Sun GigaSwift Ethernet instances.

3. Save the ce.conf file.

Usability Enhancements to the Driver

In older Ethernet device drivers, determining the link status for a driver required a two-step process:

First, you had to set the instance:

#ndd -set /dev/hme instance 2

Chapter 4 Configuring Driver Parameters 53

Page 75
Image 75
Sun Microsystems X1150A Usability Enhancements to the Driver, Third line in the previous example, Save the ce.conf file