diff options
author | Jett Rink <jettrink@chromium.org> | 2020-08-13 10:17:04 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-13 22:32:32 +0000 |
commit | 41cfc8b01c3ea457e2b24349684c675f21ba9d6e (patch) | |
tree | 7bd805c94658b9fd54f799bf727b07a955364a87 /test | |
parent | b0a3a4fc5df23043823a82b727c7cd4dd14b35d7 (diff) | |
download | chrome-ec-41cfc8b01c3ea457e2b24349684c675f21ba9d6e.tar.gz |
cleanup/usbc: organize all super states together
Like other state machine declarations, put all of the super states
together to make it more clear when reading states.
BRANCH=none
BUG=none
TEST=build and unit tests
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: I1bb776434911d3acdb34abc64e7e8fa5f87154de
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2354193
Reviewed-by: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/usb_pe.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/test/usb_pe.h b/test/usb_pe.h index bb9cd3f508..b817911c98 100644 --- a/test/usb_pe.h +++ b/test/usb_pe.h @@ -70,6 +70,11 @@ /* List of all Policy Engine level states */ enum usb_pe_state { + /* Super States */ + PE_PRS_FRS_SHARED, + PE_SENDER_RESPONSE, /* AMS Start parent - runs SenderResponseTimer */ + PE_VDM_SEND_REQUEST, + /* Normal States */ PE_SRC_STARTUP, PE_SRC_DISCOVERY, @@ -116,7 +121,6 @@ enum usb_pe_state { PE_VCS_TURN_ON_VCONN_SWAP, PE_VCS_TURN_OFF_VCONN_SWAP, PE_VCS_SEND_PS_RDY_SWAP, - PE_VDM_SEND_REQUEST, PE_VDM_IDENTITY_REQUEST_CBL, PE_INIT_PORT_VDM_IDENTITY_REQUEST, PE_INIT_VDM_SVIDS_REQUEST, @@ -131,9 +135,6 @@ enum usb_pe_state { PE_DR_SNK_GET_SINK_CAP, PE_DR_SNK_GIVE_SOURCE_CAP, - /* AMS Start parent - runs SenderResponseTimer */ - PE_SENDER_RESPONSE, - /* PD3.0 only states below here*/ PE_FRS_SNK_SRC_START_AMS, PE_GIVE_BATTERY_CAP, @@ -141,9 +142,6 @@ enum usb_pe_state { PE_SEND_ALERT, PE_SRC_CHUNK_RECEIVED, PE_SNK_CHUNK_RECEIVED, - - /* Super States */ - PE_PRS_FRS_SHARED, }; void set_state_pe(const int port, const enum usb_pe_state new_state); |