mly_tables.h (79695) | mly_tables.h (91448) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/mly/mly_tables.h 79695 2001-07-14 00:12:23Z msmith $ | 27 * $FreeBSD: head/sys/dev/mly/mly_tables.h 91448 2002-02-27 23:57:18Z peter $ |
28 */ 29 30/* 31 * Lookup table for code-to-text translations. 32 */ 33struct mly_code_lookup { 34 char *string; 35 u_int32_t code; --- 10 unchanged lines hidden (view full) --- 46 int i; 47 48 for (i = 0; table[i].string != NULL; i++) 49 if (table[i].code == code) 50 return(table[i].string); 51 return(table[i+1].string); 52} 53 | 28 */ 29 30/* 31 * Lookup table for code-to-text translations. 32 */ 33struct mly_code_lookup { 34 char *string; 35 u_int32_t code; --- 10 unchanged lines hidden (view full) --- 46 int i; 47 48 for (i = 0; table[i].string != NULL; i++) 49 if (table[i].code == code) 50 return(table[i].string); 51 return(table[i+1].string); 52} 53 |
54#if 0 |
|
54static struct mly_code_lookup mly_table_bustype[] = { 55 {"SCSI", 0x00}, 56 {"FC-AL", 0x01}, 57 {"PCI", 0x03}, 58 {NULL, 0}, 59 {"unknown bus", 0} 60}; | 55static struct mly_code_lookup mly_table_bustype[] = { 56 {"SCSI", 0x00}, 57 {"FC-AL", 0x01}, 58 {"PCI", 0x03}, 59 {NULL, 0}, 60 {"unknown bus", 0} 61}; |
62#endif |
|
61 62static struct mly_code_lookup mly_table_controllertype[] = { 63#if 0 /* not supported by this driver */ 64 {"DAC960E", 0x01}, /* EISA */ 65 {"DAC960M", 0x08}, /* MCA */ 66 {"DAC960PD", 0x10}, /* PCI Dual */ 67 {"DAC960PL", 0x11}, /* PCU low-cost */ 68 {"DAC960PDU", 0x12}, /* PD Ultra */ --- 212 unchanged lines hidden (view full) --- 281 {"SPAN", MLY_DEVICE_TYPE_SPAN}, /* current spanning implementation */ 282 {"RAID 5", MLY_DEVICE_TYPE_RAID5L}, /* left symmetric parity */ 283 {"RAID E", MLY_DEVICE_TYPE_RAIDE}, /* concatenation */ 284 {"PHYSICAL", MLY_DEVICE_TYPE_PHYSICAL}, /* physical device */ 285 {NULL, 0}, 286 {"UNKNOWN", 0} 287}; 288 | 63 64static struct mly_code_lookup mly_table_controllertype[] = { 65#if 0 /* not supported by this driver */ 66 {"DAC960E", 0x01}, /* EISA */ 67 {"DAC960M", 0x08}, /* MCA */ 68 {"DAC960PD", 0x10}, /* PCI Dual */ 69 {"DAC960PL", 0x11}, /* PCU low-cost */ 70 {"DAC960PDU", 0x12}, /* PD Ultra */ --- 212 unchanged lines hidden (view full) --- 283 {"SPAN", MLY_DEVICE_TYPE_SPAN}, /* current spanning implementation */ 284 {"RAID 5", MLY_DEVICE_TYPE_RAID5L}, /* left symmetric parity */ 285 {"RAID E", MLY_DEVICE_TYPE_RAIDE}, /* concatenation */ 286 {"PHYSICAL", MLY_DEVICE_TYPE_PHYSICAL}, /* physical device */ 287 {NULL, 0}, 288 {"UNKNOWN", 0} 289}; 290 |
291#if 0 |
|
289static struct mly_code_lookup mly_table_stripe_size[] = { 290 {"NONE", MLY_STRIPE_ZERO}, 291 {"512B", MLY_STRIPE_512b}, 292 {"1k", MLY_STRIPE_1k}, 293 {"2k", MLY_STRIPE_2k}, 294 {"4k", MLY_STRIPE_4k}, 295 {"8k", MLY_STRIPE_8k}, 296 {"16k", MLY_STRIPE_16k}, --- 15 unchanged lines hidden (view full) --- 312 {"4k", MLY_CACHELINE_4k}, 313 {"8k", MLY_CACHELINE_8k}, 314 {"16k", MLY_CACHELINE_16k}, 315 {"32k", MLY_CACHELINE_32k}, 316 {"64k", MLY_CACHELINE_64k}, 317 {NULL, 0}, 318 {"unknown", 0} 319}; | 292static struct mly_code_lookup mly_table_stripe_size[] = { 293 {"NONE", MLY_STRIPE_ZERO}, 294 {"512B", MLY_STRIPE_512b}, 295 {"1k", MLY_STRIPE_1k}, 296 {"2k", MLY_STRIPE_2k}, 297 {"4k", MLY_STRIPE_4k}, 298 {"8k", MLY_STRIPE_8k}, 299 {"16k", MLY_STRIPE_16k}, --- 15 unchanged lines hidden (view full) --- 315 {"4k", MLY_CACHELINE_4k}, 316 {"8k", MLY_CACHELINE_8k}, 317 {"16k", MLY_CACHELINE_16k}, 318 {"32k", MLY_CACHELINE_32k}, 319 {"64k", MLY_CACHELINE_64k}, 320 {NULL, 0}, 321 {"unknown", 0} 322}; |
323#endif |
|