#include <asm/unaligned.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/platform_data/b53.h>
#include "b53_priv.h"
#define B53_SPI_DATA …
#define B53_SPI_STATUS …
#define B53_SPI_CMD_SPIF …
#define B53_SPI_CMD_RACK …
#define B53_SPI_CMD_READ …
#define B53_SPI_CMD_WRITE …
#define B53_SPI_CMD_NORMAL …
#define B53_SPI_CMD_FAST …
#define B53_SPI_PAGE_SELECT …
static inline int b53_spi_read_reg(struct spi_device *spi, u8 reg, u8 *val,
unsigned int len)
{ … }
static inline int b53_spi_clear_status(struct spi_device *spi)
{ … }
static inline int b53_spi_set_page(struct spi_device *spi, u8 page)
{ … }
static inline int b53_prepare_reg_access(struct spi_device *spi, u8 page)
{ … }
static int b53_spi_prepare_reg_read(struct spi_device *spi, u8 reg)
{ … }
static int b53_spi_read(struct b53_device *dev, u8 page, u8 reg, u8 *data,
unsigned int len)
{ … }
static int b53_spi_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val)
{ … }
static int b53_spi_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val)
{ … }
static int b53_spi_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val)
{ … }
static int b53_spi_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val)
{ … }
static int b53_spi_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val)
{ … }
static int b53_spi_write8(struct b53_device *dev, u8 page, u8 reg, u8 value)
{ … }
static int b53_spi_write16(struct b53_device *dev, u8 page, u8 reg, u16 value)
{ … }
static int b53_spi_write32(struct b53_device *dev, u8 page, u8 reg, u32 value)
{ … }
static int b53_spi_write48(struct b53_device *dev, u8 page, u8 reg, u64 value)
{ … }
static int b53_spi_write64(struct b53_device *dev, u8 page, u8 reg, u64 value)
{ … }
static const struct b53_io_ops b53_spi_ops = …;
static int b53_spi_probe(struct spi_device *spi)
{ … }
static void b53_spi_remove(struct spi_device *spi)
{ … }
static void b53_spi_shutdown(struct spi_device *spi)
{ … }
static const struct of_device_id b53_spi_of_match[] = …;
MODULE_DEVICE_TABLE(of, b53_spi_of_match);
static const struct spi_device_id b53_spi_ids[] = …;
MODULE_DEVICE_TABLE(spi, b53_spi_ids);
static struct spi_driver b53_spi_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;