Skip to content

Commit bfb74d7

Browse files
marcankettenis
authored andcommitted
arm: apple: rtkit: Add endpoint field to buffers
To be used for special-case oslog support in rtkit-helper. Signed-off-by: Hector Martin <[email protected]>
1 parent 00bcf78 commit bfb74d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/arm/include/asm/arch-apple/rtkit.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ struct apple_rtkit_buffer {
1212
u64 dva;
1313
size_t size;
1414
bool is_mapped;
15+
int endpoint;
1516
};
1617

1718
typedef int (*apple_rtkit_shmem_setup)(void *cookie,

arch/arm/mach-apple/rtkit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ static int rtkit_handle_buf_req(struct apple_rtkit *rtk, int endpoint, struct ap
161161

162162
buf->dva = FIELD_GET(APPLE_RTKIT_BUFFER_REQUEST_IOVA, msg->msg0);
163163
buf->is_mapped = !!buf->dva;
164+
buf->endpoint = endpoint;
164165

165166
if (rtk->shmem_setup) {
166167
ret = rtk->shmem_setup(rtk->cookie, buf);

0 commit comments

Comments
 (0)