summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-apple/rtkit.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-06-23 11:27:04 -0400
committerTom Rini <trini@konsulko.com>2022-06-23 11:27:04 -0400
commit625756083e3358744fbe0a60e0eedc009041782d (patch)
tree93e209783fb080c4017a1be4f77f9a3a3745a830 /arch/arm/include/asm/arch-apple/rtkit.h
parent568a226f87655fd5339514f66413c2ad72f65d6f (diff)
parentc0b71a1731d99e98ba011ecb0b6fca880bdbe71d (diff)
Merge branch '2022-06-23-important-fixes'
- Apple NVMe updates to support macOS 13 changes, kontron-sl-mx8mm dts changes to fix some problems.
Diffstat (limited to 'arch/arm/include/asm/arch-apple/rtkit.h')
-rw-r--r--arch/arm/include/asm/arch-apple/rtkit.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-apple/rtkit.h b/arch/arm/include/asm/arch-apple/rtkit.h
index 51f77f298c0..eff18ddb9d2 100644
--- a/arch/arm/include/asm/arch-apple/rtkit.h
+++ b/arch/arm/include/asm/arch-apple/rtkit.h
@@ -7,5 +7,23 @@
#define APPLE_RTKIT_PWR_STATE_QUIESCED 0x10
#define APPLE_RTKIT_PWR_STATE_ON 0x20
-int apple_rtkit_init(struct mbox_chan *);
-int apple_rtkit_shutdown(struct mbox_chan *, int);
+struct apple_rtkit_buffer {
+ void *buffer;
+ u64 dva;
+ size_t size;
+ bool is_mapped;
+};
+
+typedef int (*apple_rtkit_shmem_setup)(void *cookie,
+ struct apple_rtkit_buffer *buf);
+typedef void (*apple_rtkit_shmem_destroy)(void *cookie,
+ struct apple_rtkit_buffer *buf);
+
+struct apple_rtkit;
+
+struct apple_rtkit *apple_rtkit_init(struct mbox_chan *chan, void *cookie,
+ apple_rtkit_shmem_setup shmem_setup,
+ apple_rtkit_shmem_destroy shmem_destroy);
+void apple_rtkit_free(struct apple_rtkit *rtk);
+int apple_rtkit_boot(struct apple_rtkit *rtk);
+int apple_rtkit_shutdown(struct apple_rtkit *rtk, int pwrstate);