diff options
author | marius <marius@FreeBSD.org> | 2005-05-19 15:09:56 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2005-05-19 15:09:56 +0000 |
commit | 17d8b2d200c2f0c379d2960e3ceb811b06639058 (patch) | |
tree | 3abb41777956776b59698495c7e95f987af59a34 /sys/sparc64 | |
parent | 369465f2f2ddf0668404023fef0cdd9d504450c2 (diff) | |
download | FreeBSD-src-17d8b2d200c2f0c379d2960e3ceb811b06639058.zip FreeBSD-src-17d8b2d200c2f0c379d2960e3ceb811b06639058.tar.gz |
- Add suport for the bus_get_resource() device interface method to
central(4) and fhc(4) by using bus_generic_rl_get_resource().
- Remove some superfluous breaks in central.c
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/central/central.c | 4 | ||||
-rw-r--r-- | sys/sparc64/fhc/fhc_central.c | 1 | ||||
-rw-r--r-- | sys/sparc64/fhc/fhc_nexus.c | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/central/central.c b/sys/sparc64/central/central.c index 7a6005b..ef3ef37 100644 --- a/sys/sparc64/central/central.c +++ b/sys/sparc64/central/central.c @@ -88,6 +88,7 @@ static device_method_t central_methods[] = { DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), DEVMETHOD(bus_get_resource_list, central_get_resource_list), + DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_compat, central_get_compat), @@ -234,7 +235,6 @@ central_alloc_resource(device_t bus, device_t child, int type, int *rid, case SYS_RES_IRQ: return (resource_list_alloc(rl, bus, child, type, rid, start, end, count, flags)); - break; case SYS_RES_MEMORY: if (!passthrough) { rle = resource_list_find(rl, type, *rid); @@ -265,8 +265,6 @@ central_alloc_resource(device_t bus, device_t child, int type, int *rid, } } break; - default: - break; } return (res); } diff --git a/sys/sparc64/fhc/fhc_central.c b/sys/sparc64/fhc/fhc_central.c index a9487b4..a63fb3e 100644 --- a/sys/sparc64/fhc/fhc_central.c +++ b/sys/sparc64/fhc/fhc_central.c @@ -62,6 +62,7 @@ static device_method_t fhc_central_methods[] = { DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), DEVMETHOD(bus_get_resource_list, fhc_get_resource_list), + DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_compat, fhc_get_compat), diff --git a/sys/sparc64/fhc/fhc_nexus.c b/sys/sparc64/fhc/fhc_nexus.c index dd09d11..c6c2860 100644 --- a/sys/sparc64/fhc/fhc_nexus.c +++ b/sys/sparc64/fhc/fhc_nexus.c @@ -65,6 +65,7 @@ static device_method_t fhc_nexus_methods[] = { DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), DEVMETHOD(bus_deactivate_resource, bus_generic_deactivate_resource), DEVMETHOD(bus_get_resource_list, fhc_get_resource_list), + DEVMETHOD(bus_get_resource, bus_generic_rl_get_resource), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_compat, fhc_get_compat), |