if (status == SUCCESS) {
ee = (unsigned char *)&ee_copy;
for (i = 0; i < (sizeof(struct w3_eeprom)); i++) { *ee =
ee++;
}
} else {
printf("el%d: Can’t read multifunction card’s eeprom.\n", unit);
if
CARD_REMOVAL_EVENT, (caddr_t)el_card_remove);
return(0);
}
} else {
printf("el%d: Can’t read multifunction card’s eeprom.\n", unit);
if
CARD_REMOVAL_EVENT, (caddr_t)el_card_remove);
return(0);
}
} else {
2
ed = (unsigned short *)&ee_copy;
for (i=0; i<(sizeof(struct w3_eeprom)/2); i++) { WRITE_ECR(sc, ECR_READ+i);
DELAY(1000);
*ed = READ_EDR(sc); ed++;
}
}
if
for (i=0; i<3; i++) { 4
j =
tmp_addr[(i*2)] = (j>>8) & 0xff; tmp_addr[(i*2)+1] = (j) & 0xff;
}
if (bcmp(tmp_addr,
5
for (i=0; i<3; i++) { 6 j = ee_copy.addr[i];
tmp_addr[(i*2)] = (j>>8) & 0xff; tmp_addr[(i*2)+1] = (j) & 0xff;
}
bzero(&ifr, sizeof(struct ifreq)); bcopy(tmp_addr, ifr.ifr_addr.sa_data, 6); bcopy(tmp_addr,
if (((struct arpcom
}
if_sphyaddr(ifp, &ifr); 9
}
10