
2
Updates the softc data structure with the amount of space that is available in the transmit FIFO.
13.3.5 Queuing Other Transmits
The following code shows how the el_tint( ) routine clears the output active flag to permit other transmits to be queued to the device:
}
13.4 Implementing the el_error Routine
The if_el driver’s el_error( ) routine implements the interface adapter error routine, as follows:
static void el_error(struct el_softc *sc, struct ifnet *ifp)
{
int i;
WRITE_CMD(sc, CMD_WINDOW4);
i = READ_FDP(sc); 1
printf("el%d: Adapter Failure - %04X\n",
}
1
2
Reads the FIFO diagnostic port register.
Resets the adapter to clear the failure condition.