Compaq Tru64 UNIX Installation Manual page 8

Writing network device drivers
Table of Contents

Advertisement

12.15
12.16
Command) .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
12.17
13.1
Implementing the el_intr Routine . . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.1.1
13.1.2
Rearming the Next Timeout . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.1.3
Reading the Interrupt Status . . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.1.4
13.1.5
Acknowledging the Interrupt . . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.1.6
Transmitting Pending Frames . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.1.7
13.1.8
Indicating That the Interrupt Was Serviced . .. . . .. . .. . .. . .. .
13.2
Implementing the el_rint Routine . . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.2.1
Status . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.2.2
Pulling the Packets from the FIFO Buffer .. . .. . . .. . .. . .. . .. .
13.2.3
Examining the First Part of the Packet .. . .. . .. . . .. . .. . .. . .. .
13.2.4
Copying the Received Packet into the mbuf . .. . . .. . .. . .. . .. .
13.2.5
Discarding a Packet .. . . .. . .. . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.3
Implementing the el_tint Routine . . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.3.1
Counting the Transmit Interrupt . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.3.2
Events . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.3.3
Managing Excessive Data Collisions . .. . .. . .. . .. . . .. . .. . .. . .. .
13.3.4
13.3.5
Queuing Other Transmits .. . .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
13.4
Implementing the el_error Routine .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
Figures
1-1
Sections of a Network Device Driver . . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
2-1
Window 0 Configuration Registers . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
2-2
Window 3 Configuration Registers . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
2-3
Window 1 Operational Registers .. . .. . .. . . .. . .. . .. . .. . . .. . .. . .. . .. .
viii Contents
12-11
12-11
12-13
13-1
13-2
13-2
13-3
13-3
13-4
13-4
13-4
13-5
13-5
13-5
13-6
13-7
13-8
13-9
13-10
13-10
13-10
13-11
13-11
13-12
13-12
1-2
2-5
2-8
2-9

Advertisement

Table of Contents
loading

Table of Contents