#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi-mem.h>
#include <linux/spi/spi_bitbang.h>
#include <linux/bitops.h>
#include <linux/clk.h>
#include <linux/err.h>
#define DRV_NAME …
#define ATH79_SPI_RRW_DELAY_FACTOR …
#define MHZ …
#define AR71XX_SPI_REG_FS …
#define AR71XX_SPI_REG_CTRL …
#define AR71XX_SPI_REG_IOC …
#define AR71XX_SPI_REG_RDS …
#define AR71XX_SPI_FS_GPIO …
#define AR71XX_SPI_IOC_DO …
#define AR71XX_SPI_IOC_CLK …
#define AR71XX_SPI_IOC_CS(n) …
struct ath79_spi { … };
static inline u32 ath79_spi_rr(struct ath79_spi *sp, unsigned int reg)
{ … }
static inline void ath79_spi_wr(struct ath79_spi *sp, unsigned int reg, u32 val)
{ … }
static inline struct ath79_spi *ath79_spidev_to_sp(struct spi_device *spi)
{ … }
static inline void ath79_spi_delay(struct ath79_spi *sp, unsigned int nsecs)
{ … }
static void ath79_spi_chipselect(struct spi_device *spi, int is_active)
{ … }
static void ath79_spi_enable(struct ath79_spi *sp)
{ … }
static void ath79_spi_disable(struct ath79_spi *sp)
{ … }
static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned int nsecs,
u32 word, u8 bits, unsigned flags)
{ … }
static int ath79_exec_mem_op(struct spi_mem *mem,
const struct spi_mem_op *op)
{ … }
static const struct spi_controller_mem_ops ath79_mem_ops = …;
static int ath79_spi_probe(struct platform_device *pdev)
{ … }
static void ath79_spi_remove(struct platform_device *pdev)
{ … }
static void ath79_spi_shutdown(struct platform_device *pdev)
{ … }
static const struct of_device_id ath79_spi_of_match[] = …;
MODULE_DEVICE_TABLE(of, ath79_spi_of_match);
static struct platform_driver ath79_spi_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;