1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 const struct aac_code_lookup aac_command_status_table[] = {
40 { "OK", 0 },
41 { "operation not permitted", 1 },
42 { "not found", 2 },
43 { "I/O error", 5 },
44 { "device not configured", 6 },
45 { "too big", 7 },
46 { "permission denied", 13 },
47 { "file exists", 17 },
48 { "cross-device link", 18 },
49 { "operation not supported by device", 19 },
50 { "not a directory", 20 },
51 { "is a directory", 21 },
52 { "invalid argument", 22 },
53 { "file too large", 27 },
54 { "no space on device", 28 },
55 { "readonly filesystem", 30 },
56 { "too many links", 31 },
57 { "operation would block", 35 },
58 { "file name too long", 63 },
59 { "directory not empty", 66 },
60 { "quota exceeded", 69 },
61 { "stale file handle", 70 },
62 { "too many levels of remote in path", 71 },
63 { "bad file handle", 10001 },
64 { "not sync", 10002 },
65 { "bad cookie", 10003 },
66 { "operation not supported", 10004 },
67 { "too small", 10005 },
68 { "server fault", 10006 },
69 { "bad type", 10007 },
70 { "jukebox", 10008 },
71 { "not mounted", 10009 },
72 { "in maintenace mode", 10010 },
73 { "stale ACL", 10011 },
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
80 static struct aac_code_lookup aac_cpu_variant[] = {
81 { "i960JX", CPUI960_JX },
82 { "i960CX", CPUI960_CX },
83 { "i960HX", CPUI960_HX },
84 { "i960RX", CPUI960_RX },
85 { "StrongARM SA110", CPUARM_SA110 },
86 { "MPC824x", CPUMPC_824x },
87 { "Unknown StrongARM", CPUARM_xxx },
88 { "Unknown PowerPC", CPUPPC_xxx },
89 { "Intel GC80302 IOP", CPUI960_302},
90 { NULL, 0 },
91 { "Unknown processor", 0 }
92 };
93
94 static 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 },
98 { "optional battery not installed", PLATFORM_BAT_OPT_NOTPRESENT },
99 { "no battery support", PLATFORM_BAT_NOT_SUPPORTED },
100 { NULL, 0 },
101 { "unknown battery platform", 0 }
102 };
103
104 #if 0
105 static struct aac_code_lookup aac_container_types[] = {
106 { "Volume", CT_VOLUME },
107 { "RAID 1 (Mirror)", CT_MIRROR },
108 { "RAID 0 (Stripe)", CT_STRIPE },
109 { "RAID 5", CT_RAID5 },
110 { "SSRW", CT_SSRW },
111 { "SSRO", CT_SSRO },
112 { "Morph", CT_MORPH },
113 { "Passthrough", CT_PASSTHRU },
114 { "RAID 4", CT_RAID4 },
115 { "RAID 10", CT_RAID10 },
116 { "RAID 00", CT_RAID00 },
117 { "Volume of Mirrors", CT_VOLUME_OF_MIRRORS },
118 { "Pseudo RAID 3", CT_PSEUDO_RAID3 },
119 { NULL, 0 },
120 { "unknown", 0 }
121 };
122 #endif