diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:23:04 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | 8d9d63b960be603c20340ad5faf1a0a76973bd71 (patch) | |
tree | 29013cf8f83209167b612756232188e540e54def /libflash/ecc.h | |
parent | f27d32f1d1ef20c639e6e9692fb0802887078d96 (diff) | |
download | skiboot-8d9d63b960be603c20340ad5faf1a0a76973bd71.zip skiboot-8d9d63b960be603c20340ad5faf1a0a76973bd71.tar.gz skiboot-8d9d63b960be603c20340ad5faf1a0a76973bd71.tar.bz2 |
libflash: ecc endian conversions
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'libflash/ecc.h')
-rw-r--r-- | libflash/ecc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libflash/ecc.h b/libflash/ecc.h index 608d500..75c3adf 100644 --- a/libflash/ecc.h +++ b/libflash/ecc.h @@ -16,12 +16,12 @@ struct ecc64 { uint8_t ecc; } __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, +extern int memcpy_from_ecc(beint64_t *dst, struct ecc64 *src, uint64_t len); +extern int memcpy_from_ecc_unaligned(beint64_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, +extern int memcpy_to_ecc(struct ecc64 *dst, const beint64_t *src, uint64_t len); +extern int memcpy_to_ecc_unaligned(struct ecc64 *dst, const beint64_t *src, uint64_t len, uint8_t alignment); /* |