
access a CSR directly. The
The following code shows the declarations of the CSR addresses in the if_el device driver’s el_softc data structure. Make sure that the CSR pointer information part of your softc data structure has similar declarations.
io_handle_t regE; io_handle_t regC; io_handle_t regA; io_handle_t reg8; io_handle_t reg6; io_handle_t reg4; io_handle_t reg2; io_handle_t reg0; io_handle_t data;
1
1
Declares the CSR addresses for the if_el driver. These addresses are computed during the probe( ) routine by adding the specified offset (0xE, 0xC, 0xA, and so forth) to the base address.
3.8 Defining FIFO Maintenance Information
The
unsigned long txfree;
3.9 Defining Bus-Specific Information
The
The following code shows the
int | irq; | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
int | iobase; |
| 2 |
|
|
|
| |
int | isa_tag; |
|
|
|
| |||
3 |
|
| ||||||
int | cardout; |
|
|
|
| |||
4 |
|
| ||||||
int | reprobe; |
|
|
|
| |||
5 |
|
| ||||||
int | ispcmcia; |
| 6 |
| ||||
struct | card_info | *cinfop; |
7
1
Contains the interrupt request (IRQ) to use.