Compaq AA-RNG2A-TE Network Card User Manual


 
5.3.5
Entering the Packet Transmit Loop ............
............... 520
5.3.6
Saving Counters Prior to the Transmit Operation .......... 521
5.3.7
Allocating Memory for a Test Packet ...........
............... 521
5.3.8
Using the Default from the ROM ..............................
521
5.3.9
Setting the Media in the Hardware ............
............... 522
5.3.10
Building the Test Packet ........................................
522
5.3.11
Transmitting the Test Packet .................................. 522
5.3.12
Setting a Timer for the Current Kernel Thread ............. 523
5.3.13
Testing for Loss of Carrier ...................................... 523
5.3.14
Determining Whether Packets Were Transmitted
Successfully .......................................................
524
5.3.15
Printing Debug Information .................................... 524
5.3.16
Setting Up New Media .......................................... 524
5.3.17
Establishing the Media .......................................... 525
6 Implementing the Autoconfiguration Support Section (attach)
6.1
Setting Up the el_attach Routine .................................. 61
6.2
Initializing the Media Address and Media Header Lengths ... 62
6.3
Setting Up the Media ................................................
63
6.4
Initializing Simple Lock Information .............................. 65
6.5
Printing a Success Message ......................................... 66
6.6
Specifying the Network Driver Interfaces ........................ 66
6.7
Setting the Baud Rate ...............................................
68
6.8
Attaching to the Packet Filter and the Network Layer ......... 68
6.9
Setting Network Attributes and Registering the Adapter ...... 69
6.10
Handling the Reinsert Operation .................................. 69
6.11
Enabling the Interrupt Handler .................................... 610
6.12
Starting the Polling Process ......................................... 610
7 Implementing the unattach Routine
7.1
Setting Up the el_unattach Routine ............................... 71
7.2
Verifying That the Interface Has Shut Down .................... 72
7.3
Obtaining the Simple Lock and Shutting Down the Device .... 72
7.4
Disabling the Interrupt Handler ................................... 73
7.5
Terminating the Autosense Kernel Thread ....................... 73
7.6
Unregistering the PCMCIA Event Callback Routine ........... 74
7.7
Stopping the Polling Process ........................................ 74
7.8
Unregistering the Shutdown Routine ............................. 74
7.9
Terminating the Simple Lock ....................................... 74
Contents v