mohaimen.alsamarai@fii-na.corp-partner.google.com | 163226e | 2021-04-16 13:54:15 -0500 | [diff] [blame^] | 1 | /******************************************************************************** |
| 2 | * HON HAI Precision IND.Co., LTD. * |
| 3 | * Personal Computer & Enterprise Product Business Group * |
| 4 | * Enterprise Product Business Gro:qup * |
| 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 | #include <sys/stat.h> |
| 17 | #include <fcntl.h> |
| 18 | #include <unistd.h> |
| 19 | #include <iostream> |
| 20 | #include <iomanip> |
| 21 | #include <sstream> |
| 22 | #include <fstream> |
| 23 | |
| 24 | #include <ipmid/api.hpp> |
| 25 | #include <ipmid/utils.hpp> |
| 26 | #include <ipmid/message.hpp> |
| 27 | #include <phosphor-logging/log.hpp> |
| 28 | #include <sdbusplus/message/types.hpp> |
| 29 | |
| 30 | #define OP_CODE_READ 0b00 |
| 31 | #define OP_CODE_WRITE 0b01 |
| 32 | |