Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/cavium/thunder_pcie_pem.c
Context not available. | |||||
}; | }; | ||||
static struct resource * thunder_pem_alloc_resource(device_t, device_t, int, | static struct resource * thunder_pem_alloc_resource(device_t, device_t, int, | ||||
int *, u_long, u_long, u_long, u_int); | int *, rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
static int thunder_pem_attach(device_t); | static int thunder_pem_attach(device_t); | ||||
static int thunder_pem_detach(device_t); | static int thunder_pem_detach(device_t); | ||||
static uint64_t thunder_pem_config_reg_read(struct thunder_pem_softc *, int); | static uint64_t thunder_pem_config_reg_read(struct thunder_pem_softc *, int); | ||||
Context not available. | |||||
thunder_pem_identify(device_t dev) | thunder_pem_identify(device_t dev) | ||||
{ | { | ||||
struct thunder_pem_softc *sc; | struct thunder_pem_softc *sc; | ||||
u_long start; | rman_res_t start; | ||||
sc = device_get_softc(dev); | sc = device_get_softc(dev); | ||||
start = rman_get_start(sc->reg); | start = rman_get_start(sc->reg); | ||||
Context not available. | |||||
static struct resource * | static struct resource * | ||||
thunder_pem_alloc_resource(device_t dev, device_t child, int type, int *rid, | thunder_pem_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 thunder_pem_softc *sc = device_get_softc(dev); | struct thunder_pem_softc *sc = device_get_softc(dev); | ||||
struct rman *rm = NULL; | struct rman *rm = NULL; | ||||
Context not available. | |||||
end, count, flags)); | end, count, flags)); | ||||
}; | }; | ||||
if ((start == 0UL) && (end == ~0UL)) { | if ((start == 0) && (end == ~0)) { | ||||
device_printf(dev, | device_printf(dev, | ||||
"Cannot allocate resource with unspecified range\n"); | "Cannot allocate resource with unspecified range\n"); | ||||
goto fail; | goto fail; | ||||
Context not available. |