linux/drivers/mailbox/armada-37xx-rwtm-mailbox.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * rWTM BIU Mailbox driver for Armada 37xx
 *
 * Author: Marek Behún <[email protected]>
 */

#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/mailbox_controller.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/armada-37xx-rwtm-mailbox.h>

#define DRIVER_NAME

/* relative to rWTM BIU Mailbox Registers */
#define RWTM_MBOX_PARAM(i)
#define RWTM_MBOX_COMMAND
#define RWTM_MBOX_RETURN_STATUS
#define RWTM_MBOX_STATUS(i)
#define RWTM_MBOX_FIFO_STATUS
#define FIFO_STS_RDY
#define FIFO_STS_CNTR_MASK
#define FIFO_STS_CNTR_MAX

#define RWTM_HOST_INT_RESET
#define RWTM_HOST_INT_MASK
#define SP_CMD_COMPLETE
#define SP_CMD_QUEUE_FULL_ACCESS
#define SP_CMD_QUEUE_FULL

struct a37xx_mbox {};

static void a37xx_mbox_receive(struct mbox_chan *chan)
{}

static irqreturn_t a37xx_mbox_irq_handler(int irq, void *data)
{}

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

static int a37xx_mbox_startup(struct mbox_chan *chan)
{}

static void a37xx_mbox_shutdown(struct mbox_chan *chan)
{}

static const struct mbox_chan_ops a37xx_mbox_ops =;

static int armada_37xx_mbox_probe(struct platform_device *pdev)
{}


static const struct of_device_id armada_37xx_mbox_match[] =;

MODULE_DEVICE_TABLE(of, armada_37xx_mbox_match);

static struct platform_driver armada_37xx_mbox_driver =;

module_platform_driver();

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