blob: 2e915bbcd24c8737d1c83d7f833c445d9fdaf2ab [file] [log] [blame]
Willy Tu40553242022-11-14 09:27:39 -08001// clang-format off
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -05002/********************************************************************************
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 Tu40553242022-11-14 09:27:39 -080017// clang-format on
Mohaimen Alsamarai35c1ac42021-04-20 13:16:42 -050018
19#pragma once
Willy Tu40553242022-11-14 09:27:39 -080020
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 Thambida2cf0d2021-08-26 15:51:47 -050028#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 Alsamarai35c1ac42021-04-20 13:16:42 -050034
Avenash Asai Thambida2cf0d2021-08-26 15:51:47 -050035size_t EEPROM_OFFSET = 4096;
36std::string EEPROM_PATH = "/sys/bus/i2c/devices/4-0050/eeprom";