Configure Section For A Network Driver; Autoconfiguration Support Section For A Network Driver; Initialization Section For A Network Driver; Start Section For A Network Driver - Compaq Tru64 UNIX Installation Manual

Writing network device drivers
Table of Contents

Advertisement

Table 1–1: Driver-Specific Macros (cont.)
Macro
READ_RXS
READ_FDP

1.3 Configure Section for a Network Driver

The configure section for a network device driver contains a configure
interface. The cfgmgr framework calls the driver's configure interface
at system startup to handle static configuration requests. The cfgmgr
framework can also call the driver's configure interface to handle
user-level requests to dynamically configure, unconfigure, query, and
reconfigure a device driver at run time. If you implement the driver as a
single binary module, the configure interface can handle both static and
dynamic configuration.

1.4 Autoconfiguration Support Section for a Network Driver

The autoconfiguration support section for a network device driver contains
the following entry points:
A probe interface, which determines if the network device exists and is
functional on the system
An attach interface, which establishes communication with the device
and initializes the driver's ifnet data structure.
You define the entry point for each of these interfaces in the driver data
structure.

1.5 Initialization Section for a Network Driver

The initialization section for a network device driver prepares the network
to transmit and receive data packets.

1.6 Start Section for a Network Driver

The start section for a network device driver contains a start interface,
which transmits data packets on the network interface. You define the
entry point for the start interface in the ifnet data structure. However,
before this interface can be called, the network adapter must be enabled for
data packet transmission and reception. You enable the network adapter
by invoking the SIOCSIFADDR ioctl command.
1–10 Network Device Driver Environment
Description
Read from the 3Com 3C5x9 device's receive status
register.
Read from the 3Com 3C5x9 device's FIFO diagnostic
port register.

Advertisement

Table of Contents
loading

Table of Contents