for (i=0; i<(sizeof(struct w3_eeprom)/2); i++) { WRITE_ECR(sc, ECR_READ+i);
DELAY(1000);
*ed = READ_EDR(sc); ed++;
}
}
for (i=0; i<3; i++) { 4
j =
}
el_autosense_thread, (void *)sc);
if
printf("el%d: Can’t create autosense thread.\n", unit); if
CARD_REMOVAL_EVENT, (caddr_t)el_card_remove);
}
1
2
3
4
5
6
7
Determines whether the device has already been probed, which indicates that the device is operating on a PCMCIA bus and that the user has put the card back into the slot. In this case, the driver does not need to redo much of the initial probe work and will skip to the code shown in Section 5.1.10.
If this is a multifunction card, reads the EEPROM data and saves it in
If this is not a multifunction PC card, the EEPROM data is read directly from the card and saved in the el_softc data structure.
Saves the
Sets the media mode to the constant LAN_MODE_AUTOSENSE. This constant indicates that the driver hardware determines the media automatically.
Sets the media state to the constant LAN_MEDIA_STATE_SENSING. This constant indicates that the media is currently in the autosensing state.
Sets the currently set media to the constant LAN_MEDIA_UTP. This constant indicates that the mode for the media is unshielded