-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocp: split ocp-fw-activation-history print codes
Moved into print stdout and json files. Signed-off-by: Tokunori Ikegami <[email protected]>
- Loading branch information
Showing
7 changed files
with
139 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,42 @@ | |
* | ||
* Authors: [email protected] | ||
*/ | ||
#include "common.h" | ||
#include "linux/types.h" | ||
|
||
#ifndef OCP_FIRMWARE_ACTIVATION_HISTORY_H | ||
#define OCP_FIRMWARE_ACTIVATION_HISTORY_H | ||
|
||
struct command; | ||
struct plugin; | ||
|
||
int ocp_fw_activation_history_log(int argc, char **argv, | ||
struct command *cmd, struct plugin *plugin); | ||
struct __packed fw_activation_history_entry { | ||
__u8 ver_num; | ||
__u8 entry_length; | ||
__u16 reserved1; | ||
__u16 activation_count; | ||
__u64 timestamp; | ||
__u64 reserved2; | ||
__u64 power_cycle_count; | ||
char previous_fw[8]; | ||
char new_fw[8]; | ||
__u8 slot_number; | ||
__u8 commit_action; | ||
__u16 result; | ||
__u8 reserved3[14]; | ||
}; | ||
|
||
struct __packed fw_activation_history { | ||
__u8 log_id; | ||
__u8 reserved1[3]; | ||
__u32 valid_entries; | ||
struct fw_activation_history_entry entries[20]; | ||
__u8 reserved2[2790]; | ||
__u16 log_page_version; | ||
__u64 log_page_guid[2]; | ||
}; | ||
|
||
int ocp_fw_activation_history_log(int argc, char **argv, struct command *cmd, | ||
struct plugin *plugin); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters