Compaq AA-RNG2A-TE Network Card User Manual


 
3.6
Defining the Interrupt Handler ID .................................
36
3.7
Defining CSR Pointer Information .................................
36
3.8
Defining FIFO Maintenance Information ......................... 37
3.9
Defining Bus-Specific Information .................................
37
3.10
Defining the Broadcast Flag ........................................
38
3.11
Defining the Debug Flag .............................................
38
3.12
Defining Interrupt and Timeout Statistics ....................... 38
3.13
Defining Autosense Kernel Thread Context Information ...... 39
3.14
Defining the Polling Context Flag .................................. 39
3.15
Defining a Copy of the w3_eeprom Data Structure .............. 310
3.16
Declaring the Simple Lock Data Structure ....................... 310
4 Implementing the Configure Section
4.1
Declaring Configure-Related Variables and the
cfg_subsys_attr_t Data Structure .................................. 41
4.2
Setting Up the el_configure Routine ............................... 43
5 Implementing the Autoconfiguration Support Section (probe)
5.1
Implementing the el_probe Routine ............................... 51
5.1.1
Setting Up the el_probe Routine ............................... 52
5.1.2
Checking the Maximum Number of Devices That the
Driver Supports ..................................................
54
5.1.3
Performing Bus-Specific Tasks ................................. 54
5.1.4
Allocating Memory for the softc Data Structure ............ 56
5.1.5
Allocating the ether_driver Data Structure .................. 57
5.1.6
Initializing the Enhanced Hardware Management Data
Structure .......................................................... 58
5.1.7
Computing the CSR Addresses ................................ 58
5.1.8
Setting Bus-Specific Data Structure Members .............. 58
5.1.9
Handling First-Time Probe Operations ....................... 510
5.1.10
Handling Subsequent Probe Operations ..................... 512
5.1.11
Registering the Interrupt Handler ............................ 514
5.1.12
Saving the controller and softc Data Structure Pointers .. 516
5.1.13
Trying to Allocate Another controller Data Structure ...... 516
5.1.14
Registering the shutdown Routine ............................ 517
5.2
Implementing the el_shutdown Routine .......................... 517
5.3
Implementing the el_autosense_thread Routine ................. 517
5.3.1
Setting Up the el_autosense_thread Routine ................ 519
5.3.2
Blocking Until Awakened ....................................... 519
5.3.3
Testing for the Termination Flag .............................. 520
5.3.4
Starting Up Statistics ........................................... 520
iv Contents