mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 23:32:39 +00:00
cleaner
This commit is contained in:
1 parent
95f663ec1d
commit
a98c706755
1 file changed
-42
@@ -624,48 +624,6 @@ struct ec_response_rtc {
|
|||||||
#define EC_CMD_RTC_SET_VALUE 0x46
|
#define EC_CMD_RTC_SET_VALUE 0x46
|
||||||
#define EC_CMD_RTC_SET_ALARM 0x47
|
#define EC_CMD_RTC_SET_ALARM 0x47
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/* Port80 log access */
|
|
||||||
|
|
||||||
/* Maximum entries that can be read/written in a single command */
|
|
||||||
#define EC_PORT80_SIZE_MAX 32
|
|
||||||
|
|
||||||
/* Get last port80 code from previous boot */
|
|
||||||
#define EC_CMD_PORT80_LAST_BOOT 0x48
|
|
||||||
#define EC_CMD_PORT80_READ 0x48
|
|
||||||
|
|
||||||
enum ec_port80_subcmd {
|
|
||||||
EC_PORT80_GET_INFO = 0,
|
|
||||||
EC_PORT80_READ_BUFFER,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct ec_params_port80_read {
|
|
||||||
uint16_t subcmd;
|
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
uint32_t offset;
|
|
||||||
uint32_t num_entries;
|
|
||||||
} read_buffer;
|
|
||||||
};
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct ec_response_port80_read {
|
|
||||||
union {
|
|
||||||
struct {
|
|
||||||
uint32_t writes;
|
|
||||||
uint32_t history_size;
|
|
||||||
uint32_t last_boot;
|
|
||||||
} get_info;
|
|
||||||
struct {
|
|
||||||
uint16_t codes[EC_PORT80_SIZE_MAX];
|
|
||||||
} data;
|
|
||||||
};
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
struct ec_response_port80_last_boot {
|
|
||||||
uint16_t code;
|
|
||||||
} __packed;
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* MKBP - Matrix KeyBoard Protocol */
|
/* MKBP - Matrix KeyBoard Protocol */
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user