Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/wl/if_wl.c
Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
*/ | */ | ||||
static int | static int | ||||
wlprobe(device_t device) | wlprobe(device_t device) | ||||
{ | { | ||||
struct wl_softc *sc; | struct wl_softc *sc; | ||||
char *str = "wl%d: board out of range [0..%d]\n"; | char *str = "wl%d: board out of range [0..%d]\n"; | ||||
u_char inbuf[100]; | u_char inbuf[100]; | ||||
unsigned long junk, sirq; | rman_res_t junk, sirq; | ||||
int error, irq; | int error, irq; | ||||
error = ISA_PNP_PROBE(device_get_parent(device), device, wl_ids); | error = ISA_PNP_PROBE(device_get_parent(device), device, wl_ids); | ||||
if (error == ENXIO || error == 0) | if (error == ENXIO || error == 0) | ||||
return (error); | return (error); | ||||
sc = device_get_softc(device); | sc = device_get_softc(device); | ||||
error = wl_allocate_resources(device); | error = wl_allocate_resources(device); | ||||
▲ Show 20 Lines • Show All 2,221 Lines • Show Last 20 Lines |