Changeset View
Changeset View
Standalone View
Standalone View
head/sys/x86/isa/atrtc.c
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | atrtc_probe(device_t dev) | ||||
} | } | ||||
return (result); | return (result); | ||||
} | } | ||||
static int | static int | ||||
atrtc_attach(device_t dev) | atrtc_attach(device_t dev) | ||||
{ | { | ||||
struct atrtc_softc *sc; | struct atrtc_softc *sc; | ||||
u_long s; | rman_res_t s; | ||||
int i; | int i; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid, | sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid, | ||||
IO_RTC, IO_RTC + 1, 2, RF_ACTIVE); | IO_RTC, IO_RTC + 1, 2, RF_ACTIVE); | ||||
if (sc->port_res == NULL) | if (sc->port_res == NULL) | ||||
device_printf(dev, "Warning: Couldn't map I/O.\n"); | device_printf(dev, "Warning: Couldn't map I/O.\n"); | ||||
atrtc_start(); | atrtc_start(); | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |