aac_tables.h (146851) | aac_tables.h (151086) |
---|---|
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/aac/aac_tables.h 146851 2005-06-01 07:11:17Z scottl $ | 27 * $FreeBSD: head/sys/dev/aac/aac_tables.h 151086 2005-10-08 15:55:09Z scottl $ |
28 */ 29 30/* 31 * Status codes for block read/write commands, etc. 32 * 33 * XXX many of these would not normally be returned, as they are 34 * relevant only to FSA operations. 35 */ 36static struct aac_code_lookup aac_command_status_table[] = { 37 {"OK", 0}, 38 {"operation not permitted", 1}, 39 {"not found", 2}, 40 {"I/O error", 5}, 41 {"device not configured", 6}, 42 {"too big", 7}, | 28 */ 29 30/* 31 * Status codes for block read/write commands, etc. 32 * 33 * XXX many of these would not normally be returned, as they are 34 * relevant only to FSA operations. 35 */ 36static struct aac_code_lookup aac_command_status_table[] = { 37 {"OK", 0}, 38 {"operation not permitted", 1}, 39 {"not found", 2}, 40 {"I/O error", 5}, 41 {"device not configured", 6}, 42 {"too big", 7}, |
43 {"permission denoed", 13}, | 43 {"permission denied", 13}, |
44 {"file exists", 17}, 45 {"cross-device link", 18}, 46 {"operation not supported by device", 19}, 47 {"not a directory", 20}, 48 {"is a directory", 21}, 49 {"invalid argument", 22}, 50 {"file too large", 27}, 51 {"no space on device", 28}, --- 9 unchanged lines hidden (view full) --- 61 {"not sync", 10002}, 62 {"bad cookie", 10003}, 63 {"operation not supported", 10004}, 64 {"too small", 10005}, 65 {"server fault", 10006}, 66 {"bad type", 10007}, 67 {"jukebox", 10008}, 68 {"not mounted", 10009}, | 44 {"file exists", 17}, 45 {"cross-device link", 18}, 46 {"operation not supported by device", 19}, 47 {"not a directory", 20}, 48 {"is a directory", 21}, 49 {"invalid argument", 22}, 50 {"file too large", 27}, 51 {"no space on device", 28}, --- 9 unchanged lines hidden (view full) --- 61 {"not sync", 10002}, 62 {"bad cookie", 10003}, 63 {"operation not supported", 10004}, 64 {"too small", 10005}, 65 {"server fault", 10006}, 66 {"bad type", 10007}, 67 {"jukebox", 10008}, 68 {"not mounted", 10009}, |
69 {"in maintenace mode", 10010}, | 69 {"in maintenance mode", 10010}, |
70 {"stale ACL", 10011}, 71 {NULL, 0}, 72 {"unknown command status", 0} 73}; 74 75#define AAC_COMMAND_STATUS(x) aac_describe_code(aac_command_status_table, x) 76 77static struct aac_code_lookup aac_cpu_variant[] = { 78 {"i960JX", CPUI960_JX}, 79 {"i960CX", CPUI960_CX}, 80 {"i960HX", CPUI960_HX}, 81 {"i960RX", CPUI960_RX}, | 70 {"stale ACL", 10011}, 71 {NULL, 0}, 72 {"unknown command status", 0} 73}; 74 75#define AAC_COMMAND_STATUS(x) aac_describe_code(aac_command_status_table, x) 76 77static struct aac_code_lookup aac_cpu_variant[] = { 78 {"i960JX", CPUI960_JX}, 79 {"i960CX", CPUI960_CX}, 80 {"i960HX", CPUI960_HX}, 81 {"i960RX", CPUI960_RX}, |
82 {"i960 80303", CPUI960_80303}, |
|
82 {"StrongARM SA110", CPUARM_SA110}, | 83 {"StrongARM SA110", CPUARM_SA110}, |
83 {"MPC824x", CPUMPC_824x}, | 84 {"PPC603e", CPUPPC_603e}, 85 {"XScale 80321", CPU_XSCALE_80321}, 86 {"MIPS 4KC", CPU_MIPS_4KC}, 87 {"MIPS 5KC", CPU_MIPS_5KC}, |
84 {"Unknown StrongARM", CPUARM_xxx}, 85 {"Unknown PowerPC", CPUPPC_xxx}, | 88 {"Unknown StrongARM", CPUARM_xxx}, 89 {"Unknown PowerPC", CPUPPC_xxx}, |
86 {"IOP302/303", CPUI960_30X}, | |
87 {NULL, 0}, 88 {"Unknown processor", 0} 89}; 90 91static struct aac_code_lookup aac_battery_platform[] = { 92 {"required battery present", PLATFORM_BAT_REQ_PRESENT}, 93 {"REQUIRED BATTERY NOT PRESENT", PLATFORM_BAT_REQ_NOTPRESENT}, 94 {"optional battery present", PLATFORM_BAT_OPT_PRESENT}, --- 13 unchanged lines hidden (view full) --- 108 {"Morph", CT_MORPH}, 109 {"Passthrough", CT_PASSTHRU}, 110 {"RAID 4", CT_RAID4}, 111 {"RAID 0/1", CT_RAID10}, 112 {"RAID 0/0", CT_RAID00}, 113 {"Volume of Mirrors", CT_VOLUME_OF_MIRRORS}, 114 {"Pseudo RAID 3", CT_PSEUDO_RAID3}, 115 {"RAID 0/5", CT_RAID50}, | 90 {NULL, 0}, 91 {"Unknown processor", 0} 92}; 93 94static struct aac_code_lookup aac_battery_platform[] = { 95 {"required battery present", PLATFORM_BAT_REQ_PRESENT}, 96 {"REQUIRED BATTERY NOT PRESENT", PLATFORM_BAT_REQ_NOTPRESENT}, 97 {"optional battery present", PLATFORM_BAT_OPT_PRESENT}, --- 13 unchanged lines hidden (view full) --- 111 {"Morph", CT_MORPH}, 112 {"Passthrough", CT_PASSTHRU}, 113 {"RAID 4", CT_RAID4}, 114 {"RAID 0/1", CT_RAID10}, 115 {"RAID 0/0", CT_RAID00}, 116 {"Volume of Mirrors", CT_VOLUME_OF_MIRRORS}, 117 {"Pseudo RAID 3", CT_PSEUDO_RAID3}, 118 {"RAID 0/5", CT_RAID50}, |
119 {"RAID 5D", CT_RAID5D}, 120 {"RAID 0/5D", CT_RAID5D0}, 121 {"RAID 1E", CT_RAID1E}, 122 {"RAID 6", CT_RAID6}, 123 {"RAID 0/6", CT_RAID60}, |
|
116 {NULL, 0}, 117 {"unknown", 0} 118}; 119 | 124 {NULL, 0}, 125 {"unknown", 0} 126}; 127 |