Save the ce.conf file, Usability enhancements to the driver – Sun Microsystems X1150A User Manual

Page 75

Advertising
background image

Chapter 4

Configuring Driver Parameters

53

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.)

In the following example, the

adv-autoneg-cap

and

adv-1000fdx-cap

parameters are set for a single instance of the Sun GigaSwift Ethernet device.

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:

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

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;

# ndd -set /dev/hme instance 2

Advertising