aac_tables.h (206555) | aac_tables.h (247570) |
---|---|
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 206555 2010-04-13 12:10:55Z emaste $ | 27 * $FreeBSD: head/sys/dev/aac/aac_tables.h 247570 2013-03-01 19:55:10Z marius $ |
28 */ 29 | 28 */ 29 |
30#if 0 |
|
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 */ | 31/* 32 * Status codes for block read/write commands, etc. 33 * 34 * XXX many of these would not normally be returned, as they are 35 * relevant only to FSA operations. 36 */ |
36static struct aac_code_lookup aac_command_status_table[] = { | 37static const struct aac_code_lookup aac_command_status_table[] = { |
37 {"OK", ST_OK}, 38 {"operation not permitted", ST_PERM}, 39 {"not found", ST_NOENT}, 40 {"I/O error", ST_IO}, 41 {"device not configured", ST_NXIO}, 42 {"too big", ST_E2BIG}, 43 {"permission denied", ST_ACCES}, 44 {"file exists", ST_EXIST}, --- 25 unchanged lines hidden (view full) --- 70 {"in maintenance mode", ST_MAINTMODE}, 71 {"stale ACL", ST_STALEACL}, 72 {"bus reset - command aborted", ST_BUS_RESET}, 73 {NULL, 0}, 74 {"unknown command status", 0} 75}; 76 77#define AAC_COMMAND_STATUS(x) aac_describe_code(aac_command_status_table, x) | 38 {"OK", ST_OK}, 39 {"operation not permitted", ST_PERM}, 40 {"not found", ST_NOENT}, 41 {"I/O error", ST_IO}, 42 {"device not configured", ST_NXIO}, 43 {"too big", ST_E2BIG}, 44 {"permission denied", ST_ACCES}, 45 {"file exists", ST_EXIST}, --- 25 unchanged lines hidden (view full) --- 71 {"in maintenance mode", ST_MAINTMODE}, 72 {"stale ACL", ST_STALEACL}, 73 {"bus reset - command aborted", ST_BUS_RESET}, 74 {NULL, 0}, 75 {"unknown command status", 0} 76}; 77 78#define AAC_COMMAND_STATUS(x) aac_describe_code(aac_command_status_table, x) |
79#endif |
|
78 | 80 |
79static struct aac_code_lookup aac_cpu_variant[] = { | 81static const struct aac_code_lookup aac_cpu_variant[] = { |
80 {"i960JX", CPUI960_JX}, 81 {"i960CX", CPUI960_CX}, 82 {"i960HX", CPUI960_HX}, 83 {"i960RX", CPUI960_RX}, 84 {"i960 80303", CPUI960_80303}, 85 {"StrongARM SA110", CPUARM_SA110}, 86 {"PPC603e", CPUPPC_603e}, 87 {"XScale 80321", CPU_XSCALE_80321}, 88 {"MIPS 4KC", CPU_MIPS_4KC}, 89 {"MIPS 5KC", CPU_MIPS_5KC}, 90 {"Unknown StrongARM", CPUARM_xxx}, 91 {"Unknown PowerPC", CPUPPC_xxx}, 92 {NULL, 0}, 93 {"Unknown processor", 0} 94}; 95 | 82 {"i960JX", CPUI960_JX}, 83 {"i960CX", CPUI960_CX}, 84 {"i960HX", CPUI960_HX}, 85 {"i960RX", CPUI960_RX}, 86 {"i960 80303", CPUI960_80303}, 87 {"StrongARM SA110", CPUARM_SA110}, 88 {"PPC603e", CPUPPC_603e}, 89 {"XScale 80321", CPU_XSCALE_80321}, 90 {"MIPS 4KC", CPU_MIPS_4KC}, 91 {"MIPS 5KC", CPU_MIPS_5KC}, 92 {"Unknown StrongARM", CPUARM_xxx}, 93 {"Unknown PowerPC", CPUPPC_xxx}, 94 {NULL, 0}, 95 {"Unknown processor", 0} 96}; 97 |
96static struct aac_code_lookup aac_battery_platform[] = { | 98static const struct aac_code_lookup aac_battery_platform[] = { |
97 {"required battery present", PLATFORM_BAT_REQ_PRESENT}, 98 {"REQUIRED BATTERY NOT PRESENT", PLATFORM_BAT_REQ_NOTPRESENT}, 99 {"optional battery present", PLATFORM_BAT_OPT_PRESENT}, 100 {"optional battery not installed", PLATFORM_BAT_OPT_NOTPRESENT}, 101 {"no battery support", PLATFORM_BAT_NOT_SUPPORTED}, 102 {NULL, 0}, 103 {"unknown battery platform", 0} 104}; 105 | 99 {"required battery present", PLATFORM_BAT_REQ_PRESENT}, 100 {"REQUIRED BATTERY NOT PRESENT", PLATFORM_BAT_REQ_NOTPRESENT}, 101 {"optional battery present", PLATFORM_BAT_OPT_PRESENT}, 102 {"optional battery not installed", PLATFORM_BAT_OPT_NOTPRESENT}, 103 {"no battery support", PLATFORM_BAT_NOT_SUPPORTED}, 104 {NULL, 0}, 105 {"unknown battery platform", 0} 106}; 107 |
106static struct aac_code_lookup aac_container_types[] = { | 108static const struct aac_code_lookup aac_container_types[] = { |
107 {"Volume", CT_VOLUME}, 108 {"RAID 1 (Mirror)", CT_MIRROR}, 109 {"RAID 0 (Stripe)", CT_STRIPE}, 110 {"RAID 5", CT_RAID5}, 111 {"SSRW", CT_SSRW}, 112 {"SSRO", CT_SSRO}, 113 {"Morph", CT_MORPH}, 114 {"Passthrough", CT_PASSTHRU}, --- 6 unchanged lines hidden (view full) --- 121 {"RAID 5D", CT_RAID5D}, 122 {"RAID 0/5D", CT_RAID5D0}, 123 {"RAID 1E", CT_RAID1E}, 124 {"RAID 6", CT_RAID6}, 125 {"RAID 0/6", CT_RAID60}, 126 {NULL, 0}, 127 {"unknown", 0} 128}; | 109 {"Volume", CT_VOLUME}, 110 {"RAID 1 (Mirror)", CT_MIRROR}, 111 {"RAID 0 (Stripe)", CT_STRIPE}, 112 {"RAID 5", CT_RAID5}, 113 {"SSRW", CT_SSRW}, 114 {"SSRO", CT_SSRO}, 115 {"Morph", CT_MORPH}, 116 {"Passthrough", CT_PASSTHRU}, --- 6 unchanged lines hidden (view full) --- 123 {"RAID 5D", CT_RAID5D}, 124 {"RAID 0/5D", CT_RAID5D0}, 125 {"RAID 1E", CT_RAID1E}, 126 {"RAID 6", CT_RAID6}, 127 {"RAID 0/6", CT_RAID60}, 128 {NULL, 0}, 129 {"unknown", 0} 130}; |
129 | |