Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/advansys/adv_isa.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static int adv_get_isa_dma_channel(struct adv_softc *adv); | static int adv_get_isa_dma_channel(struct adv_softc *adv); | ||||
static int adv_set_isa_dma_settings(struct adv_softc *adv); | static int adv_set_isa_dma_settings(struct adv_softc *adv); | ||||
static int | static int | ||||
adv_isa_probe(device_t dev) | adv_isa_probe(device_t dev) | ||||
{ | { | ||||
int port_index; | int port_index; | ||||
int max_port_index; | int max_port_index; | ||||
u_long iobase, iocount, irq; | rman_res_t iobase, iocount, irq; | ||||
int user_iobase = 0; | int user_iobase = 0; | ||||
int rid = 0; | int rid = 0; | ||||
void *ih; | void *ih; | ||||
struct resource *iores, *irqres; | struct resource *iores, *irqres; | ||||
/* | /* | ||||
* We don't know of any PnP ID's for these cards. | * We don't know of any PnP ID's for these cards. | ||||
*/ | */ | ||||
Show All 10 Lines | |||||
user_iobase = 1; | user_iobase = 1; | ||||
for (;port_index <= max_port_index; port_index++) | for (;port_index <= max_port_index; port_index++) | ||||
if (iobase <= adv_isa_ioports[port_index]) | if (iobase <= adv_isa_ioports[port_index]) | ||||
break; | break; | ||||
if ((port_index > max_port_index) | if ((port_index > max_port_index) | ||||
|| (iobase != adv_isa_ioports[port_index])) { | || (iobase != adv_isa_ioports[port_index])) { | ||||
if (bootverbose) | if (bootverbose) | ||||
device_printf(dev, | device_printf(dev, | ||||
"Invalid baseport of 0x%lx specified. " | "Invalid baseport of 0x%jx specified. " | ||||
"Nearest valid baseport is 0x%x. Failing " | "Nearest valid baseport is 0x%x. Failing " | ||||
"probe.\n", iobase, | "probe.\n", iobase, | ||||
(port_index <= max_port_index) ? | (port_index <= max_port_index) ? | ||||
adv_isa_ioports[port_index] : | adv_isa_ioports[port_index] : | ||||
adv_isa_ioports[max_port_index]); | adv_isa_ioports[max_port_index]); | ||||
return ENXIO; | return ENXIO; | ||||
} | } | ||||
max_port_index = port_index; | max_port_index = port_index; | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |