Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ed/if_ed_wd80x3.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
ed_probe_WD80x3_generic(device_t dev, int flags, uint16_t *intr_vals[]) | ed_probe_WD80x3_generic(device_t dev, int flags, uint16_t *intr_vals[]) | ||||
{ | { | ||||
struct ed_softc *sc = device_get_softc(dev); | struct ed_softc *sc = device_get_softc(dev); | ||||
int error; | int error; | ||||
int i; | int i; | ||||
u_int memsize; | u_int memsize; | ||||
u_char iptr, isa16bit, sum, totalsum; | u_char iptr, isa16bit, sum, totalsum; | ||||
u_long irq, junk, pmem; | rman_res_t irq, junk, pmem; | ||||
sc->chip_type = ED_CHIP_TYPE_DP8390; | sc->chip_type = ED_CHIP_TYPE_DP8390; | ||||
if (ED_FLAGS_GETTYPE(flags) == ED_FLAGS_TOSH_ETHER) { | if (ED_FLAGS_GETTYPE(flags) == ED_FLAGS_TOSH_ETHER) { | ||||
totalsum = ED_WD_ROM_CHECKSUM_TOTAL_TOSH_ETHER; | totalsum = ED_WD_ROM_CHECKSUM_TOTAL_TOSH_ETHER; | ||||
ed_asic_outb(sc, ED_WD_MSR, ED_WD_MSR_POW); | ed_asic_outb(sc, ED_WD_MSR, ED_WD_MSR_POW); | ||||
DELAY(10000); | DELAY(10000); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |