Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/xscale/pxa/pxa_smi.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
static int pxa_smi_probe(device_t); | static int pxa_smi_probe(device_t); | ||||
static int pxa_smi_attach(device_t); | static int pxa_smi_attach(device_t); | ||||
static int pxa_smi_print_child(device_t, device_t); | static int pxa_smi_print_child(device_t, device_t); | ||||
static int pxa_smi_read_ivar(device_t, device_t, int, uintptr_t *); | static int pxa_smi_read_ivar(device_t, device_t, int, uintptr_t *); | ||||
static struct resource * pxa_smi_alloc_resource(device_t, device_t, | static struct resource * pxa_smi_alloc_resource(device_t, device_t, | ||||
int, int *, u_long, u_long, u_long, u_int); | int, int *, rman_res_t, rman_res_t, rman_res_t, u_int); | ||||
static int pxa_smi_release_resource(device_t, device_t, | static int pxa_smi_release_resource(device_t, device_t, | ||||
int, int, struct resource *); | int, int, struct resource *); | ||||
static int pxa_smi_activate_resource(device_t, device_t, | static int pxa_smi_activate_resource(device_t, device_t, | ||||
int, int, struct resource *); | int, int, struct resource *); | ||||
static void pxa_smi_add_device(device_t, const char *, int); | static void pxa_smi_add_device(device_t, const char *, int); | ||||
static int | static int | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
return (ENOENT); | return (ENOENT); | ||||
} | } | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
pxa_smi_alloc_resource(device_t dev, device_t child, int type, int *rid, | pxa_smi_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 pxa_smi_softc *sc; | struct pxa_smi_softc *sc; | ||||
struct smi_ivars *smid; | struct smi_ivars *smid; | ||||
struct resource *rv; | struct resource *rv; | ||||
struct resource_list *rl; | struct resource_list *rl; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
int needactivate; | int needactivate; | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |