Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/wl/if_wl.c
Show First 20 Lines • Show All 489 Lines • ▼ Show 20 Lines | MTX_DEF); | ||||
error = wl_allocate_resources(device); | error = wl_allocate_resources(device); | ||||
if (error) { | if (error) { | ||||
wl_deallocate_resources(device); | wl_deallocate_resources(device); | ||||
return (ENXIO); | return (ENXIO); | ||||
} | } | ||||
#ifdef WLDEBUG | #ifdef WLDEBUG | ||||
printf("wlattach: base %lx, unit %d\n", rman_get_start(sc->res_ioport), | printf("wlattach: base %jx, unit %d\n", rman_get_start(sc->res_ioport), | ||||
device_get_unit(device)); | device_get_unit(device)); | ||||
#endif | #endif | ||||
sc->flags = 0; | sc->flags = 0; | ||||
sc->mode = 0; | sc->mode = 0; | ||||
sc->hacr = HACR_RESET; | sc->hacr = HACR_RESET; | ||||
CMD(sc); /* reset the board */ | CMD(sc); /* reset the board */ | ||||
DELAY(DELAYCONST); /* >> 4 clocks at 6MHz */ | DELAY(DELAYCONST); /* >> 4 clocks at 6MHz */ | ||||
▲ Show 20 Lines • Show All 2,114 Lines • Show Last 20 Lines |