Deleted Added
full compact
subr_bus.c (295832) subr_bus.c (296336)
1/*-
2 * Copyright (c) 1997,1998,2003 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

--- 11 unchanged lines hidden (view full) ---

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
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997,1998,2003 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

--- 11 unchanged lines hidden (view full) ---

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/kern/subr_bus.c 295832 2016-02-20 01:32:58Z jhibbits $");
28__FBSDID("$FreeBSD: head/sys/kern/subr_bus.c 296336 2016-03-03 05:07:35Z jhibbits $");
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/filio.h>
35#include <sys/lock.h>
36#include <sys/kernel.h>

--- 3194 unchanged lines hidden (view full) ---

3231 * the parent bus by calling resource_list_unreserve().
3232 *
3233 * @param rl the resource list to allocate from
3234 * @param bus the parent device of @p child
3235 * @param child the device for which the resource is being reserved
3236 * @param type the type of resource to allocate
3237 * @param rid a pointer to the resource identifier
3238 * @param start hint at the start of the resource range - pass
29
30#include "opt_bus.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/filio.h>
35#include <sys/lock.h>
36#include <sys/kernel.h>

--- 3194 unchanged lines hidden (view full) ---

3231 * the parent bus by calling resource_list_unreserve().
3232 *
3233 * @param rl the resource list to allocate from
3234 * @param bus the parent device of @p child
3235 * @param child the device for which the resource is being reserved
3236 * @param type the type of resource to allocate
3237 * @param rid a pointer to the resource identifier
3238 * @param start hint at the start of the resource range - pass
3239 * @c 0UL for any start address
3239 * @c 0 for any start address
3240 * @param end hint at the end of the resource range - pass
3240 * @param end hint at the end of the resource range - pass
3241 * @c ~0UL for any end address
3241 * @c ~0 for any end address
3242 * @param count hint at the size of range required - pass @c 1
3243 * for any size
3244 * @param flags any extra flags to control the resource
3245 * allocation - see @c RF_XXX flags in
3246 * <sys/rman.h> for details
3247 *
3248 * @returns the resource which was allocated or @c NULL if no
3249 * resource could be allocated

--- 38 unchanged lines hidden (view full) ---

3288 * then call resource_list_alloc() to perform the allocation.
3289 *
3290 * @param rl the resource list to allocate from
3291 * @param bus the parent device of @p child
3292 * @param child the device which is requesting an allocation
3293 * @param type the type of resource to allocate
3294 * @param rid a pointer to the resource identifier
3295 * @param start hint at the start of the resource range - pass
3242 * @param count hint at the size of range required - pass @c 1
3243 * for any size
3244 * @param flags any extra flags to control the resource
3245 * allocation - see @c RF_XXX flags in
3246 * <sys/rman.h> for details
3247 *
3248 * @returns the resource which was allocated or @c NULL if no
3249 * resource could be allocated

--- 38 unchanged lines hidden (view full) ---

3288 * then call resource_list_alloc() to perform the allocation.
3289 *
3290 * @param rl the resource list to allocate from
3291 * @param bus the parent device of @p child
3292 * @param child the device which is requesting an allocation
3293 * @param type the type of resource to allocate
3294 * @param rid a pointer to the resource identifier
3295 * @param start hint at the start of the resource range - pass
3296 * @c 0UL for any start address
3296 * @c 0 for any start address
3297 * @param end hint at the end of the resource range - pass
3297 * @param end hint at the end of the resource range - pass
3298 * @c ~0UL for any end address
3298 * @c ~0 for any end address
3299 * @param count hint at the size of range required - pass @c 1
3300 * for any size
3301 * @param flags any extra flags to control the resource
3302 * allocation - see @c RF_XXX flags in
3303 * <sys/rman.h> for details
3304 *
3305 * @returns the resource which was allocated or @c NULL if no
3306 * resource could be allocated

--- 2038 unchanged lines hidden ---
3299 * @param count hint at the size of range required - pass @c 1
3300 * for any size
3301 * @param flags any extra flags to control the resource
3302 * allocation - see @c RF_XXX flags in
3303 * <sys/rman.h> for details
3304 *
3305 * @returns the resource which was allocated or @c NULL if no
3306 * resource could be allocated

--- 2038 unchanged lines hidden ---