Compaq Tru64 UNIX Installation Manual page 67

Writing network device drivers
Table of Contents

Advertisement

sc->irq = 3;
3
sc->iobase = 0;
4
sc->ispcmcia = 1;
5
sc->cinfop =card_infop;
pcmcia_register_event_callback(card_infop->socket_vnum,
if (multi_func_flag)
lan_set_attribute(sc->ehm.current_val, NET_MODEL_NDX, "3C562");
else
lan_set_attribute(sc->ehm.current_val, NET_MODEL_NDX, "3C589");
break;
case BUS_ISA:
8
sc->irq = irq_sel.channel;
sc->isa_tag = isatag;
sc->iobase = ((reg-0x200)/0x10)&0x1f;
lan_set_attribute(sc->ehm.current_val, NET_MODEL_NDX, "3C509");
break;
}
Evaluates the bus_type member of the bus data structure for this
1
3Com 3C5x9 device.
Performs tasks that are related to the PCMCIA bus if bus_type
2
evaluates to BUS_PCMCIA.
Sets the interrupt request (IRQ) to the value 3.
3
Sets the I/O base of the program card to the value 0 (zero).
4
Indicates that this is a PCMCIA unit and saves the card information
5
pointer.
Calls the pcmcia_register_event_callback( ) routine. See the
6
if_el source file (in the examples directory that is installed with the
device driver kit) for a listing of this routine.
Sets the model identification attribute for enhanced hardware
7
management support.
Performs tasks that are related to the ISA bus.
8
Saves the interrupt request (IRQ) from the ISA bus configuration code.
9
Saves the tag from the activation process.
10
Computes the I/O base to give to the device.
11
Sets the model identification attribute for enhanced hardware
12
management support.
Implementing the Autoconfiguration Support Section (probe) 5–9
CARD_REMOVAL_EVENT,
(caddr_t)el_card_remove,
(caddr_t)sc);
7
9
10
11
6
12

Advertisement

Table of Contents
loading

Table of Contents