mirror of
https://github.com/torvalds/linux.git
synced 2026-05-14 01:08:22 +02:00
mailbox: remove superfluous internal header
Quite some controller drivers use the defines from the internal header already. This prevents controller drivers outside the mailbox directory. Move the defines to the public controller header to allow this again as the defines are not strictly internal anyhow. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
parent
d81e6703b8
commit
89e5d7d616
|
|
@ -12,8 +12,6 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
/*
|
||||
* The maximum transmission size is 32 words or 128 bytes.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define MBOX_CHAN_MAX 32
|
||||
|
||||
#define MBOX_RX 0x0
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define IMX_MU_CHANS 24
|
||||
/* TX0/RX0/RXDB[0-3] */
|
||||
#define IMX_MU_SCU_CHANS 6
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
#include <linux/property.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define STI_MBOX_INST_MAX 4 /* RAM saving: Max supported instances */
|
||||
#define STI_MBOX_CHAN_MAX 20 /* RAM saving: Max supported channels */
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@
|
|||
#include <linux/property.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
static LIST_HEAD(mbox_cons);
|
||||
static DEFINE_MUTEX(con_mutex);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef __MAILBOX_H
|
||||
#define __MAILBOX_H
|
||||
|
||||
#include <linux/bits.h>
|
||||
|
||||
#define TXDONE_BY_IRQ BIT(0) /* controller has remote RTR irq */
|
||||
#define TXDONE_BY_POLL BIT(1) /* controller can read status of last TX */
|
||||
#define TXDONE_BY_ACK BIT(2) /* S/W ACK received by Client ticks the TX */
|
||||
|
||||
#endif /* __MAILBOX_H */
|
||||
|
|
@ -22,8 +22,6 @@
|
|||
#include <linux/pm_runtime.h>
|
||||
#include <linux/mailbox_controller.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define MAILBOX_REVISION 0x000
|
||||
#define MAILBOX_MESSAGE(m) (0x040 + 4 * (m))
|
||||
#define MAILBOX_FIFOSTATUS(m) (0x080 + 4 * (m))
|
||||
|
|
|
|||
|
|
@ -59,8 +59,6 @@
|
|||
#include <linux/io-64-nonatomic-lo-hi.h>
|
||||
#include <acpi/pcc.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define MBOX_IRQ_NAME "pcc-mbox"
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@
|
|||
|
||||
#include <dt-bindings/mailbox/tegra186-hsp.h>
|
||||
|
||||
#include "mailbox.h"
|
||||
|
||||
#define HSP_INT_IE(x) (0x100 + ((x) * 4))
|
||||
#define HSP_INT_IV 0x300
|
||||
#define HSP_INT_IR 0x304
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#ifndef __MAILBOX_CONTROLLER_H
|
||||
#define __MAILBOX_CONTROLLER_H
|
||||
|
||||
#include <linux/bits.h>
|
||||
#include <linux/completion.h>
|
||||
#include <linux/device.h>
|
||||
#include <linux/hrtimer.h>
|
||||
|
|
@ -11,6 +12,10 @@
|
|||
|
||||
struct mbox_chan;
|
||||
|
||||
#define TXDONE_BY_IRQ BIT(0) /* controller has remote RTR irq */
|
||||
#define TXDONE_BY_POLL BIT(1) /* controller can read status of last TX */
|
||||
#define TXDONE_BY_ACK BIT(2) /* S/W ACK received by Client ticks the TX */
|
||||
|
||||
/**
|
||||
* struct mbox_chan_ops - methods to control mailbox channels
|
||||
* @send_data: The API asks the MBOX controller driver, in atomic
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user