linux/drivers/mailbox/rockchip-mailbox.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015, Fuzhou Rockchip Electronics Co., Ltd
 */

#include <linux/clk.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mailbox_controller.h>
#include <linux/of.h>
#include <linux/module.h>
#include <linux/platform_device.h>

#define MAILBOX_A2B_INTEN
#define MAILBOX_A2B_STATUS
#define MAILBOX_A2B_CMD(x)
#define MAILBOX_A2B_DAT(x)

#define MAILBOX_B2A_INTEN
#define MAILBOX_B2A_STATUS
#define MAILBOX_B2A_CMD(x)
#define MAILBOX_B2A_DAT(x)

struct rockchip_mbox_msg {};

struct rockchip_mbox_data {};

struct rockchip_mbox_chan {};

struct rockchip_mbox {};

static int rockchip_mbox_send_data(struct mbox_chan *chan, void *data)
{}

static int rockchip_mbox_startup(struct mbox_chan *chan)
{}

static void rockchip_mbox_shutdown(struct mbox_chan *chan)
{}

static const struct mbox_chan_ops rockchip_mbox_chan_ops =;

static irqreturn_t rockchip_mbox_irq(int irq, void *dev_id)
{}

static irqreturn_t rockchip_mbox_isr(int irq, void *dev_id)
{}

static const struct rockchip_mbox_data rk3368_drv_data =;

static const struct of_device_id rockchip_mbox_of_match[] =;
MODULE_DEVICE_TABLE(of, rockchp_mbox_of_match);

static int rockchip_mbox_probe(struct platform_device *pdev)
{}

static struct platform_driver rockchip_mbox_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_AUTHOR();