Lines Matching refs:eeprom
378 fe_probe_jli_ati(struct fe_softc * sc, u_char const * eeprom) in fe_probe_jli_ati() argument
391 if (eeprom[1] != 0x00) return NULL; in fe_probe_jli_ati()
392 for (i = 2; i < 8; i++) if (eeprom[i] != 0xFF) return NULL; in fe_probe_jli_ati()
393 for (i = 14; i < 24; i++) if (eeprom[i] != 0xFF) return NULL; in fe_probe_jli_ati()
397 bcopy(eeprom + 8, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_jli_ati()
408 switch (eeprom[FE_ATI_EEP_MODEL]) { in fe_probe_jli_ati()
442 switch (eeprom[FE_ATI_EEP_MEDIA] & FE_B13_PORT) { in fe_probe_jli_ati()
472 switch ((eeprom[FE_ATI_EEP_REVISION] & 0xf0) in fe_probe_jli_ati()
473 |(eeprom[FE_ATI_EEP_MAGIC] & 0x04)) { in fe_probe_jli_ati()
501 fe_probe_jli_icl(struct fe_softc * sc, u_char const * eeprom) in fe_probe_jli_icl() argument
510 if (eeprom[i] != 0x20 && (eeprom[i] & 0xF0) != 0x30) return NULL; in fe_probe_jli_icl()
513 if (eeprom[i] != 0x20 && (eeprom[i] & 0xF0) != 0x30) return NULL; in fe_probe_jli_icl()
519 if (!fe_valid_Ether_p(eeprom+122, 0x00004B)) in fe_probe_jli_icl()
524 if (fe_valid_Ether_p(eeprom+4, 0x020000)) { in fe_probe_jli_icl()
526 bcopy(eeprom+4, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_jli_icl()
529 bcopy(eeprom+122, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_jli_icl()
533 switch (eeprom[0x5E]) { in fe_probe_jli_icl()
555 sc->sc_unit, eeprom[0x5E]); in fe_probe_jli_icl()
566 switch (eeprom[0x28]) { in fe_probe_jli_icl()
574 sc->sc_unit, eeprom[0x28]); in fe_probe_jli_icl()
595 switch ((eeprom[0x61] << 8) | eeprom[0x60]) { in fe_probe_jli_icl()
612 fe_probe_jli_rex(struct fe_softc * sc, u_char const * eeprom) in fe_probe_jli_rex() argument
618 if (eeprom[1] != eeprom[0]) return NULL; in fe_probe_jli_rex()
619 for (i = 8; i < 32; i++) if (eeprom[i] != 0xFF) return NULL; in fe_probe_jli_rex()
624 sc->enaddr[0] = eeprom[3]; in fe_probe_jli_rex()
625 sc->enaddr[1] = eeprom[2]; in fe_probe_jli_rex()
626 sc->enaddr[2] = eeprom[5]; in fe_probe_jli_rex()
627 sc->enaddr[3] = eeprom[4]; in fe_probe_jli_rex()
628 sc->enaddr[4] = eeprom[7]; in fe_probe_jli_rex()
629 sc->enaddr[5] = eeprom[6]; in fe_probe_jli_rex()
645 fe_probe_jli_unk(struct fe_softc * sc, u_char const * eeprom) in fe_probe_jli_unk() argument
659 if (eeprom[i] != eeprom[i+romsize]) in fe_probe_jli_unk()
669 if (!fe_valid_Ether_p(eeprom + n, 0x000000)) in fe_probe_jli_unk()
678 bcopy(eeprom+n, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_jli_unk()
699 u_char eeprom [JLI_EEPROM_SIZE]; in fe_probe_jli() local
758 fe_read_eeprom_jli(sc, eeprom); in fe_probe_jli()
761 if (eeprom[FE_EEPROM_CONF] != fe_inb(sc, FE_BMPR19)) in fe_probe_jli()
776 if ((irqmap = fe_probe_jli_ati(sc, eeprom)) == NULL in fe_probe_jli()
777 && (irqmap = fe_probe_jli_rex(sc, eeprom)) == NULL in fe_probe_jli()
778 && (irqmap = fe_probe_jli_icl(sc, eeprom)) == NULL in fe_probe_jli()
779 && (irqmap = fe_probe_jli_unk(sc, eeprom)) == NULL) in fe_probe_jli()
818 u_char eeprom [SSI_EEPROM_SIZE]; in fe_probe_ssi() local
847 fe_read_eeprom_ssi(sc, eeprom); in fe_probe_ssi()
850 if (!fe_valid_Ether_p(eeprom+FE_SSI_EEP_ADDR, 0x008098)) in fe_probe_ssi()
852 bcopy(eeprom + FE_SSI_EEP_ADDR, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_ssi()
880 u_char eeprom [LNX_EEPROM_SIZE]; in fe_probe_lnx() local
908 fe_read_eeprom_lnx(sc, eeprom); in fe_probe_lnx()
911 if (!fe_valid_Ether_p(eeprom, 0x008098)) in fe_probe_lnx()
913 bcopy(eeprom, sc->enaddr, ETHER_ADDR_LEN); in fe_probe_lnx()