| OLD | NEW |
| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 /* Fall back to BINF.0 for legacy systems like Mario. */ | 385 /* Fall back to BINF.0 for legacy systems like Mario. */ |
| 386 switch(ReadFileInt(ACPI_BINF_PATH ".0")) { | 386 switch(ReadFileInt(ACPI_BINF_PATH ".0")) { |
| 387 case BINF0_NORMAL: | 387 case BINF0_NORMAL: |
| 388 case BINF0_DEVELOPER: | 388 case BINF0_DEVELOPER: |
| 389 return VBNV_RECOVERY_NOT_REQUESTED; | 389 return VBNV_RECOVERY_NOT_REQUESTED; |
| 390 case BINF0_RECOVERY_BUTTON: | 390 case BINF0_RECOVERY_BUTTON: |
| 391 return VBNV_RECOVERY_RO_MANUAL; | 391 return VBNV_RECOVERY_RO_MANUAL; |
| 392 case BINF0_RECOVERY_DEV_SCREEN_KEY: | 392 case BINF0_RECOVERY_DEV_SCREEN_KEY: |
| 393 return VBNV_RECOVERY_RW_DEV_SCREEN; | 393 return VBNV_RECOVERY_RW_DEV_SCREEN; |
| 394 case BINF0_RECOVERY_RW_FW_BAD: | 394 case BINF0_RECOVERY_RW_FW_BAD: |
| 395 return VBNV_RECOVERY_RO_INVALID_RW; |
| 395 case BINF0_RECOVERY_NO_OS: | 396 case BINF0_RECOVERY_NO_OS: |
| 396 return VBNV_RECOVERY_RW_NO_OS; | 397 return VBNV_RECOVERY_RW_NO_OS; |
| 397 case BINF0_RECOVERY_BAD_OS: | 398 case BINF0_RECOVERY_BAD_OS: |
| 398 return VBNV_RECOVERY_RW_INVALID_OS; | 399 return VBNV_RECOVERY_RW_INVALID_OS; |
| 399 case BINF0_RECOVERY_OS_INITIATED: | 400 case BINF0_RECOVERY_OS_INITIATED: |
| 400 return VBNV_RECOVERY_LEGACY; | 401 return VBNV_RECOVERY_LEGACY; |
| 401 default: | 402 default: |
| 402 /* Other values don't map cleanly to firmware type. */ | 403 /* Other values don't map cleanly to firmware type. */ |
| 403 return -1; | 404 return -1; |
| 404 } | 405 } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 619 |
| 619 return -1; | 620 return -1; |
| 620 } | 621 } |
| 621 | 622 |
| 622 | 623 |
| 623 int VbSetArchPropertyString(const char* name, const char* value) { | 624 int VbSetArchPropertyString(const char* name, const char* value) { |
| 624 /* If there were settable architecture-dependent string properties, | 625 /* If there were settable architecture-dependent string properties, |
| 625 * they'd be here. */ | 626 * they'd be here. */ |
| 626 return -1; | 627 return -1; |
| 627 } | 628 } |
| OLD | NEW |