Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xe/if_xe_pccard.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
xe_cemfix(device_t dev) | xe_cemfix(device_t dev) | ||||
{ | { | ||||
struct xe_softc *sc = device_get_softc(dev); | struct xe_softc *sc = device_get_softc(dev); | ||||
int ioport; | int ioport; | ||||
DEVPRINTF(2, (dev, "cemfix\n")); | DEVPRINTF(2, (dev, "cemfix\n")); | ||||
DEVPRINTF(1, (dev, "CEM I/O port 0x%0lx, size 0x%0lx\n", | DEVPRINTF(1, (dev, "CEM I/O 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))); | ||||
pccard_attr_write_1(dev, DINGO_ECOR, DINGO_ECOR_IRQ_LEVEL | | pccard_attr_write_1(dev, DINGO_ECOR, DINGO_ECOR_IRQ_LEVEL | | ||||
DINGO_ECOR_INT_ENABLE | DINGO_ECOR_IOB_ENABLE | | DINGO_ECOR_INT_ENABLE | DINGO_ECOR_IOB_ENABLE | | ||||
DINGO_ECOR_ETH_ENABLE); | DINGO_ECOR_ETH_ENABLE); | ||||
ioport = bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid); | ioport = bus_get_resource_start(dev, SYS_RES_IOPORT, sc->port_rid); | ||||
pccard_attr_write_1(dev, DINGO_EBAR0, ioport & 0xff); | pccard_attr_write_1(dev, DINGO_EBAR0, ioport & 0xff); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |