aac.c (174385) | aac.c (174412) |
---|---|
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 174385 2007-12-07 00:22:23Z emaste $"); | 31__FBSDID("$FreeBSD: head/sys/dev/aac/aac.c 174412 2007-12-07 18:05:41Z 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" --- 2683 unchanged lines hidden (view full) --- 2723/* 2724 * Print some information about the controller. 2725 */ 2726static void 2727aac_describe_controller(struct aac_softc *sc) 2728{ 2729 struct aac_fib *fib; 2730 struct aac_adapter_info *info; | 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" --- 2683 unchanged lines hidden (view full) --- 2723/* 2724 * Print some information about the controller. 2725 */ 2726static void 2727aac_describe_controller(struct aac_softc *sc) 2728{ 2729 struct aac_fib *fib; 2730 struct aac_adapter_info *info; |
2731 char *adapter_type = "Adaptec RAID controller"; |
|
2731 2732 debug_called(2); 2733 2734 mtx_lock(&sc->aac_io_lock); 2735 aac_alloc_sync_fib(sc, &fib); 2736 | 2732 2733 debug_called(2); 2734 2735 mtx_lock(&sc->aac_io_lock); 2736 aac_alloc_sync_fib(sc, &fib); 2737 |
2738 if (sc->supported_options & AAC_SUPPORTED_SUPPLEMENT_ADAPTER_INFO) { 2739 fib->data[0] = 0; 2740 if (aac_sync_fib(sc, RequestSupplementAdapterInfo, 0, fib, 1)) 2741 device_printf(sc->aac_dev, 2742 "RequestSupplementAdapterInfo failed\n"); 2743 else 2744 adapter_type = ((struct aac_supplement_adapter_info *) 2745 &fib->data[0])->AdapterTypeText; 2746 } 2747 device_printf(sc->aac_dev, "%s, aac driver %d.%d.%d-%d\n", 2748 adapter_type, 2749 AAC_DRIVER_VERSION >> 24, 2750 (AAC_DRIVER_VERSION >> 16) & 0xFF, 2751 AAC_DRIVER_VERSION & 0xFF, 2752 AAC_DRIVER_BUILD); 2753 |
|
2737 fib->data[0] = 0; 2738 if (aac_sync_fib(sc, RequestAdapterInfo, 0, fib, 1)) { 2739 device_printf(sc->aac_dev, "RequestAdapterInfo failed\n"); 2740 aac_release_sync_fib(sc); 2741 mtx_unlock(&sc->aac_io_lock); 2742 return; 2743 } 2744 2745 /* save the kernel revision structure for later use */ 2746 info = (struct aac_adapter_info *)&fib->data[0]; 2747 sc->aac_revision = info->KernelRevision; 2748 | 2754 fib->data[0] = 0; 2755 if (aac_sync_fib(sc, RequestAdapterInfo, 0, fib, 1)) { 2756 device_printf(sc->aac_dev, "RequestAdapterInfo failed\n"); 2757 aac_release_sync_fib(sc); 2758 mtx_unlock(&sc->aac_io_lock); 2759 return; 2760 } 2761 2762 /* save the kernel revision structure for later use */ 2763 info = (struct aac_adapter_info *)&fib->data[0]; 2764 sc->aac_revision = info->KernelRevision; 2765 |
2749 device_printf(sc->aac_dev, "Adaptec Raid Controller %d.%d.%d-%d\n", 2750 AAC_DRIVER_VERSION >> 24, 2751 (AAC_DRIVER_VERSION >> 16) & 0xFF, 2752 AAC_DRIVER_VERSION & 0xFF, 2753 AAC_DRIVER_BUILD); | |
2754 2755 if (bootverbose) { 2756 device_printf(sc->aac_dev, "%s %dMHz, %dMB memory " 2757 "(%dMB cache, %dMB execution), %s\n", 2758 aac_describe_code(aac_cpu_variant, info->CpuVariant), 2759 info->ClockSpeed, info->TotalMem / (1024 * 1024), 2760 info->BufferMem / (1024 * 1024), 2761 info->ExecutionMem / (1024 * 1024), --- 848 unchanged lines hidden --- | 2766 2767 if (bootverbose) { 2768 device_printf(sc->aac_dev, "%s %dMHz, %dMB memory " 2769 "(%dMB cache, %dMB execution), %s\n", 2770 aac_describe_code(aac_cpu_variant, info->CpuVariant), 2771 info->ClockSpeed, info->TotalMem / (1024 * 1024), 2772 info->BufferMem / (1024 * 1024), 2773 info->ExecutionMem / (1024 * 1024), --- 848 unchanged lines hidden --- |