Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/xscale/ixp425/ixp425.c
Show First 20 Lines • Show All 490 Lines • ▼ Show 20 Lines | getvbase(uint32_t hwbase, uint32_t size, uint32_t *vbase) | ||||
if (hw == NULL) | if (hw == NULL) | ||||
return (ENOENT); | return (ENOENT); | ||||
*vbase = hwbase - hw->hwbase + hw->vbase; | *vbase = hwbase - hw->hwbase + hw->vbase; | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
ixp425_alloc_resource(device_t dev, device_t child, int type, int *rid, | ixp425_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 ixp425_softc *sc = device_get_softc(dev); | struct ixp425_softc *sc = device_get_softc(dev); | ||||
const struct hwvtrans *vtrans; | const struct hwvtrans *vtrans; | ||||
struct resource *rv; | struct resource *rv; | ||||
uint32_t addr; | uint32_t addr; | ||||
int needactivate = flags & RF_ACTIVE; | int needactivate = flags & RF_ACTIVE; | ||||
int irq; | int irq; | ||||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |