Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/mv/mv_pci.c
Context not available. | |||||
static int mv_pcib_attach(device_t); | static int mv_pcib_attach(device_t); | ||||
static struct resource *mv_pcib_alloc_resource(device_t, device_t, int, int *, | static struct resource *mv_pcib_alloc_resource(device_t, device_t, int, int *, | ||||
u_long, u_long, u_long, u_int); | rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
static int mv_pcib_release_resource(device_t, device_t, int, int, | static int mv_pcib_release_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static int mv_pcib_read_ivar(device_t, device_t, int, uintptr_t *); | static int mv_pcib_read_ivar(device_t, device_t, int, uintptr_t *); | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
mv_pcib_alloc_resource(device_t dev, device_t child, int type, int *rid, | mv_pcib_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 mv_pcib_softc *sc = device_get_softc(dev); | struct mv_pcib_softc *sc = device_get_softc(dev); | ||||
struct rman *rm = NULL; | struct rman *rm = NULL; | ||||
Context not available. | |||||
type, rid, start, end, count, flags)); | type, rid, start, end, count, flags)); | ||||
}; | }; | ||||
if ((start == 0UL) && (end == ~0UL)) { | if ((start == 0) && (end == ~0)) { | ||||
start = sc->sc_mem_base; | start = sc->sc_mem_base; | ||||
end = sc->sc_mem_base + sc->sc_mem_size - 1; | end = sc->sc_mem_base + sc->sc_mem_size - 1; | ||||
count = sc->sc_mem_size; | count = sc->sc_mem_size; | ||||
Context not available. |