device/mmio: Make buffer_to_fifo32() take a const buffer
The input buffer to the buffer_to_fifo family of functions is only read, so it can be a const pointer. (Also, remove the MIPS check in libpayload for these functions... the MIPS architecture has been removed a while ago.) Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I021069680cf691590fdacc3d51f747f12ae3df31 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57731 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
committed by
Felix Held
parent
1c8e8b259d
commit
ea03d0047b
@ -472,18 +472,16 @@ static inline int __ffs64(u64 x) { return log2_64(x & (u64)(-(s64)x)); }
|
||||
* @defgroup mmio MMIO helper functions
|
||||
* @{
|
||||
*/
|
||||
#if !CONFIG(LP_ARCH_MIPS)
|
||||
void buffer_from_fifo32(void *buffer, size_t size, void *fifo,
|
||||
int fifo_stride, int fifo_width);
|
||||
void buffer_to_fifo32_prefix(void *buffer, u32 prefix, int prefsz, size_t size,
|
||||
void buffer_to_fifo32_prefix(const void *buffer, u32 prefix, int prefsz, size_t size,
|
||||
void *fifo, int fifo_stride, int fifo_width);
|
||||
static inline void buffer_to_fifo32(void *buffer, size_t size, void *fifo,
|
||||
static inline void buffer_to_fifo32(const void *buffer, size_t size, void *fifo,
|
||||
int fifo_stride, int fifo_width)
|
||||
{
|
||||
buffer_to_fifo32_prefix(buffer, 0, 0, size, fifo,
|
||||
fifo_stride, fifo_width);
|
||||
}
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user