summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twereg.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2003-12-02 07:57:20 +0000
committerps <ps@FreeBSD.org>2003-12-02 07:57:20 +0000
commit3a0af1aae72ca3322637a9d2f7f8b765835748c7 (patch)
treeba946a6caff762ad522eba49b289c9bb061bd1d4 /sys/dev/twe/twereg.h
parent61573506be17296e8a4f3b70686c75fb30900e65 (diff)
downloadFreeBSD-src-3a0af1aae72ca3322637a9d2f7f8b765835748c7.zip
FreeBSD-src-3a0af1aae72ca3322637a9d2f7f8b765835748c7.tar.gz
After extensive QA cycles at 3ware, bring the driver in-line with all the
issues which they found and asked to be changed so 3ware can offcially support the driver. Summary of the most significant changes: - TWE_OVERRIDE is no longer supported - If twe_getparam failed, bogus data would be returned to the caller - Cache the device unit in the twe_drive structure to aid debugging - Add the 3ware driver version. - Proper return error codes for many functions. - Track the minimum queue length statistics - 4.x compat: use the cached unit number from the twe_drive structure instead of the the cached si_drv2. 3ware found that after many loads and unloads that si_drv2 became corrupted. This did not happen in -current. Submitted by: Vinod Kashyap (with modifications by me) Approved by: re (rwatson)
Diffstat (limited to 'sys/dev/twe/twereg.h')
-rw-r--r--sys/dev/twe/twereg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/twe/twereg.h b/sys/dev/twe/twereg.h
index 705f419..5737b82 100644
--- a/sys/dev/twe/twereg.h
+++ b/sys/dev/twe/twereg.h
@@ -1,5 +1,7 @@
/*-
* Copyright (c) 2000 Michael Smith
+ * Copyright (c) 2003 Paul Saab
+ * Copyright (c) 2003 Vinod Kashyap
* Copyright (c) 2000 BSDi
* All rights reserved.
*
@@ -98,7 +100,7 @@
/* PCI related defines */
#define TWE_IO_CONFIG_REG 0x10
-#define TWE_DEVICE_NAME "3ware Storage Controller"
+#define TWE_DEVICE_NAME "3ware 7000 series Storage Controller"
#define TWE_VENDOR_ID 0x13C1
#define TWE_DEVICE_ID 0x1000
#define TWE_DEVICE_ID_ASIC 0x1001
@@ -280,6 +282,7 @@ typedef struct
u_int8_t unit:4;
u_int8_t host_id:4;
u_int8_t status;
+ u_int8_t flags;
u_int16_t param;
u_int16_t features;
u_int16_t sector_count;
OpenPOWER on IntegriCloud