diff options
author | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:40:34 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2004-03-17 17:40:34 +0000 |
commit | bdffb39f34bd7a9d4551675f2e9af3b813234964 (patch) | |
tree | 8e2191055cba88f9b4c2d1c6fb02b19de9db70a6 /sys | |
parent | 03886b36818b5e5b17b03abee300f329bc2ff730 (diff) |
Notes
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/bus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h index 79d4d15764a44..ff260ed54cd69 100644 --- a/sys/sys/bus.h +++ b/sys/sys/bus.h @@ -309,6 +309,12 @@ int bus_child_present(device_t child); int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen); int bus_child_location_str(device_t child, char *buf, size_t buflen); +static __inline struct resource * +bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags) +{ + return (bus_alloc_resource(dev, type, rid, 0ul, ~0ul, 1, flags)); +} + /* * Access functions for device. */ |