linux/include/linux/reset/bcm63xx_pmb.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Broadcom BCM63xx Processor Monitor Bus shared routines (SMP and reset)
 *
 * Copyright (C) 2015, Broadcom Corporation
 * Author: Florian Fainelli <[email protected]>
 */
#ifndef __BCM63XX_PMB_H
#define __BCM63XX_PMB_H

#include <linux/io.h>
#include <linux/types.h>
#include <linux/delay.h>
#include <linux/err.h>

/* PMB Master controller register */
#define PMB_CTRL
#define PMC_PMBM_START
#define PMC_PMBM_TIMEOUT
#define PMC_PMBM_SLAVE_ERR
#define PMC_PMBM_BUSY
#define PMC_PMBM_READ
#define PMC_PMBM_WRITE
#define PMB_WR_DATA
#define PMB_TIMEOUT
#define PMB_RD_DATA

#define PMB_BUS_ID_SHIFT

/* Perform the low-level PMB master operation, shared between reads and
 * writes.
 */
static inline int __bpcm_do_op(void __iomem *master, unsigned int addr,
			       u32 off, u32 op)
{}

static inline int bpcm_rd(void __iomem *master, unsigned int addr,
			  u32 off, u32 *val)
{}

static inline int bpcm_wr(void __iomem *master, unsigned int addr,
			  u32 off, u32 val)
{}

#endif /* __BCM63XX_PMB_H */