2
Contains the I/O base address.
3
Contains a tag value that identifies 3Com 3C5x9 devices on an ISA bus.
4
Contains a value that indicates whether the user has ejected the
PCMCIA card.
5
Contains a value that indicates whether the user has reloaded the
PCMCIA card.
6
Contains a value that indicates whether the card is a PCMCIA card.
7
Declares a pointer to the
card_info
data structure and calls it
cinfop
.
The
card_info
data structure contains information that is necessary
to communicate with the kernel PCMCIA subsystem.
3.10 Defining the Broadcast Flag
The broadcast flag in the
if_el
driver’s
el_softc
data structure indicates
whether the device should receive broadcast traffic. This flag is specific to
the
if_el
driver and, therefore, is optional in most network device drivers.
The following code shows the declaration of the broadcast flag in the
if_el
device driver’s
el_softc
data structure:
int
is_broadcast;
1
1
Contains a boolean value. If true, the broadcast address flag is set.
3.11 Defining the Debug Flag
The debug flag in a network driver’s
softc
data structure indicates whether
debug mode is on. The following code shows the declaration of the debug
flag in the
if_el
device driver’s
el_softc
data structure. The debug flag
is optional.
int
debug;
1
1
Contains the status of the debug flag. If the
if_flags
member of
the
ifnet
data structure pointer is set to
IFF_DEBUG
, debug is on.
Otherwise, debug is off.
3.12 Defining Interrupt and Timeout Statistics
The interrupt and timeout statistics in the
if_el
driver’s
el_softc
data
structure consists of information about timeout and interrupt events.
3–8 Defining the softc Data Structure