Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: host/arch/arm/lib/crossystem_arch.c

Issue 6813054: Add crossystem arch (reports x86 or arm, depending on platform) (Closed) Base URL: ssh://gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | host/arch/x86/lib/crossystem_arch.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 #include <stdio.h> 6 #include <stdio.h>
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 #include <sys/stat.h> 9 #include <sys/stat.h>
10 #include <unistd.h> 10 #include <unistd.h>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } else if (!strcasecmp(name,"savedmem_size")) { 68 } else if (!strcasecmp(name,"savedmem_size")) {
69 } 69 }
70 70
71 return -1; 71 return -1;
72 } 72 }
73 73
74 74
75 const char* VbGetArchPropertyString(const char* name, char* dest, int size) { 75 const char* VbGetArchPropertyString(const char* name, char* dest, int size) {
76 /* TODO: IMPLEMENT ME! For now, return reasonable defaults for 76 /* TODO: IMPLEMENT ME! For now, return reasonable defaults for
77 * values where reasonable defaults exist. */ 77 * values where reasonable defaults exist. */
78 if (!strcasecmp(name,"hwid")) { 78 if (!strcasecmp(name,"arch")) {
79 return StrCopy(dest, "arm", size);
80 } else if (!strcasecmp(name,"hwid")) {
79 return StrCopy(dest, "UnknownArmHwid", size); 81 return StrCopy(dest, "UnknownArmHwid", size);
80 } else if (!strcasecmp(name,"fwid")) { 82 } else if (!strcasecmp(name,"fwid")) {
81 return StrCopy(dest, "UnknownArmFwid", size); 83 return StrCopy(dest, "UnknownArmFwid", size);
82 } else if (!strcasecmp(name,"ro_fwid")) { 84 } else if (!strcasecmp(name,"ro_fwid")) {
83 return StrCopy(dest, "UnknownArmRoFwid", size); 85 return StrCopy(dest, "UnknownArmRoFwid", size);
84 } else if (!strcasecmp(name,"mainfw_act")) { 86 } else if (!strcasecmp(name,"mainfw_act")) {
85 return StrCopy(dest, "A", size); 87 return StrCopy(dest, "A", size);
86 } else if (!strcasecmp(name,"mainfw_type")) { 88 } else if (!strcasecmp(name,"mainfw_type")) {
87 return StrCopy(dest, "developer", size); 89 return StrCopy(dest, "developer", size);
88 } else if (!strcasecmp(name,"ecfw_act")) { 90 } else if (!strcasecmp(name,"ecfw_act")) {
89 return StrCopy(dest, "RO", size); 91 return StrCopy(dest, "RO", size);
90 } 92 }
91 93
92 return NULL; 94 return NULL;
93 } 95 }
94 96
95 97
96 int VbSetArchPropertyInt(const char* name, int value) { 98 int VbSetArchPropertyInt(const char* name, int value) {
97 /* TODO: IMPLEMENT ME! */ 99 /* TODO: IMPLEMENT ME! */
98 return -1; 100 return -1;
99 } 101 }
100 102
101 103
102 int VbSetArchPropertyString(const char* name, const char* value) { 104 int VbSetArchPropertyString(const char* name, const char* value) {
103 /* If there were settable architecture-dependent string properties, 105 /* If there were settable architecture-dependent string properties,
104 * they'd be here. */ 106 * they'd be here. */
105 return -1; 107 return -1;
106 } 108 }
OLDNEW
« no previous file with comments | « no previous file | host/arch/x86/lib/crossystem_arch.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698