Platform Notes:The eri FastEthernet Device Driver

Setting Parameters Using the eri.conf File

You can also specify the properties described in the section, "Setting Parameters in the /etc/system File"," in this chapter on a per-device basis by creating the eri.conf file in the /kernel/drv directory. The properties set in the eri.conf file will override the parameters set in the /etc/system file. Use eri.conf when you need to set a particular parameter for a device in the system. The parameters you set are read and write parameters that are listed in Chapter 3, Parameter Definitions.

The man pages for prtconf (1M), system (4) and driver.conf (4) include additional details. An example follows:

To Configure Driver Parameters Using eri.conf
  1. Obtain the hardware path name for the device in the device tree.

    Typically this path name and the associated instance number will be present in the /etc/path_to_inst file. For example, on a Sun Blade 1000 PCI system, the /etc/path_to_inst file will have the following entry:


    "/pci@8,700000/network@5,1" 0 "eri" 

    • In the entry:

      • The first part within the double quotes specifies the hardware node name in the device tree.

      • The second number is the instance number.

      • The last part in double quotes is the driver name.

    • In the device path name, the last component after the last / character and before the @ character is the device name.

    • The path name before the last component is the parent name.

    • The comma-separated numbers after the @ character at the end represent the device and function numbers, which are together referred to as unit-address.

    To identify a PCI device unambiguously in the eri.conf file, use the name, parent name, and the unit-address for the device. Refer to the pci(4) man page for more information about PCI device specification.

    In the first line of the previous example:

    • Name = eri

    • Parent = /pci@8,700000

    • Unit-address = 5,1

  2. Set the ipg1 and ipg2 parameters for the above device in the /kernel/drv/eri.conf file:


    name = "eri" parent = "/pci@8,700000" unit-address = "5,1" ipg1=10 ipg2=5;