linux/drivers/net/ethernet/marvell/octeontx2/af/mbox.c

// SPDX-License-Identifier: GPL-2.0
/* Marvell RVU Admin Function driver
 *
 * Copyright (C) 2018 Marvell.
 *
 */

#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/pci.h>

#include "rvu_reg.h"
#include "mbox.h"
#include "rvu_trace.h"

static const u16 msgs_offset =;

void __otx2_mbox_reset(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

void otx2_mbox_reset(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

void otx2_mbox_destroy(struct otx2_mbox *mbox)
{}
EXPORT_SYMBOL();

static int otx2_mbox_setup(struct otx2_mbox *mbox, struct pci_dev *pdev,
			   void *reg_base, int direction, int ndevs)
{}

int otx2_mbox_init(struct otx2_mbox *mbox, void *hwbase, struct pci_dev *pdev,
		   void *reg_base, int direction, int ndevs)
{}
EXPORT_SYMBOL();

/* Initialize mailbox with the set of mailbox region addresses
 * in the array hwbase.
 */
int otx2_mbox_regions_init(struct otx2_mbox *mbox, void **hwbase,
			   struct pci_dev *pdev, void *reg_base,
			   int direction, int ndevs, unsigned long *pf_bmap)
{}
EXPORT_SYMBOL();

int otx2_mbox_wait_for_rsp(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

int otx2_mbox_busy_poll_for_rsp(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

static void otx2_mbox_msg_send_data(struct otx2_mbox *mbox, int devid, u64 data)
{}

void otx2_mbox_msg_send(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

void otx2_mbox_msg_send_up(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

bool otx2_mbox_wait_for_zero(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

struct mbox_msghdr *otx2_mbox_alloc_msg_rsp(struct otx2_mbox *mbox, int devid,
					    int size, int size_rsp)
{}
EXPORT_SYMBOL();

struct mbox_msghdr *otx2_mbox_get_rsp(struct otx2_mbox *mbox, int devid,
				      struct mbox_msghdr *msg)
{}
EXPORT_SYMBOL();

int otx2_mbox_check_rsp_msgs(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

int
otx2_reply_invalid_msg(struct otx2_mbox *mbox, int devid, u16 pcifunc, u16 id)
{}
EXPORT_SYMBOL();

bool otx2_mbox_nonempty(struct otx2_mbox *mbox, int devid)
{}
EXPORT_SYMBOL();

const char *otx2_mbox_id2name(u16 id)
{}
EXPORT_SYMBOL();

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