summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe_tables.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/twe_tables.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/twe_tables.h')
-rw-r--r--sys/dev/twe/twe_tables.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/dev/twe/twe_tables.h b/sys/dev/twe/twe_tables.h
index 4c0d719..3ba83c9 100644
--- a/sys/dev/twe/twe_tables.h
+++ b/sys/dev/twe/twe_tables.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.
*
@@ -45,21 +47,6 @@ extern struct twe_code_lookup twe_table_aen[];
extern struct twe_code_lookup twe_table_opcode[];
#else /* TWE_DEFINE_TABLES */
-/********************************************************************************
- * Look up a text description of a numeric code and return a pointer to same.
- */
-char *
-twe_describe_code(struct twe_code_lookup *table, u_int32_t code)
-{
- int i;
-
- for (i = 0; table[i].string != NULL; i++)
- if (table[i].code == code)
- return(table[i].string);
- return(table[i+1].string);
-}
-
-
struct twe_code_lookup twe_table_status[] = {
/* success */
{"successful completion", 0x00},
@@ -117,7 +104,7 @@ struct twe_code_lookup twe_table_unittype[] = {
struct twe_code_lookup twe_table_aen[] = {
{"q queue empty", 0x00},
{"q soft reset", 0x01},
- {"c degraded mirror", 0x02},
+ {"c degraded unit", 0x02},
{"a controller error", 0x03},
{"c rebuild fail", 0x04},
{"c rebuild done", 0x05},
OpenPOWER on IntegriCloud