Date: Wed, 11 Aug 2004 18:27:15 GMT From: Scott Long <scottl@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 59422 for review Message-ID: <200408111827.i7BIRFHB081147@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=59422 Change 59422 by scottl@scottl-wv1u on 2004/08/11 18:26:19 Add the default implemetation of bus_reserve_resource(). Gah, the amount of work needed to add a single newbus method here is staggering! Affected files ... .. //depot/projects/newint/sys/kern/subr_bus.c#5 edit Differences ... ==== //depot/projects/newint/sys/kern/subr_bus.c#5 (text+ko) ==== @@ -3103,6 +3103,22 @@ */ /** + * @brief Wrapper function for BUS_RESERVE_RESOURCE(). + * + * This function simply calls the BUS_RESERVE_RESOURCE() method of the + * parent of @p dev. + */ +int +bus_reserve_resource(device_t dev, int type, int *start, int *count, + int flags) +{ + if (dev->parent == 0) + return (0); + return (BUS_RESERVE_RESOURCE(dev->parent, dev, type, start, count, + flags)); +} + +/** * @brief Wrapper function for BUS_ALLOC_RESOURCE(). * * This function simply calls the BUS_ALLOC_RESOURCE() method of the
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408111827.i7BIRFHB081147>