Deleted Added
full compact
ida_pci.c (227843) ida_pci.c (232854)
1/*-
2 * Copyright (c) 1999,2000 Jonathan Lemon
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) 1999,2000 Jonathan Lemon
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/dev/ida/ida_pci.c 227843 2011-11-22 21:28:20Z marius $");
28__FBSDID("$FreeBSD: head/sys/dev/ida/ida_pci.c 232854 2012-03-12 08:03:51Z scottl $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34
35#include <sys/bio.h>
36#include <sys/bus.h>

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

262 ida->regs = bus_alloc_resource_any(dev, ida->regs_res_type,
263 &ida->regs_res_id, RF_ACTIVE);
264 if (ida->regs == NULL) {
265 device_printf(dev, "can't allocate memory resources\n");
266 return (ENOMEM);
267 }
268
269 error = bus_dma_tag_create(
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34
35#include <sys/bio.h>
36#include <sys/bus.h>

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

262 ida->regs = bus_alloc_resource_any(dev, ida->regs_res_type,
263 &ida->regs_res_id, RF_ACTIVE);
264 if (ida->regs == NULL) {
265 device_printf(dev, "can't allocate memory resources\n");
266 return (ENOMEM);
267 }
268
269 error = bus_dma_tag_create(
270 /* parent */ NULL,
270 /* parent */ bus_get_dma_tag(dev),
271 /* alignment */ 1,
272 /* boundary */ 0,
273 /* lowaddr */ BUS_SPACE_MAXADDR_32BIT,
274 /* highaddr */ BUS_SPACE_MAXADDR,
275 /* filter */ NULL,
276 /* filterarg */ NULL,
277 /* maxsize */ MAXBSIZE,
278 /* nsegments */ IDA_NSEG,

--- 39 unchanged lines hidden ---
271 /* alignment */ 1,
272 /* boundary */ 0,
273 /* lowaddr */ BUS_SPACE_MAXADDR_32BIT,
274 /* highaddr */ BUS_SPACE_MAXADDR,
275 /* filter */ NULL,
276 /* filterarg */ NULL,
277 /* maxsize */ MAXBSIZE,
278 /* nsegments */ IDA_NSEG,

--- 39 unchanged lines hidden ---