Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/xscale/ixp425/avila_ata.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
struct ata_avila_softc *sc = xsc; | struct ata_avila_softc *sc = xsc; | ||||
if (sc->sc_intr[0].cb != NULL) | if (sc->sc_intr[0].cb != NULL) | ||||
sc->sc_intr[0].cb(sc->sc_intr[0].arg); | sc->sc_intr[0].cb(sc->sc_intr[0].arg); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
ata_avila_alloc_resource(device_t dev, device_t child, int type, int *rid, | ata_avila_alloc_resource(device_t dev, device_t child, int type, int *rid, | ||||
u_long start, u_long end, u_long count, u_int flags) | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) | ||||
{ | { | ||||
struct ata_avila_softc *sc = device_get_softc(dev); | struct ata_avila_softc *sc = device_get_softc(dev); | ||||
KASSERT(type == SYS_RES_IRQ && *rid == ATA_IRQ_RID, | KASSERT(type == SYS_RES_IRQ && *rid == ATA_IRQ_RID, | ||||
("type %u rid %u start %lu end %lu count %lu flags %u", | ("type %u rid %u start %ju end %ju count %ju flags %u", | ||||
type, *rid, start, end, count, flags)); | type, *rid, start, end, count, flags)); | ||||
/* doesn't matter what we return so reuse the real thing */ | /* doesn't matter what we return so reuse the real thing */ | ||||
return sc->sc_irq; | return sc->sc_irq; | ||||
} | } | ||||
static int | static int | ||||
ata_avila_release_resource(device_t dev, device_t child, int type, int rid, | ata_avila_release_resource(device_t dev, device_t child, int type, int rid, | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |