Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/siba/siba_pcib.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
* TODO: implement resource managers. | * TODO: implement resource managers. | ||||
* TODO: code cleanup. | * TODO: code cleanup. | ||||
*/ | */ | ||||
static int siba_pcib_activate_resource(device_t, device_t, int, | static int siba_pcib_activate_resource(device_t, device_t, int, | ||||
int, struct resource *); | int, struct resource *); | ||||
static struct resource * | static struct resource * | ||||
siba_pcib_alloc_resource(device_t, device_t, int, int *, | siba_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 siba_pcib_attach(device_t); | static int siba_pcib_attach(device_t); | ||||
static int siba_pcib_deactivate_resource(device_t, device_t, int, | static int siba_pcib_deactivate_resource(device_t, device_t, int, | ||||
int, struct resource *); | int, struct resource *); | ||||
static int siba_pcib_maxslots(device_t); | static int siba_pcib_maxslots(device_t); | ||||
static int siba_pcib_probe(device_t); | static int siba_pcib_probe(device_t); | ||||
static u_int32_t | static u_int32_t | ||||
siba_pcib_read_config(device_t, u_int, u_int, u_int, u_int, | siba_pcib_read_config(device_t, u_int, u_int, u_int, u_int, | ||||
int); | int); | ||||
▲ Show 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | |||||
void *cookie) | void *cookie) | ||||
{ | { | ||||
return (BUS_TEARDOWN_INTR(device_get_parent(dev), child, vec, cookie)); | return (BUS_TEARDOWN_INTR(device_get_parent(dev), child, vec, cookie)); | ||||
} | } | ||||
static struct resource * | static struct resource * | ||||
siba_pcib_alloc_resource(device_t bus, device_t child, int type, int *rid, | siba_pcib_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) | ||||
{ | { | ||||
#if 1 | #if 1 | ||||
//device_printf(bus, "%s: not yet implemented\n", __func__); | //device_printf(bus, "%s: not yet implemented\n", __func__); | ||||
return (NULL); | return (NULL); | ||||
#else | #else | ||||
bus_space_tag_t tag; | bus_space_tag_t tag; | ||||
struct siba_pcib_softc *sc = device_get_softc(bus); | struct siba_pcib_softc *sc = device_get_softc(bus); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |