Compaq AA-RNG2A-TE Network Card User Manual


 
7.10
Unregistering the Card from the Hardware Management
Database ...............................................................
75
7.11
Freeing Resources ....................................................
75
8 Implementing the Initialization Section
8.1
Implementing the el_init Routine .................................. 81
8.1.1
Setting Up the el_init Routine ................................. 81
8.1.2
Determining Whether the PCMCIA Card Is Present ....... 82
8.1.3
Setting the IPL and Obtaining the Simple Lock ............ 82
8.1.4
Calling the el_init_locked Routine ............................ 83
8.1.5
Releasing the Simple Lock and Resetting the IPL .......... 83
8.1.6
Returning the Status from the el_init_locked Routine ..... 83
8.2
Implementing the el_init_locked Routine ......................... 83
8.2.1
Resetting the Transmitter and Receiver ...................... 84
8.2.2
Clearing Interrupts ..............................................
84
8.2.3
Starting the Device ..............................................
85
8.2.4
Ensuring That the 10Base2 Transceiver Is Off .............. 85
8.2.5
Setting the LAN Media .......................................... 86
8.2.6
Setting a LAN Attribute ........................................ 87
8.2.7
Selecting Memory Mapping .................................... 87
8.2.8
Resetting the Transmitter and Receiver Again .............. 87
8.2.9
Setting the LAN Address ....................................... 88
8.2.10
Processing Special Flags ........................................ 88
8.2.11
Setting the Debug Flag .......................................... 89
8.2.12
Enabling TX and RX .............................................
89
8.2.13
Enabling Interrupts ............................................. 810
8.2.14
Setting the Operational Window .............................. 810
8.2.15
Marking the Device as Running ............................... 810
8.2.16
Starting the Autosense Kernel Thread ....................... 811
8.2.17
Starting the Transmit of Pending Packets ................... 811
9 Implementing the Start Section
9.1
Implementing the el_start Routine ................................ 91
9.1.1
Setting the IPL and Obtaining the Simple Lock ............ 91
9.1.2
Calling the el_start_locked Routine ........................... 92
9.1.3
Releasing the Simple Lock and Resetting the IPL .......... 92
9.2
Implementing the el_start_locked Routine ....................... 93
9.2.1
Discarding All Transmits After the User Removes the
PCMCIA Card .................................................... 93
9.2.2
Removing Packets from the Pending Queue and Preparing
the Transmit Buffer .............................................. 94
vi Contents