#ifndef __SPI_BCM_QSPI_H__
#define __SPI_BCM_QSPI_H__
#include <linux/types.h>
#include <linux/io.h>
#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 …
#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 { … };
static inline u32 bcm_qspi_readl(bool be, void __iomem *addr)
{ … }
static inline void bcm_qspi_writel(bool be,
unsigned int data, void __iomem *addr)
{ … }
static inline u32 get_qspi_mask(int type)
{ … }
int bcm_qspi_probe(struct platform_device *pdev,
struct bcm_qspi_soc_intc *soc_intc);
void bcm_qspi_remove(struct platform_device *pdev);
extern const struct dev_pm_ops bcm_qspi_pm_ops;
#endif