Deleted Added
full compact
bus.h (296136) bus.h (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

--- 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) 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

--- 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/sys/bus.h 296136 2016-02-27 03:35:28Z jhibbits $
26 * $FreeBSD: head/sys/sys/bus.h 296336 2016-03-03 05:07:35Z jhibbits $
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32#include <machine/_limits.h>
33#include <machine/_bus.h>
34#include <sys/_bus_dma.h>

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

473int bus_child_present(device_t child);
474int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen);
475int bus_child_location_str(device_t child, char *buf, size_t buflen);
476void bus_enumerate_hinted_children(device_t bus);
477
478static __inline struct resource *
479bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags)
480{
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32#include <machine/_limits.h>
33#include <machine/_bus.h>
34#include <sys/_bus_dma.h>

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

473int bus_child_present(device_t child);
474int bus_child_pnpinfo_str(device_t child, char *buf, size_t buflen);
475int bus_child_location_str(device_t child, char *buf, size_t buflen);
476void bus_enumerate_hinted_children(device_t bus);
477
478static __inline struct resource *
479bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags)
480{
481 return (bus_alloc_resource(dev, type, rid, 0ul, ~0ul, 1, flags));
481 return (bus_alloc_resource(dev, type, rid, 0, ~0, 1, flags));
482}
483
484static __inline struct resource *
485bus_alloc_resource_anywhere(device_t dev, int type, int *rid,
486 rman_res_t count, u_int flags)
487{
482}
483
484static __inline struct resource *
485bus_alloc_resource_anywhere(device_t dev, int type, int *rid,
486 rman_res_t count, u_int flags)
487{
488 return (bus_alloc_resource(dev, type, rid, 0ul, ~0ul, count, flags));
488 return (bus_alloc_resource(dev, type, rid, 0, ~0, count, flags));
489}
490
491/*
492 * Access functions for device.
493 */
494device_t device_add_child(device_t dev, const char *name, int unit);
495device_t device_add_child_ordered(device_t dev, u_int order,
496 const char *name, int unit);

--- 378 unchanged lines hidden ---
489}
490
491/*
492 * Access functions for device.
493 */
494device_t device_add_child(device_t dev, const char *name, int unit);
495device_t device_add_child_ordered(device_t dev, u_int order,
496 const char *name, int unit);

--- 378 unchanged lines hidden ---