Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xtos: move sof/lib/mailbox.h to application interface #9562

Merged

Conversation

kv2019i
Copy link
Collaborator

@kv2019i kv2019i commented Oct 9, 2024

The SOF mailbox.h provides an interface to host-DSP mailboxes, which is used widely in SOF IPC and debug code.

This interface is OS agnostistic and only relies on platform/lib/mailbox.h to define the mailbox locations, and rtos/cache.h to define portable cache primitives to invalidate/writeback mailbox data before/after use.

The amount of RTOS variation does not seem to warrant branching the whole mailbox.h to RTOS layer. Move mailbox.h back to application interface, so the single implementation can be shared.

Link: #9015

The SOF mailbox.h provides an interface to host-DSP mailboxes, which is
used widely in SOF IPC and debug code.

This interface is OS agnostistic and only relies on platform/lib/mailbox.h
to define the mailbox locations, and rtos/cache.h to define portable cache
primitives to invalidate/writeback mailbox data before/after use.

The amount of RTOS variation does not seem to warrant branching the
whole mailbox.h to RTOS layer. Move mailbox.h back to application
interface, so the single implementation can be shared.

Link: thesofproject#9015
Signed-off-by: Kai Vehmanen <[email protected]>
@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood lgirdwood merged commit cb7358e into thesofproject:main Oct 16, 2024
44 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants