From: Hector Martin <mar...@marcan.st>

To be used for special-case oslog support in rtkit-helper.

Signed-off-by: Hector Martin <mar...@marcan.st>
Signed-off-by: Mark Kettenis <kette...@openbsd.org>
---
 arch/arm/include/asm/arch-apple/rtkit.h | 1 +
 arch/arm/mach-apple/rtkit.c             | 1 +
 2 files changed, 2 insertions(+)

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);
-- 
2.49.0

Reply via email to