Changeset View
Changeset View
Standalone View
Standalone View
head/sys/powerpc/powermac/macio.c
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
static MALLOC_DEFINE(M_MACIO, "macio", "macio device information"); | static MALLOC_DEFINE(M_MACIO, "macio", "macio device information"); | ||||
static int macio_probe(device_t); | static int macio_probe(device_t); | ||||
static int macio_attach(device_t); | static int macio_attach(device_t); | ||||
static int macio_print_child(device_t dev, device_t child); | static int macio_print_child(device_t dev, device_t child); | ||||
static void macio_probe_nomatch(device_t, device_t); | static void macio_probe_nomatch(device_t, device_t); | ||||
static struct resource *macio_alloc_resource(device_t, device_t, int, int *, | static struct resource *macio_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 macio_activate_resource(device_t, device_t, int, int, | static int macio_activate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static int macio_deactivate_resource(device_t, device_t, int, int, | static int macio_deactivate_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static int macio_release_resource(device_t, device_t, int, int, | static int macio_release_resource(device_t, device_t, int, int, | ||||
struct resource *); | struct resource *); | ||||
static struct resource_list *macio_get_resource_list (device_t, device_t); | static struct resource_list *macio_get_resource_list (device_t, device_t); | ||||
static ofw_bus_get_devinfo_t macio_get_devinfo; | static ofw_bus_get_devinfo_t macio_get_devinfo; | ||||
▲ Show 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | if (bootverbose) { | ||||
resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld"); | resource_list_print_type(rl, "irq", SYS_RES_IRQ, "%ld"); | ||||
printf(" (no driver attached)\n"); | printf(" (no driver attached)\n"); | ||||
} | } | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
macio_alloc_resource(device_t bus, device_t child, int type, int *rid, | macio_alloc_resource(device_t bus, 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 macio_softc *sc; | struct macio_softc *sc; | ||||
int needactivate; | int needactivate; | ||||
struct resource *rv; | struct resource *rv; | ||||
struct rman *rm; | struct rman *rm; | ||||
u_long adjstart, adjend, adjcount; | u_long adjstart, adjend, adjcount; | ||||
struct macio_devinfo *dinfo; | struct macio_devinfo *dinfo; | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |