Deleted Added
full compact
isa.c (204309) isa.c (221526)
1/*-
2 * Copyright (c) 1998 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) 1998 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/x86/isa/isa.c 204309 2010-02-25 14:13:39Z attilio $");
28__FBSDID("$FreeBSD: head/sys/x86/isa/isa.c 221526 2011-05-06 13:48:53Z jhb $");
29
30/*-
31 * Modifications for Intel architecture by Garrett A. Wollman.
32 * Copyright 1998 Massachusetts Institute of Technology
33 *
34 * Permission to use, copy, modify, and distribute this software and
35 * its documentation for any purpose and without fee is hereby
36 * granted, provided that both the above copyright notice and this

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

233 free(bh->bsh_res, M_DEVBUF);
234 }
235 }
236#endif
237 return resource_list_release(rl, bus, child, type, rid, r);
238}
239
240/*
29
30/*-
31 * Modifications for Intel architecture by Garrett A. Wollman.
32 * Copyright 1998 Massachusetts Institute of Technology
33 *
34 * Permission to use, copy, modify, and distribute this software and
35 * its documentation for any purpose and without fee is hereby
36 * granted, provided that both the above copyright notice and this

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

233 free(bh->bsh_res, M_DEVBUF);
234 }
235 }
236#endif
237 return resource_list_release(rl, bus, child, type, rid, r);
238}
239
240/*
241 * We can't use the bus_generic_* versions of these methods because those
242 * methods always pass the bus param as the requesting device, and we need
243 * to pass the child (the i386 nexus knows about this and is prepared to
244 * deal).
245 */
246int
247isa_setup_intr(device_t bus, device_t child, struct resource *r, int flags,
248 driver_filter_t *filter, void (*ihand)(void *), void *arg,
249 void **cookiep)
250{
251 return (BUS_SETUP_INTR(device_get_parent(bus), child, r, flags,
252 filter, ihand, arg, cookiep));
253}
254
255int
256isa_teardown_intr(device_t bus, device_t child, struct resource *r,
257 void *cookie)
258{
259 return (BUS_TEARDOWN_INTR(device_get_parent(bus), child, r, cookie));
260}
261
262/*
263 * On this platform, isa can also attach to the legacy bus.
264 */
265DRIVER_MODULE(isa, legacy, isa_driver, isa_devclass, 0, 0);
241 * On this platform, isa can also attach to the legacy bus.
242 */
243DRIVER_MODULE(isa, legacy, isa_driver, isa_devclass, 0, 0);