Home
last modified time | relevance | path

Searched refs:sc_hwrev (Results 1 – 9 of 9) sorted by relevance

/openbsd/src/sys/arch/arm64/dev/
Dapliic.c71 int sc_hwrev; member
135 sc->sc_hwrev = HREAD4(sc, I2C_REV); in apliic_attach()
138 (sc->sc_hwrev >= 6 ? I2C_CTL_EN : 0)); in apliic_attach()
/openbsd/src/sys/dev/ic/
Dre.c431 if (sc->sc_hwrev != RL_HWREV_8139CPLUS) { in re_miibus_readreg()
495 if (sc->sc_hwrev != RL_HWREV_8139CPLUS) { in re_miibus_writereg()
671 sc->sc_hwrev = CSR_READ_4(sc, RL_TXCFG) & RL_TXCFG_HWREV; in re_attach()
673 switch (sc->sc_hwrev) { in re_attach()
802 if (sc->sc_hwrev == RL_HWREV_8139CPLUS) { in re_attach()
829 if (sc->sc_hwrev == RL_HWREV_8139CPLUS) in re_attach()
883 if (sc->sc_hwrev == RL_HWREV_8139CPLUS) { in re_attach()
900 if (rr->re_chipid == sc->sc_hwrev) in re_attach()
905 printf(": unknown ASIC (0x%04x)", sc->sc_hwrev >> 16); in re_attach()
907 printf(": %s (0x%04x)", re_name, sc->sc_hwrev >> 16); in re_attach()
[all …]
Dpluartvar.h37 u_int8_t sc_hwrev; member
Dpluart.c171 if (sc->sc_hwrev == 0) in pluart_attach_common()
172 sc->sc_hwrev = UART_PID2_REV(bus_space_read_4(sc->sc_iot, in pluart_attach_common()
174 if (sc->sc_hwrev < 3) in pluart_attach_common()
178 printf(": rev %d, %d byte fifo\n", sc->sc_hwrev, fifolen); in pluart_attach_common()
Drtl81x9reg.h874 u_int32_t sc_hwrev; member
/openbsd/src/sys/arch/octeon/dev/
Doctmmc.c105 int sc_hwrev; member
186 sc->sc_hwrev = OCTMMC_HWREV_7890; in octmmc_attach()
190 sc->sc_hwrev = OCTMMC_HWREV_6130; in octmmc_attach()
212 if (sc->sc_hwrev == OCTMMC_HWREV_7890 && in octmmc_attach()
436 if (sc->sc_hwrev == OCTMMC_HWREV_6130) { in octmmc_init_bus()
645 if (sc->sc_hwrev == OCTMMC_HWREV_7890) in octmmc_exec_dma()
720 if (sc->sc_hwrev == OCTMMC_HWREV_7890) in octmmc_exec_dma()
/openbsd/src/sys/dev/usb/
Dif_urtw.c603 sc->sc_hwrev = urtw_lookup(uaa->vendor, uaa->product)->rev; in urtw_attach()
607 if (sc->sc_hwrev & URTW_HWREV_8187) { in urtw_attach()
612 sc->sc_hwrev |= URTW_HWREV_8187_D; in urtw_attach()
620 sc->sc_hwrev = URTW_HWREV_8187B | URTW_HWREV_8187B_B; in urtw_attach()
624 sc->sc_hwrev |= URTW_HWREV_8187_B; in urtw_attach()
633 sc->sc_hwrev |= URTW_HWREV_8187B_B; in urtw_attach()
637 sc->sc_hwrev |= URTW_HWREV_8187B_D; in urtw_attach()
641 sc->sc_hwrev |= URTW_HWREV_8187B_E; in urtw_attach()
645 sc->sc_hwrev |= URTW_HWREV_8187B_B; in urtw_attach()
708 if (sc->sc_hwrev & URTW_HWREV_8187) { in urtw_attach()
[all …]
Dif_urtwreg.h334 uint8_t sc_hwrev; member
/openbsd/src/sys/dev/fdt/
Dpluart_fdt.c83 sc->sc_hwrev = (periphid >> 20) & 0x0f; in pluart_fdt_attach()