Deleted Added
full compact
bus.h (212213) bus.h (212413)
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 212213 2010-09-04 17:28:29Z avg $
26 * $FreeBSD: head/sys/sys/bus.h 212413 2010-09-10 11:19:03Z avg $
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32#include <machine/_limits.h>
33#include <sys/_bus_dma.h>
34

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

293
294/*
295 * Useful functions for implementing busses.
296 */
297
298int bus_generic_activate_resource(device_t dev, device_t child, int type,
299 int rid, struct resource *r);
300device_t
27 */
28
29#ifndef _SYS_BUS_H_
30#define _SYS_BUS_H_
31
32#include <machine/_limits.h>
33#include <sys/_bus_dma.h>
34

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

293
294/*
295 * Useful functions for implementing busses.
296 */
297
298int bus_generic_activate_resource(device_t dev, device_t child, int type,
299 int rid, struct resource *r);
300device_t
301 bus_generic_add_child(device_t dev, int order, const char *name,
301 bus_generic_add_child(device_t dev, u_int order, const char *name,
302 int unit);
303struct resource *
304 bus_generic_alloc_resource(device_t bus, device_t child, int type,
305 int *rid, u_long start, u_long end,
306 u_long count, u_int flags);
307int bus_generic_attach(device_t dev);
308int bus_generic_bind_intr(device_t dev, device_t child,
309 struct resource *irq, int cpu);

--- 456 unchanged lines hidden ---
302 int unit);
303struct resource *
304 bus_generic_alloc_resource(device_t bus, device_t child, int type,
305 int *rid, u_long start, u_long end,
306 u_long count, u_int flags);
307int bus_generic_attach(device_t dev);
308int bus_generic_bind_intr(device_t dev, device_t child,
309 struct resource *irq, int cpu);

--- 456 unchanged lines hidden ---