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>
This commit is contained in:
@@ -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,
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user