aac.c (177462) | aac.c (177463) |
---|---|
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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> | 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 --- 14 unchanged lines hidden (view full) --- 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 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/aac/aac.c 177462 2008-03-20 17:59:19Z emaste $"); | 31__FBSDID("$FreeBSD: head/sys/dev/aac/aac.c 177463 2008-03-20 20:33:48Z emaste $"); |
32 33/* 34 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 35 */ 36#define AAC_DRIVER_VERSION 0x02000000 37#define AAC_DRIVERNAME "aac" 38 39#include "opt_aac.h" --- 2000 unchanged lines hidden (view full) --- 2040 * Set up the sync FIB 2041 */ 2042 fib->Header.XferState = AAC_FIBSTATE_HOSTOWNED | 2043 AAC_FIBSTATE_INITIALISED | 2044 AAC_FIBSTATE_EMPTY; 2045 fib->Header.XferState |= xferstate; 2046 fib->Header.Command = command; 2047 fib->Header.StructType = AAC_FIBTYPE_TFIB; | 32 33/* 34 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 35 */ 36#define AAC_DRIVER_VERSION 0x02000000 37#define AAC_DRIVERNAME "aac" 38 39#include "opt_aac.h" --- 2000 unchanged lines hidden (view full) --- 2040 * Set up the sync FIB 2041 */ 2042 fib->Header.XferState = AAC_FIBSTATE_HOSTOWNED | 2043 AAC_FIBSTATE_INITIALISED | 2044 AAC_FIBSTATE_EMPTY; 2045 fib->Header.XferState |= xferstate; 2046 fib->Header.Command = command; 2047 fib->Header.StructType = AAC_FIBTYPE_TFIB; |
2048 fib->Header.Size = sizeof(struct aac_fib) + datasize; | 2048 fib->Header.Size = sizeof(struct aac_fib_header) + datasize; |
2049 fib->Header.SenderSize = sizeof(struct aac_fib); 2050 fib->Header.SenderFibAddress = 0; /* Not needed */ 2051 fib->Header.ReceiverFibAddress = sc->aac_common_busaddr + 2052 offsetof(struct aac_common, 2053 ac_sync_fib); 2054 2055 /* 2056 * Give the FIB to the controller, wait for a response. --- 1517 unchanged lines hidden (view full) --- 3574 3575 vmi->Command = VM_Ioctl; 3576 vmi->ObjType = FT_DRIVE; 3577 vmi->MethId = sc->scsi_method_id; 3578 vmi->ObjId = 0; 3579 vmi->IoctlCmd = GetBusInfo; 3580 3581 error = aac_sync_fib(sc, ContainerCommand, 0, fib, | 2049 fib->Header.SenderSize = sizeof(struct aac_fib); 2050 fib->Header.SenderFibAddress = 0; /* Not needed */ 2051 fib->Header.ReceiverFibAddress = sc->aac_common_busaddr + 2052 offsetof(struct aac_common, 2053 ac_sync_fib); 2054 2055 /* 2056 * Give the FIB to the controller, wait for a response. --- 1517 unchanged lines hidden (view full) --- 3574 3575 vmi->Command = VM_Ioctl; 3576 vmi->ObjType = FT_DRIVE; 3577 vmi->MethId = sc->scsi_method_id; 3578 vmi->ObjId = 0; 3579 vmi->IoctlCmd = GetBusInfo; 3580 3581 error = aac_sync_fib(sc, ContainerCommand, 0, fib, |
3582 sizeof(struct aac_vmioctl)); | 3582 sizeof(struct aac_vmi_businf_resp)); |
3583 if (error) { 3584 device_printf(sc->aac_dev, "Error %d sending VMIoctl command\n", 3585 error); 3586 aac_release_sync_fib(sc); 3587 mtx_unlock(&sc->aac_io_lock); 3588 return; 3589 } 3590 --- 53 unchanged lines hidden --- | 3583 if (error) { 3584 device_printf(sc->aac_dev, "Error %d sending VMIoctl command\n", 3585 error); 3586 aac_release_sync_fib(sc); 3587 mtx_unlock(&sc->aac_io_lock); 3588 return; 3589 } 3590 --- 53 unchanged lines hidden --- |