Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xe/if_xe.c
Context not available. | |||||
if (!sc->modem) { | if (!sc->modem) { | ||||
sc->port_rid = 0; /* 0 is managed by pccard */ | sc->port_rid = 0; /* 0 is managed by pccard */ | ||||
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, | sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, | ||||
&sc->port_rid, 0ul, ~0ul, 16, RF_ACTIVE); | &sc->port_rid, 0, ~0, 16, RF_ACTIVE); | ||||
} else if (sc->dingo) { | } else if (sc->dingo) { | ||||
/* | /* | ||||
* Find a 16 byte aligned ioport for the card. | * Find a 16 byte aligned ioport for the card. | ||||
Context not available. | |||||
sc->port_res); | sc->port_res); | ||||
start = (rman_get_start(sc->port_res) + 15) & ~0xf; | start = (rman_get_start(sc->port_res) + 15) & ~0xf; | ||||
} while (1); | } while (1); | ||||
DEVPRINTF(1, (dev, "RealPort port 0x%0lx, size 0x%0lx\n", | DEVPRINTF(1, (dev, "RealPort port 0x%0jx, size 0x%0jx\n", | ||||
bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid), | bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid), | ||||
bus_get_resource_count(dev, SYS_RES_IOPORT, sc->port_rid))); | bus_get_resource_count(dev, SYS_RES_IOPORT, sc->port_rid))); | ||||
} else if (sc->ce2) { | } else if (sc->ce2) { | ||||
Context not available. | |||||
DEVPRINTF(1, (dev, "Finding I/O port for CEM2/CEM3\n")); | DEVPRINTF(1, (dev, "Finding I/O port for CEM2/CEM3\n")); | ||||
sc->ce2_port_rid = 0; /* 0 is managed by pccard */ | sc->ce2_port_rid = 0; /* 0 is managed by pccard */ | ||||
sc->ce2_port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, | sc->ce2_port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, | ||||
&sc->ce2_port_rid, 0ul, ~0ul, 8, RF_ACTIVE); | &sc->ce2_port_rid, 0, ~0, 8, RF_ACTIVE); | ||||
if (sc->ce2_port_res == NULL) { | if (sc->ce2_port_res == NULL) { | ||||
DEVPRINTF(1, (dev, | DEVPRINTF(1, (dev, | ||||
"Cannot allocate I/O port for modem\n")); | "Cannot allocate I/O port for modem\n")); | ||||
Context not available. | |||||
sc->port_res); | sc->port_res); | ||||
sc->port_res = NULL; | sc->port_res = NULL; | ||||
} | } | ||||
DEVPRINTF(1, (dev, "CEM2/CEM3 port 0x%0lx, size 0x%0lx\n", | DEVPRINTF(1, (dev, "CEM2/CEM3 port 0x%0jx, size 0x%0jx\n", | ||||
bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid), | bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid), | ||||
bus_get_resource_count(dev, SYS_RES_IOPORT, sc->port_rid))); | bus_get_resource_count(dev, SYS_RES_IOPORT, sc->port_rid))); | ||||
} | } | ||||
Context not available. |