hptiop.c (230719) | hptiop.c (233024) |
---|---|
1/* 2 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2008 HighPoint Technologies, Inc. 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 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2008 HighPoint Technologies, Inc. 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: stable/9/sys/dev/hptiop/hptiop.c 230719 2012-01-29 01:40:37Z marius $"); | 28__FBSDID("$FreeBSD: stable/9/sys/dev/hptiop/hptiop.c 233024 2012-03-16 08:46:58Z scottl $"); |
29 30#include <sys/param.h> 31#include <sys/types.h> 32#include <sys/cons.h> 33#if (__FreeBSD_version >= 500000) 34#include <sys/time.h> 35#include <sys/systm.h> 36#else --- 1316 unchanged lines hidden (view full) --- 1353 device_printf(dev, "adapter is not ready\n"); 1354 goto release_pci_res; 1355 } 1356 1357#if (__FreeBSD_version >= 500000) 1358 mtx_init(&hba->lock, "hptioplock", NULL, MTX_DEF); 1359#endif 1360 | 29 30#include <sys/param.h> 31#include <sys/types.h> 32#include <sys/cons.h> 33#if (__FreeBSD_version >= 500000) 34#include <sys/time.h> 35#include <sys/systm.h> 36#else --- 1316 unchanged lines hidden (view full) --- 1353 device_printf(dev, "adapter is not ready\n"); 1354 goto release_pci_res; 1355 } 1356 1357#if (__FreeBSD_version >= 500000) 1358 mtx_init(&hba->lock, "hptioplock", NULL, MTX_DEF); 1359#endif 1360 |
1361 if (bus_dma_tag_create(NULL,/* parent */ | 1361 if (bus_dma_tag_create(bus_get_dma_tag(dev),/* PCI parent */ |
1362 1, /* alignment */ 1363 0, /* boundary */ 1364 BUS_SPACE_MAXADDR, /* lowaddr */ 1365 BUS_SPACE_MAXADDR, /* highaddr */ 1366 NULL, NULL, /* filter, filterarg */ 1367 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */ 1368 BUS_SPACE_UNRESTRICTED, /* nsegments */ 1369 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */ --- 844 unchanged lines hidden --- | 1362 1, /* alignment */ 1363 0, /* boundary */ 1364 BUS_SPACE_MAXADDR, /* lowaddr */ 1365 BUS_SPACE_MAXADDR, /* highaddr */ 1366 NULL, NULL, /* filter, filterarg */ 1367 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */ 1368 BUS_SPACE_UNRESTRICTED, /* nsegments */ 1369 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */ --- 844 unchanged lines hidden --- |