aboutsummaryrefslogtreecommitdiffstats
path: root/sb600spi.c
diff options
context:
space:
mode:
authorBrian J. Nemec <bnemec@chromium.org>2020-07-17 11:46:33 -0700
committerEdward O'Callaghan <quasisec@chromium.org>2020-07-20 23:51:03 +0000
commit7ac57c77beefc2cd098ad16d9ab2a73ef9e763e0 (patch)
treec1a681e7bdbe0008b707cfa7bcdab50e7498333a /sb600spi.c
parentce80d1897371f93c8a66afec842783ef7b217419 (diff)
downloadflashrom-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 'sb600spi.c')
0 files changed, 0 insertions, 0 deletions