The second argument to the WRITE_CCR and the other write macros specifies the data to be written to the device register in bus address space. These write macros construct the second argument by referencing the val variable. For the if_el driver, this data is typically one of the device register offsets that is defined in the if_elreg.h file.
The read and write
Table
Table 1–1: Driver-Specific Macros
MacroDescription
READ_CCR and WRITE_CCR Read from and write to the 3Com 3C5x9 device’s configuration control register.
READ_ACR and WRITE_ACR Read from and write to the 3Com 3C5x9 device’s address control register.
WRITE_RCR | Write to the 3Com 3C5x9 device’s resource |
| configuration register. |
WRITE_ECR
READ_EDR
WRITE_CMD
Write to the 3Com 3C5x9 device’s EEPROM command register.
Read from the 3Com 3C5x9 device’s EEPROM data register.
Write to the 3Com 3C5x9 device’s command port registers.
READ_STS
READ_DATA and
WRITE_DATA
READ_ND and WRITE_ND
Read from the 3Com 3C5x9 device’s I/O status register.
Read from and write to the 3Com 3C5x9 device’s receive data and transmit data registers.
Read from and write to the 3Com 3C5x9 device’s network diagnostic register.
READ_MD and WRITE_MD Read from and write to the 3Com 3C5x9 device’s media type and status register.
READ_TXF and READ_RXF Read from the 3Com 3C5x9 device’s transmit and receive FIFO registers.
WRITE_AD1, WRITE_AD2, and WRITE_AD3
READ_TXS and WRITE_TXS
Set the LAN physical address for the 3Com 3C5x9 device.
Read from and write to the 3Com 3C5x9 device’s transmit status register.
Network Device Driver Environment