Deleted Added
full compact
isa.c (218075) isa.c (221526)
1/*-
2 * Copyright (c) 2009 Marcel Moolenaar
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
20 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Marcel Moolenaar
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
20 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/powerpc/mpc85xx/isa.c 218075 2011-01-29 20:58:38Z marcel $");
27__FBSDID("$FreeBSD: head/sys/powerpc/mpc85xx/isa.c 221526 2011-05-06 13:48:53Z jhb $");
28
29#include <sys/param.h>
30#include <sys/bus.h>
31#include <sys/malloc.h>
32#include <machine/bus.h>
33#include <sys/rman.h>
34
35#include <machine/intr_machdep.h>

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

77isa_release_resource(device_t bus, device_t child, int type, int rid,
78 struct resource *r)
79{
80 struct isa_device* idev = DEVTOISA(child);
81 struct resource_list *rl = &idev->id_resources;
82
83 return (resource_list_release(rl, bus, child, type, rid, r));
84}
28
29#include <sys/param.h>
30#include <sys/bus.h>
31#include <sys/malloc.h>
32#include <machine/bus.h>
33#include <sys/rman.h>
34
35#include <machine/intr_machdep.h>

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

77isa_release_resource(device_t bus, device_t child, int type, int rid,
78 struct resource *r)
79{
80 struct isa_device* idev = DEVTOISA(child);
81 struct resource_list *rl = &idev->id_resources;
82
83 return (resource_list_release(rl, bus, child, type, rid, r));
84}
85
86int
87isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
88 driver_filter_t filter, void (*ihand)(void *), void *arg, void **cookiep)
89{
90
91 return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags,
92 filter, ihand, arg, cookiep));
93}
94
95int
96isa_teardown_intr(device_t bus, device_t child, struct resource *r,
97 void *cookie)
98{
99
100 return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie));
101}