Platform: Library: Move mailbox_sw_reg_read64() from posix mailbox.h

Without this change testbench IPC4 build fails with copier with
implicit definition of the function. The mailbox_sw_reg_read64()
function should be there in the same platform library mailbox.h
header as the 32 bit version of similar function. The header
mailbox.h for all Intel platforms is organized similarly.

The argument type is changed to size_t from uint32_t to follow
other similar functions.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2024-10-17 11:39:31 +03:00 committed by Liam Girdwood
parent f72968c1a2
commit 06aab75c20
2 changed files with 5 additions and 4 deletions

View File

@ -72,10 +72,6 @@ void mailbox_dspbox_read(void *dest, size_t dest_size,
#define mailbox_hostbox_write(_offset, _src, _bytes) \
memcpy((char *)ipc->comp_data + _offset, _src, _bytes)
static inline uint64_t mailbox_sw_reg_read64(uint32_t offset)
{
return 0;
}
#else
static inline

View File

@ -59,6 +59,11 @@ static inline uint32_t mailbox_sw_reg_read(size_t offset)
return 0;
}
static inline uint64_t mailbox_sw_reg_read64(size_t offset)
{
return 0;
}
#endif /* __PLATFORM_LIB_MAILBOX_H__ */
#else