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