summaryrefslogtreecommitdiffstats
path: root/sys/kern/bus_if.m
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-07-21 03:28:43 +0000
committerimp <imp@FreeBSD.org>2002-07-21 03:28:43 +0000
commit30ec4e72722c97aebb1484546143c06ce494b330 (patch)
treee901a3d2cd9d0f23ff50c0caafc7d8f4c7b106ce /sys/kern/bus_if.m
parent4a190d70152293c089b8a53c82687bd958d61e6f (diff)
downloadFreeBSD-src-30ec4e72722c97aebb1484546143c06ce494b330.zip
FreeBSD-src-30ec4e72722c97aebb1484546143c06ce494b330.tar.gz
Add bus_child_present and the child_present method to bus_if.m
Diffstat (limited to 'sys/kern/bus_if.m')
-rw-r--r--sys/kern/bus_if.m15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/kern/bus_if.m b/sys/kern/bus_if.m
index bf8d4ac..c5350be 100644
--- a/sys/kern/bus_if.m
+++ b/sys/kern/bus_if.m
@@ -36,11 +36,10 @@ INTERFACE bus;
CODE {
static struct resource *
null_alloc_resource(device_t dev, device_t child,
- int type, int *rid,
- u_long start, u_long end,
- u_long count, u_int flags)
+ int type, int *rid, u_long start, u_long end,
+ u_long count, u_int flags)
{
- return 0;
+ return (0);
}
};
@@ -244,3 +243,11 @@ METHOD struct resource_list * get_resource_list {
device_t _dev;
device_t _child;
} DEFAULT bus_generic_get_resource_list;
+
+#
+# Is the hardware described by _child still attached to the system?
+#
+METHOD int child_present {
+ device_t _dev;
+ device_t _child;
+} DEFAULT bus_generic_child_present;
OpenPOWER on IntegriCloud