Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ed/if_ed_pccard.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
error = ed_alloc_port(dev, port_rid, ED_NOVELL_IO_PORTS); | error = ed_alloc_port(dev, port_rid, ED_NOVELL_IO_PORTS); | ||||
if (error) { | if (error) { | ||||
printf("alloc_port failed\n"); | printf("alloc_port failed\n"); | ||||
return (error); | return (error); | ||||
} | } | ||||
if (rman_get_size(sc->port_res) == ED_NOVELL_IO_PORTS / 2) { | if (rman_get_size(sc->port_res) == ED_NOVELL_IO_PORTS / 2) { | ||||
port_rid++; | port_rid++; | ||||
sc->port_res2 = bus_alloc_resource(dev, SYS_RES_IOPORT, | sc->port_res2 = bus_alloc_resource(dev, SYS_RES_IOPORT, | ||||
&port_rid, 0ul, ~0ul, 1, RF_ACTIVE); | &port_rid, 0, ~0, 1, RF_ACTIVE); | ||||
if (sc->port_res2 == NULL || | if (sc->port_res2 == NULL || | ||||
rman_get_size(sc->port_res2) != ED_NOVELL_IO_PORTS / 2) { | rman_get_size(sc->port_res2) != ED_NOVELL_IO_PORTS / 2) { | ||||
error = ENXIO; | error = ENXIO; | ||||
goto bad; | goto bad; | ||||
} | } | ||||
} | } | ||||
error = ed_alloc_irq(dev, 0, 0); | error = ed_alloc_irq(dev, 0, 0); | ||||
if (error) | if (error) | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |