diff options
author | Hector Martin <marcan@marcan.st> | 2025-04-20 13:58:07 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-28 13:16:45 -0600 |
commit | fe593cc8ed9b9616eca9d094be1b1557824dcea4 (patch) | |
tree | c006f7d12550ff49a383b7a217b008d97f2bf7d1 | |
parent | 082789a4f7a1a7bac46ef75f98acf93ee8bfe837 (diff) |
arm: apple: rtkit: Add endpoint field to buffers
To be used for special-case oslog support in rtkit-helper.
Signed-off-by: Hector Martin <marcan@marcan.st>
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
-rw-r--r-- | arch/arm/include/asm/arch-apple/rtkit.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-apple/rtkit.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-apple/rtkit.h b/arch/arm/include/asm/arch-apple/rtkit.h index 1b6c6ccd821..4b11e2a72dc 100644 --- a/arch/arm/include/asm/arch-apple/rtkit.h +++ b/arch/arm/include/asm/arch-apple/rtkit.h @@ -12,6 +12,7 @@ struct apple_rtkit_buffer { u64 dva; size_t size; bool is_mapped; + int endpoint; }; typedef int (*apple_rtkit_shmem_setup)(void *cookie, diff --git a/arch/arm/mach-apple/rtkit.c b/arch/arm/mach-apple/rtkit.c index d294ee09350..f3561543a35 100644 --- a/arch/arm/mach-apple/rtkit.c +++ b/arch/arm/mach-apple/rtkit.c @@ -161,6 +161,7 @@ static int rtkit_handle_buf_req(struct apple_rtkit *rtk, int endpoint, struct ap buf->dva = FIELD_GET(APPLE_RTKIT_BUFFER_REQUEST_IOVA, msg->msg0); buf->is_mapped = !!buf->dva; + buf->endpoint = endpoint; if (rtk->shmem_setup) { ret = rtk->shmem_setup(rtk->cookie, buf); |