From baa075b9d499f13ea445d1371b5338c9043a95de Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 20 Apr 2025 08:21:00 -0600 Subject: /harnes/flash.bin: Implement the new io positional interfaces --- cmd/sbc_harness/fs_harness_flash_bin.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'cmd/sbc_harness/fs_harness_flash_bin.h') diff --git a/cmd/sbc_harness/fs_harness_flash_bin.h b/cmd/sbc_harness/fs_harness_flash_bin.h index 148a446..050f4a7 100644 --- a/cmd/sbc_harness/fs_harness_flash_bin.h +++ b/cmd/sbc_harness/fs_harness_flash_bin.h @@ -11,17 +11,21 @@ #include -struct flash_file { - char *name; - uint64_t pathnum; - - BEGIN_PRIVATE(FS_HARNESS_FLASH_BIN); +struct flashio { bool written; struct { bool ok; size_t pos; uint8_t dat[FLASH_SECTOR_SIZE]; } wbuf, rbuf; +}; + +struct flash_file { + char *name; + uint64_t pathnum; + + BEGIN_PRIVATE(FS_HARNESS_FLASH_BIN); + struct flashio io; END_PRIVATE(FS_HARNESS_FLASH_BIN); }; LO_IMPLEMENTATION_H(lib9p_srv_file, struct flash_file, flash_file); -- cgit v1.2.3-2-g168b