Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame] | 1 | // clang-format off |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 2 | /******************************************************************************** |
| 3 | * HON HAI Precision IND.Co., LTD. * |
| 4 | * Personal Computer & Enterprise Product Business Group * |
| 5 | * Enterprise Product Business Group * |
| 6 | * * |
| 7 | * Copyright (c) 2010 by FOXCONN/CESBG/CABG/SRD. All rights reserved. * |
| 8 | * All data and information contained in this document is confidential * |
| 9 | * and proprietary information of FOXCONN/CESBG/CABG/SRD and all rights * |
| 10 | * are reserved. By accepting this material the recipient agrees that * |
| 11 | * the information contained therein is held in confidence and in trust * |
| 12 | * and will not be used, copied, reproduced in whole or in part, nor its * |
| 13 | * contents revealed in any manner to others without the express written * |
| 14 | * permission of FOXCONN/CESBG/CABG/SRD. * |
| 15 | * * |
| 16 | ********************************************************************************/ |
Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame] | 17 | // clang-format on |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 18 | |
| 19 | #pragma once |
Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame] | 20 | |
| 21 | #include <cstddef> |
| 22 | #include <string> |
| 23 | |
| 24 | #define BOOT_COUNT_READ 0x00 |
| 25 | #define BOOT_COUNT_INCREMENT 0x01 |
| 26 | #define BOOT_COUNT_CLEAR 0x02 |
| 27 | #define BOOT_COUNT_SET 0x03 |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 28 | #define FII_CMD_BIOS_BOOT_COUNT 0x71 |
| 29 | #define OPERATION_BYTE_LENGTH 1 |
| 30 | #define SET_BYTE_LENGTH 5 |
| 31 | #define BOOT_COUNT_HEADER 0xDEADBEEF |
| 32 | #define INITIAL_VALUE 0x00000000 |
| 33 | #define START_BOOT_COUNT_VALUE 0x00000001 |
Mohaimen Alsamarai | 35c1ac4 | 2021-04-20 13:16:42 -0500 | [diff] [blame] | 34 | |
Avenash Asai Thambi | da2cf0d | 2021-08-26 15:51:47 -0500 | [diff] [blame] | 35 | size_t EEPROM_OFFSET = 4096; |
| 36 | std::string EEPROM_PATH = "/sys/bus/i2c/devices/4-0050/eeprom"; |