summaryrefslogtreecommitdiff
path: root/drivers/soc/apple/rtkit-internal.h
diff options
context:
space:
mode:
authorHector Martin <marcan@marcan.st>2023-03-14 13:46:47 +0300
committerHector Martin <marcan@marcan.st>2023-11-23 13:10:17 +0300
commitbb538effdc71397f2d08bb98df6b326d3b5b2333 (patch)
tree821db5aecd2cebe9c40c8294e77e5d98d06b9dfb /drivers/soc/apple/rtkit-internal.h
parent6e1457fcad3ff6b1885e64f5e393db5ff5ec2a42 (diff)
downloadlinux-bb538effdc71397f2d08bb98df6b326d3b5b2333.tar.xz
soc: apple: rtkit: Port to the internal mailbox driver
Now that we have a mailbox driver in drivers/soc/apple, port the RTKit code to it. This mostly just entails replacing calls through the mailbox subsystem with direct calls into the driver. Acked-by: Eric Curtin <ecurtin@redhat.com> Acked-by: Neal Gompa <neal@gompa.dev> Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Signed-off-by: Hector Martin <marcan@marcan.st>
Diffstat (limited to 'drivers/soc/apple/rtkit-internal.h')
-rw-r--r--drivers/soc/apple/rtkit-internal.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/soc/apple/rtkit-internal.h b/drivers/soc/apple/rtkit-internal.h
index 24bd619ec5e4..27c9fa745fd5 100644
--- a/drivers/soc/apple/rtkit-internal.h
+++ b/drivers/soc/apple/rtkit-internal.h
@@ -7,18 +7,17 @@
#ifndef _APPLE_RTKIT_INTERAL_H
#define _APPLE_RTKIT_INTERAL_H
-#include <linux/apple-mailbox.h>
#include <linux/bitfield.h>
#include <linux/bitmap.h>
#include <linux/completion.h>
#include <linux/dma-mapping.h>
#include <linux/io.h>
#include <linux/kernel.h>
-#include <linux/mailbox_client.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/soc/apple/rtkit.h>
#include <linux/workqueue.h>
+#include "mailbox.h"
#define APPLE_RTKIT_APP_ENDPOINT_START 0x20
#define APPLE_RTKIT_MAX_ENDPOINTS 0x100
@@ -28,10 +27,7 @@ struct apple_rtkit {
const struct apple_rtkit_ops *ops;
struct device *dev;
- const char *mbox_name;
- int mbox_idx;
- struct mbox_client mbox_cl;
- struct mbox_chan *mbox_chan;
+ struct apple_mbox *mbox;
struct completion epmap_completion;
struct completion iop_pwr_ack_completion;