Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/scc/scc_core.c
Context not available. | |||||
struct scc_softc *sc, *sc0; | struct scc_softc *sc, *sc0; | ||||
const char *sep; | const char *sep; | ||||
bus_space_handle_t bh; | bus_space_handle_t bh; | ||||
u_long base, size, start, sz; | rman_res_t base, size, start, sz; | ||||
int c, error, mode, sysdev; | int c, error, mode, sysdev; | ||||
/* | /* | ||||
Context not available. | |||||
struct resource * | struct resource * | ||||
scc_bus_alloc_resource(device_t dev, device_t child, int type, int *rid, | scc_bus_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 resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
struct scc_chan *ch; | struct scc_chan *ch; | ||||
Context not available. | |||||
return (NULL); | return (NULL); | ||||
/* We only support default allocations. */ | /* We only support default allocations. */ | ||||
if (start != 0UL || end != ~0UL) | if (start != 0 || end != ~0) | ||||
return (NULL); | return (NULL); | ||||
m = device_get_ivars(child); | m = device_get_ivars(child); | ||||
Context not available. | |||||
int | int | ||||
scc_bus_get_resource(device_t dev, device_t child, int type, int rid, | scc_bus_get_resource(device_t dev, device_t child, int type, int rid, | ||||
u_long *startp, u_long *countp) | rman_res_t *startp, rman_res_t *countp) | ||||
{ | { | ||||
struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
struct scc_chan *ch; | struct scc_chan *ch; | ||||
Context not available. |