aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/isa_if.m
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-10-12 21:35:51 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-10-12 21:35:51 +0000
commit25afb89b1c410451fcfc5cbeed8535fcc660dd66 (patch)
tree8eaacbe4f132a095dfe6be00173bd751633a034d /sys/isa/isa_if.m
parent228ace6ebf0bdddf0368f7d3744c441a44a59c76 (diff)
downloadsrc-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/isa/isa_if.m')
-rw-r--r--sys/isa/isa_if.m36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/isa/isa_if.m b/sys/isa/isa_if.m
index 2c3ab0f09c04..80cc6d273d58 100644
--- a/sys/isa/isa_if.m
+++ b/sys/isa/isa_if.m
@@ -33,42 +33,6 @@ CODE {
INTERFACE isa;
#
-# Set the range used for a particular resource. Return EINVAL if
-# the type or rid are out of range.
-#
-METHOD int set_resource {
- device_t dev;
- device_t child;
- int type;
- int rid;
- u_long start;
- u_long count;
-};
-
-#
-# Get the range for a resource. Return ENOENT if the type or rid are
-# out of range or have not been set.
-#
-METHOD int get_resource {
- device_t dev;
- device_t child;
- int type;
- int rid;
- u_long *startp;
- u_long *countp;
-};
-
-#
-# Delete a resource.
-#
-METHOD void delete_resource {
- device_t dev;
- device_t child;
- int type;
- int rid;
-};
-
-#
# Add a Plug-and-play configuration to the device. Configurations with
# a lower priority are preferred.
#