bus_if.m (295755) | bus_if.m (296336) |
---|---|
1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# | 1#- 2# Copyright (c) 1998-2004 Doug Rabson 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/sys/kern/bus_if.m 295755 2016-02-18 13:00:04Z zbb $ | 26# $FreeBSD: head/sys/kern/bus_if.m 296336 2016-03-03 05:07:35Z jhibbits $ |
27# 28 29#include <sys/types.h> 30#include <sys/systm.h> 31#include <sys/bus.h> 32 33/** 34 * @defgroup BUS bus - KObj methods for drivers of devices with children --- 207 unchanged lines hidden (view full) --- 242 * activated immediately, the caller is responsible for calling 243 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource. 244 * 245 * @param _dev the parent device of @p _child 246 * @param _child the device which is requesting an allocation 247 * @param _type the type of resource to allocate 248 * @param _rid a pointer to the resource identifier 249 * @param _start hint at the start of the resource range - pass | 27# 28 29#include <sys/types.h> 30#include <sys/systm.h> 31#include <sys/bus.h> 32 33/** 34 * @defgroup BUS bus - KObj methods for drivers of devices with children --- 207 unchanged lines hidden (view full) --- 242 * activated immediately, the caller is responsible for calling 243 * BUS_ACTIVATE_RESOURCE() when it actually uses the resource. 244 * 245 * @param _dev the parent device of @p _child 246 * @param _child the device which is requesting an allocation 247 * @param _type the type of resource to allocate 248 * @param _rid a pointer to the resource identifier 249 * @param _start hint at the start of the resource range - pass |
250 * @c 0UL for any start address | 250 * @c 0 for any start address |
251 * @param _end hint at the end of the resource range - pass | 251 * @param _end hint at the end of the resource range - pass |
252 * @c ~0UL for any end address | 252 * @c ~0 for any end address |
253 * @param _count hint at the size of range required - pass @c 1 254 * for any size 255 * @param _flags any extra flags to control the resource 256 * allocation - see @c RF_XXX flags in 257 * <sys/rman.h> for details 258 * 259 * @returns the resource which was allocated or @c NULL if no 260 * resource could be allocated --- 460 unchanged lines hidden --- | 253 * @param _count hint at the size of range required - pass @c 1 254 * for any size 255 * @param _flags any extra flags to control the resource 256 * allocation - see @c RF_XXX flags in 257 * <sys/rman.h> for details 258 * 259 * @returns the resource which was allocated or @c NULL if no 260 * resource could be allocated --- 460 unchanged lines hidden --- |