Deleted Added
full compact
aac.c (117126) aac.c (117361)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/aac/aac.c 117126 2003-07-01 15:52:06Z scottl $
29 * $FreeBSD: head/sys/dev/aac/aac.c 117361 2003-07-09 19:19:16Z scottl $
30 */
31
32/*
33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
34 */
35
36#include "opt_aac.h"
37

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

1544 ip->AdapterFibsVirtualAddress = 0;
1545 ip->AdapterFibsSize = AAC_ADAPTER_FIBS * sizeof(struct aac_fib);
1546 ip->AdapterFibAlign = sizeof(struct aac_fib);
1547
1548 ip->PrintfBufferAddress = sc->aac_common_busaddr +
1549 offsetof(struct aac_common, ac_printf);
1550 ip->PrintfBufferSize = AAC_PRINTF_BUFSIZE;
1551
30 */
31
32/*
33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters.
34 */
35
36#include "opt_aac.h"
37

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

1544 ip->AdapterFibsVirtualAddress = 0;
1545 ip->AdapterFibsSize = AAC_ADAPTER_FIBS * sizeof(struct aac_fib);
1546 ip->AdapterFibAlign = sizeof(struct aac_fib);
1547
1548 ip->PrintfBufferAddress = sc->aac_common_busaddr +
1549 offsetof(struct aac_common, ac_printf);
1550 ip->PrintfBufferSize = AAC_PRINTF_BUFSIZE;
1551
1552 /* The adapter assumes that pages are 4K in size */
1552 /*
1553 * The adapter assumes that pages are 4K in size, except on some
1554 * broken firmware versions that do the page->byte conversion twice,
1555 * therefore 'assuming' that this value is in 16MB units (2^24).
1556 * Round up since the granularity is so high.
1557 */
1553 ip->HostPhysMemPages = ctob(physmem) / AAC_PAGE_SIZE;
1558 ip->HostPhysMemPages = ctob(physmem) / AAC_PAGE_SIZE;
1559 if (sc->flags & AAC_FLAGS_BROKEN_MEMMAP) {
1560 ip->HostPhysMemPages =
1561 (ip->HostPhysMemPages + AAC_PAGE_SIZE) / AAC_PAGE_SIZE;
1554 ip->HostElapsedSeconds = time_second; /* reset later if invalid */
1555
1556 /*
1557 * Initialise FIB queues. Note that it appears that the layout of the
1558 * indexes and the segmentation of the entries may be mandated by the
1559 * adapter, which is only told about the base of the queue index fields.
1560 *
1561 * The initial values of the indices are assumed to inform the adapter

--- 1412 unchanged lines hidden ---
1562 ip->HostElapsedSeconds = time_second; /* reset later if invalid */
1563
1564 /*
1565 * Initialise FIB queues. Note that it appears that the layout of the
1566 * indexes and the segmentation of the entries may be mandated by the
1567 * adapter, which is only told about the base of the queue index fields.
1568 *
1569 * The initial values of the indices are assumed to inform the adapter

--- 1412 unchanged lines hidden ---