diff options
author | Brian J. Nemec <bnemec@chromium.org> | 2020-07-17 11:46:33 -0700 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2020-07-20 23:51:03 +0000 |
commit | 7ac57c77beefc2cd098ad16d9ab2a73ef9e763e0 (patch) | |
tree | c1a681e7bdbe0008b707cfa7bcdab50e7498333a /dediprog.c | |
parent | ce80d1897371f93c8a66afec842783ef7b217419 (diff) | |
download | flashrom-7ac57c77beefc2cd098ad16d9ab2a73ef9e763e0.tar.gz flashrom-7ac57c77beefc2cd098ad16d9ab2a73ef9e763e0.tar.bz2 flashrom-7ac57c77beefc2cd098ad16d9ab2a73ef9e763e0.zip |
raiden_debug_spi.c: Add USB context states and helper functions
Add context states to handle the USB packets, these allow us to
simplify the process of loading data from the transmit buffer
into a USB packets' data section and from a USB packet to it's
receive buffers. These will also keep track of the size of the USB
packet allowing a simpler interface to transmit them.
Helper functions have been added to help with copying data between
the transmit and receive context states to and from the USB packets.
BUG=b:139058552
BRANCH=none
TEST=Manual testing of ServoMicro and Flashrom when performing
reads, writes, and verification of the EC firmware on Nami.
TEST=Builds
Signed-off-by: Brian J. Nemec <bnemec@chromium.com>
Change-Id: Id7b598b39923b4b8c1b6905e5d5c5a2be4078f96
Reviewed-on: https://review.coreboot.org/c/flashrom/+/43550
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'dediprog.c')
0 files changed, 0 insertions, 0 deletions