Compaq AA-RNG2A-TE Network Card User Manual


 
12.15
Resetting the Device (SIOCIFRESET ioctl Command) ......... 1211
12.16
Setting Device Characteristics (SIOCIFSETCHAR ioctl
Command) .............................................................
1211
12.17
Releasing the Simple Lock and Resetting the IPL ............... 1213
13 Implementing the Interrupt Section
13.1
Implementing the el_intr Routine .................................. 131
13.1.1
Setting the IPL and Obtaining the Simple Lock ............ 132
13.1.2
Rearming the Next Timeout .................................... 132
13.1.3
Reading the Interrupt Status .................................. 133
13.1.4
Processing Completed Receive and Transmit Operations . 133
13.1.5
Acknowledging the Interrupt .................................. 134
13.1.6
Transmitting Pending Frames ................................. 134
13.1.7
Releasing the Simple Lock and Resetting the IPL .......... 134
13.1.8
Indicating That the Interrupt Was Serviced ................. 135
13.2
Implementing the el_rint Routine .................................. 135
13.2.1
Counting the Receive Interrupt and Reading the Receive
Status ..............................................................
135
13.2.2
Pulling the Packets from the FIFO Buffer ................... 136
13.2.3
Examining the First Part of the Packet ...................... 137
13.2.4
Copying the Received Packet into the mbuf ................. 138
13.2.5
Discarding a Packet .............................................
139
13.3
Implementing the el_tint Routine .................................. 1310
13.3.1
Counting the Transmit Interrupt .............................. 1310
13.3.2
Reading the Transmit Status and Counting All Significant
Events ..............................................................
1310
13.3.3
Managing Excessive Data Collisions .......................... 1311
13.3.4
Writing to the Status Register to Obtain the Next Value .. 1311
13.3.5
Queuing Other Transmits ...................................... 1312
13.4
Implementing the el_error Routine ................................ 1312
14 Network Device Driver Configuration
Index
Figures
11
Sections of a Network Device Driver ............................... 12
21
Window 0 Configuration Registers ................................. 25
22
Window 3 Configuration Registers ................................. 28
23
Window 1 Operational Registers ................................... 29
viii Contents