From 08f70bf2bd2e0d9300558db504cedc1331e05542 Mon Sep 17 00:00:00 2001 From: Joe Tessler Date: Sun, 23 Aug 2020 10:02:42 -0400 Subject: Import PSE command header changes from master This change fixes a broken build and is a quasi-cherry-pick of https://crrev.com/c/2354544, where I selectively import the change to ec_commands.h. This file is referenced by both EC firmware and host ec-utils builds. BUG=b:166001775 TEST=emerge-endeavour ec-utils BRANCH=endeavour,M84-13099.72.B Signed-off-by: Joe Tessler Change-Id: Ib8fcaf5047a50f1d8753080327828c181dfe18d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2370863 Commit-Queue: Bruce Goodwin Reviewed-by: Stefan Adolfsson Reviewed-by: Bruce Goodwin --- include/ec_commands.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/include/ec_commands.h b/include/ec_commands.h index aca6032d45..9e2c2f50be 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -5113,6 +5113,33 @@ struct __ec_align4 ec_response_ec_codec_wov_read_audio_shm { uint32_t len; }; +/*****************************************************************************/ +/* Commands for PoE PSE controller */ + +#define EC_CMD_PSE 0x00C0 + +enum ec_pse_subcmd { + EC_PSE_STATUS = 0x0, + EC_PSE_ENABLE = 0x1, + EC_PSE_DISABLE = 0x2, + EC_PSE_SUBCMD_COUNT, +}; + +struct __ec_align1 ec_params_pse { + uint8_t cmd; /* enum ec_pse_subcmd */ + uint8_t port; /* PSE port */ +}; + +enum ec_pse_status { + EC_PSE_STATUS_DISABLED = 0x0, + EC_PSE_STATUS_ENABLED = 0x1, + EC_PSE_STATUS_POWERED = 0x2, +}; + +struct __ec_align1 ec_response_pse_status { + uint8_t status; /* enum ec_pse_status */ +}; + /*****************************************************************************/ /* System commands */ -- cgit v1.2.1