Commit 4435d63f authored by Asahi Lina's avatar Asahi Lina Committed by Hector Martin

soc: apple: rtkit: Add a private pointer to apple_rtkit_shmem

This allows downstream consumers to keep track of private data for shmem
mappings. In particular, the Rust abstraction will use this to safely
drop data associated with a mapping when it is unmapped.
Signed-off-by: default avatarAsahi Lina <lina@asahilina.net>
Reviewed-by: default avatarSven Peter <sven@svenpeter.dev>
Reviewed-by: default avatarEric Curtin <ecurtin@redhat.com>
Signed-off-by: default avatarHector Martin <marcan@marcan.st>
parent c289d5bc
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* @size: Size of the shared memory buffer. * @size: Size of the shared memory buffer.
* @iova: Device VA of shared memory buffer. * @iova: Device VA of shared memory buffer.
* @is_mapped: Shared memory buffer is managed by the co-processor. * @is_mapped: Shared memory buffer is managed by the co-processor.
* @private: Private data pointer for the parent driver.
*/ */
struct apple_rtkit_shmem { struct apple_rtkit_shmem {
...@@ -30,6 +31,7 @@ struct apple_rtkit_shmem { ...@@ -30,6 +31,7 @@ struct apple_rtkit_shmem {
size_t size; size_t size;
dma_addr_t iova; dma_addr_t iova;
bool is_mapped; bool is_mapped;
void *private;
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment