contained in the
ctlr_num
member of the
controller
data structure
for this 3Com 3C5x9 device.
5
Declares a
handler_intr_info
data structure called
el_intr_info
.
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.
6
Declares an
ihandler_t
data structure called
el_ihandle
to contain
information for the
if_el
device driver’s interrupt service routine
registration.
7
Declares a pointer to a
card_info
data structure called
card_infop
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]
.
8
Declares a variable called
reg
that stores the I/O handle that is passed
to the driver’s
el_probe( )
routine.
9
Declares an
e_port
data structure called
port_sel
. This data
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.
10
Declares an
irq
data structure called
irq_sel
. The
irq
data structure
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.
11
Declares the
tuple_
* data structures. For more information and
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