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

Side by Side Diff: host/lib/crossystem.c

Issue 6597015: rename tried_fwb constants (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 9 years, 9 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 | « firmware/lib/vboot_nvstorage.c ('k') | tests/vboot_nvstorage_test.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 8
9 #include "host_common.h" 9 #include "host_common.h"
10 10
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 } 479 }
480 /* Saved memory is at a fixed location for all H2C BIOS. If the CHSW 480 /* Saved memory is at a fixed location for all H2C BIOS. If the CHSW
481 * path exists in sysfs, it's a H2C BIOS. */ 481 * path exists in sysfs, it's a H2C BIOS. */
482 else if (!strcasecmp(name,"savedmem_base")) { 482 else if (!strcasecmp(name,"savedmem_base")) {
483 return (-1 == ReadFileInt(ACPI_CHSW_PATH) ? -1 : 0x00F00000); 483 return (-1 == ReadFileInt(ACPI_CHSW_PATH) ? -1 : 0x00F00000);
484 } else if (!strcasecmp(name,"savedmem_size")) { 484 } else if (!strcasecmp(name,"savedmem_size")) {
485 return (-1 == ReadFileInt(ACPI_CHSW_PATH) ? -1 : 0x00100000); 485 return (-1 == ReadFileInt(ACPI_CHSW_PATH) ? -1 : 0x00100000);
486 } 486 }
487 /* NV storage values with no defaults for older BIOS. */ 487 /* NV storage values with no defaults for older BIOS. */
488 else if (!strcasecmp(name,"tried_fwb")) { 488 else if (!strcasecmp(name,"tried_fwb")) {
489 value = VbGetNvStorage(VBNV_FW_USED_TRY_B); 489 value = VbGetNvStorage(VBNV_TRIED_FIRMWARE_B);
490 } 490 }
491 /* NV storage values. If unable to get from NV storage, fall back to the 491 /* NV storage values. If unable to get from NV storage, fall back to the
492 * CMOS reboot field used by older BIOS. */ 492 * CMOS reboot field used by older BIOS. */
493 else if (!strcasecmp(name,"recovery_request")) { 493 else if (!strcasecmp(name,"recovery_request")) {
494 value = VbGetNvStorage(VBNV_RECOVERY_REQUEST); 494 value = VbGetNvStorage(VBNV_RECOVERY_REQUEST);
495 if (-1 == value) 495 if (-1 == value)
496 value = VbGetCmosRebootField(CMOSRF_RECOVERY); 496 value = VbGetCmosRebootField(CMOSRF_RECOVERY);
497 } else if (!strcasecmp(name,"dbg_reset")) { 497 } else if (!strcasecmp(name,"dbg_reset")) {
498 value = VbGetNvStorage(VBNV_DEBUG_RESET_MODE); 498 value = VbGetNvStorage(VBNV_DEBUG_RESET_MODE);
499 if (-1 == value) 499 if (-1 == value)
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 596
597 597
598 /* Set a system property string. 598 /* Set a system property string.
599 * 599 *
600 * Returns 0 if success, -1 if error. */ 600 * Returns 0 if success, -1 if error. */
601 int VbSetSystemPropertyString(const char* name, const char* value) { 601 int VbSetSystemPropertyString(const char* name, const char* value) {
602 602
603 /* TODO: support setting */ 603 /* TODO: support setting */
604 return -1; 604 return -1;
605 } 605 }
OLDNEW
« no previous file with comments | « firmware/lib/vboot_nvstorage.c ('k') | tests/vboot_nvstorage_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698