aboutsummaryrefslogtreecommitdiff
path: root/libflash/ecc.h
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2018-03-07 17:04:56 +1100
committerStewart Smith <stewart@linux.ibm.com>2018-04-09 03:45:23 -0500
commit07c4573d06785b06ce36fd8feab28e153f4756f7 (patch)
tree4dc1e7a5195d00e24a3fc1a0f084e376b5eebd28 /libflash/ecc.h
parentba3bebb3a417833cc37efd2977b8e5650d93eccc (diff)
downloadskiboot-07c4573d06785b06ce36fd8feab28e153f4756f7.zip
skiboot-07c4573d06785b06ce36fd8feab28e153f4756f7.tar.gz
skiboot-07c4573d06785b06ce36fd8feab28e153f4756f7.tar.bz2
libflash/ecc: Add functions to deal with unaligned ECC memcpy
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'libflash/ecc.h')
-rw-r--r--libflash/ecc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libflash/ecc.h b/libflash/ecc.h
index 804b352..2ce2215 100644
--- a/libflash/ecc.h
+++ b/libflash/ecc.h
@@ -28,8 +28,12 @@ struct ecc64 {
} __attribute__((__packed__));
extern int memcpy_from_ecc(uint64_t *dst, struct ecc64 *src, uint64_t len);
+extern int memcpy_from_ecc_unaligned(uint64_t *dst, struct ecc64 *src, uint64_t len,
+ uint8_t alignment);
extern int memcpy_to_ecc(struct ecc64 *dst, const uint64_t *src, uint64_t len);
+extern int memcpy_to_ecc_unaligned(struct ecc64 *dst, const uint64_t *src, uint64_t len,
+ uint8_t alignment);
/*
* Calculate the size of a buffer if ECC is added