rtkit-internal.h (4f2c0a4acffbec01079c28f839422e64ddeff004) | rtkit-internal.h (bb538effdc71397f2d08bb98df6b326d3b5b2333) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 2/* 3 * Apple RTKit IPC library 4 * Copyright (C) The Asahi Linux Contributors 5 */ 6 7#ifndef _APPLE_RTKIT_INTERAL_H 8#define _APPLE_RTKIT_INTERAL_H 9 | 1/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ 2/* 3 * Apple RTKit IPC library 4 * Copyright (C) The Asahi Linux Contributors 5 */ 6 7#ifndef _APPLE_RTKIT_INTERAL_H 8#define _APPLE_RTKIT_INTERAL_H 9 |
10#include <linux/apple-mailbox.h> | |
11#include <linux/bitfield.h> 12#include <linux/bitmap.h> 13#include <linux/completion.h> 14#include <linux/dma-mapping.h> 15#include <linux/io.h> 16#include <linux/kernel.h> | 10#include <linux/bitfield.h> 11#include <linux/bitmap.h> 12#include <linux/completion.h> 13#include <linux/dma-mapping.h> 14#include <linux/io.h> 15#include <linux/kernel.h> |
17#include <linux/mailbox_client.h> | |
18#include <linux/module.h> 19#include <linux/slab.h> 20#include <linux/soc/apple/rtkit.h> 21#include <linux/workqueue.h> | 16#include <linux/module.h> 17#include <linux/slab.h> 18#include <linux/soc/apple/rtkit.h> 19#include <linux/workqueue.h> |
20#include "mailbox.h" |
|
22 23#define APPLE_RTKIT_APP_ENDPOINT_START 0x20 24#define APPLE_RTKIT_MAX_ENDPOINTS 0x100 25 26struct apple_rtkit { 27 void *cookie; 28 const struct apple_rtkit_ops *ops; 29 struct device *dev; 30 | 21 22#define APPLE_RTKIT_APP_ENDPOINT_START 0x20 23#define APPLE_RTKIT_MAX_ENDPOINTS 0x100 24 25struct apple_rtkit { 26 void *cookie; 27 const struct apple_rtkit_ops *ops; 28 struct device *dev; 29 |
31 const char *mbox_name; 32 int mbox_idx; 33 struct mbox_client mbox_cl; 34 struct mbox_chan *mbox_chan; | 30 struct apple_mbox *mbox; |
35 36 struct completion epmap_completion; 37 struct completion iop_pwr_ack_completion; 38 struct completion ap_pwr_ack_completion; 39 40 int boot_result; 41 int version; 42 --- 20 unchanged lines hidden --- | 31 32 struct completion epmap_completion; 33 struct completion iop_pwr_ack_completion; 34 struct completion ap_pwr_ack_completion; 35 36 int boot_result; 37 int version; 38 --- 20 unchanged lines hidden --- |