Skip to content

Commit

Permalink
Platform: Library: Move mailbox_sw_reg_read64() from posix mailbox.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu committed Oct 17, 2024
1 parent 97d50e8 commit 52dfe5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions posix/include/sof/lib/mailbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/platform/library/include/platform/lib/mailbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52dfe5a

Please sign in to comment.