linux/drivers/spi/spi-bcm-qspi.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright 2016 Broadcom
 */

#ifndef __SPI_BCM_QSPI_H__
#define __SPI_BCM_QSPI_H__

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

/* BSPI interrupt masks */
#define INTR_BSPI_LR_OVERREAD_MASK
#define INTR_BSPI_LR_SESSION_DONE_MASK
#define INTR_BSPI_LR_IMPATIENT_MASK
#define INTR_BSPI_LR_SESSION_ABORTED_MASK
#define INTR_BSPI_LR_FULLNESS_REACHED_MASK

#define BSPI_LR_INTERRUPTS_DATA

#define BSPI_LR_INTERRUPTS_ERROR

#define BSPI_LR_INTERRUPTS_ALL

/* MSPI Interrupt masks */
#define INTR_MSPI_HALTED_MASK
#define INTR_MSPI_DONE_MASK

#define MSPI_INTERRUPTS_ALL

#define QSPI_INTERRUPTS_ALL

struct platform_device;
struct dev_pm_ops;

enum {};

struct bcm_qspi_soc_intc {};

/* Read controller register*/
static inline u32 bcm_qspi_readl(bool be, void __iomem *addr)
{}

/* Write controller register*/
static inline void bcm_qspi_writel(bool be,
				   unsigned int data, void __iomem *addr)
{}

static inline u32 get_qspi_mask(int type)
{}

/* The common driver functions to be called by the SoC platform driver */
int bcm_qspi_probe(struct platform_device *pdev,
		   struct bcm_qspi_soc_intc *soc_intc);
void bcm_qspi_remove(struct platform_device *pdev);

/* pm_ops used by the SoC platform driver called on PM suspend/resume */
extern const struct dev_pm_ops bcm_qspi_pm_ops;

#endif /* __SPI_BCM_QSPI_H__ */