diff options
author | Doug Rabson <dfr@FreeBSD.org> | 1999-10-12 21:35:51 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 1999-10-12 21:35:51 +0000 |
commit | 25afb89b1c410451fcfc5cbeed8535fcc660dd66 (patch) | |
tree | 8eaacbe4f132a095dfe6be00173bd751633a034d /sys/contrib | |
parent | 228ace6ebf0bdddf0368f7d3744c441a44a59c76 (diff) | |
download | src-25afb89b1c410451fcfc5cbeed8535fcc660dd66.tar.gz src-25afb89b1c410451fcfc5cbeed8535fcc660dd66.zip |
* Add struct resource_list* argument to resource_list_alloc and
resource_list_release. This removes the dependancy on the
layout of ivars.
* Move set_resource, get_resource and delete_resource from
isa_if.m to bus_if.m.
* Simplify driver code by providing wrappers to those methods:
bus_set_resource(dev, type, rid, start, count);
bus_get_resource(dev, type, rid, startp, countp);
bus_get_resource_start(dev, type, rid);
bus_get_resource_count(dev, type, rid);
bus_delete_resource(dev, type, rid);
* Delete isa_get_rsrc and use bus_get_resource_start instead.
* Fix a stupid typo in isa_alloc_resource reported by Takahashi
Yoshihiro <nyan@FreeBSD.org>.
* Print a diagnostic message if we can't assign resources to a PnP
device.
* Change device_print_prettyname() so that it doesn't print
"(no driver assigned)-1" for anonymous devices.
Notes
Notes:
svn path=/head/; revision=52174
Diffstat (limited to 'sys/contrib')
-rw-r--r-- | sys/contrib/dev/fla/fla.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/contrib/dev/fla/fla.c b/sys/contrib/dev/fla/fla.c index a115244b56d7..9de44eeeb135 100644 --- a/sys/contrib/dev/fla/fla.c +++ b/sys/contrib/dev/fla/fla.c @@ -260,7 +260,6 @@ flaprobe (device_t dev) { int unit; struct fla_s *sc; - device_t bus; int i; unit = device_get_unit(dev); @@ -275,8 +274,7 @@ flaprobe (device_t dev) if (i) return (ENXIO); - bus = device_get_parent(dev); - ISA_SET_RESOURCE(bus, dev, SYS_RES_MEMORY, 0, + bus_set_resource(dev, SYS_RES_MEMORY, 0, sc->ds.window - KERNBASE, 8192); return (0); |