Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/wl/if_wl.c
Context not available. | |||||
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); | ||||
Context not available. | |||||
} | } | ||||
#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 | ||||
Context not available. | |||||
int ports = 16; /* Number of ports */ | int ports = 16; /* Number of ports */ | ||||
sc->res_ioport = bus_alloc_resource(device, SYS_RES_IOPORT, | sc->res_ioport = bus_alloc_resource(device, SYS_RES_IOPORT, | ||||
&sc->rid_ioport, 0ul, ~0ul, ports, RF_ACTIVE); | &sc->rid_ioport, 0, ~0, ports, RF_ACTIVE); | ||||
if (sc->res_ioport == NULL) | if (sc->res_ioport == NULL) | ||||
goto errexit; | goto errexit; | ||||
Context not available. |