Compaq Tru64 UNIX Installation Manual page 61

Writing network device drivers
Table of Contents

Advertisement

contained in the ctlr_num member of the controller data structure
for this 3Com 3C5x9 device.
Declares a handler_intr_info data structure called el_intr_info.
5
The handler_intr_info data structure is a generic data structure
that contains interrupt handler information for buses that are connected
to a device controller. Using the handler_intr_info data structure
makes the driver more portable across different bus architectures.
Declares an ihandler_t data structure called el_ihandle to contain
6
information for the if_el device driver's interrupt service routine
registration.
Declares a pointer to a card_info data structure called card_infop
7
and initializes it to the specific card_info data structure for this
controller. This data structure is associated with PCMCIA devices only.
The bus configuration code passes this card_info data structure
through the controller data structure's conn_priv[2] member. The
pcmcia.h file defines card_info_ptr as conn_priv[2].
Declares a variable called reg that stores the I/O handle that is passed
8
to the driver's el_probe( ) routine.
Declares an e_port data structure called port_sel. This data
9
structure is associated with the EISA and ISA buses. The e_port data
structure describes bus I/O port information. The bus configuration
code initializes the members of the e_port data structure during device
autoconfiguration. Device drivers call the get_config( ) routine to
obtain information from the members of the e_port data structure.
Declares an irq data structure called irq_sel. The irq data structure
10
specifies EISA/ISA bus interrupt channel characteristics that are
assigned to a device. The bus configuration code initializes the members
of the irq data structure during device autoconfiguration. Device
drivers call the get_config( ) routine to obtain information from the
members of the irq data structure.
Declares the tuple_* data structures. For more information and
11
definitions of the tuple_info and tuple_data_info data structures,
see the /usr/sys/include/io/dec/pcmcia/cardinfo.h file and
tuple_info( ) and tuple_data_info( ).
Implementing the Autoconfiguration Support Section (probe) 5–3

Advertisement

Table of Contents
loading

Table of Contents