#include "bcm47xxnflash.h"
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/bcma/bcma.h>
#define NFLASH_READY_RETRIES …
#define NFLASH_SECTOR_SIZE …
#define NCTL_CMD0 …
#define NCTL_COL …
#define NCTL_ROW …
#define NCTL_CMD1W …
#define NCTL_READ …
#define NCTL_WRITE …
#define NCTL_SPECADDR …
#define NCTL_READY …
#define NCTL_ERR …
#define NCTL_CSA …
#define NCTL_START …
static inline u8 bcm47xxnflash_ops_bcm4706_ns_to_cycle(u16 ns, u16 clock)
{ … }
static int bcm47xxnflash_ops_bcm4706_ctl_cmd(struct bcma_drv_cc *cc, u32 code)
{ … }
static int bcm47xxnflash_ops_bcm4706_poll(struct bcma_drv_cc *cc)
{ … }
static void bcm47xxnflash_ops_bcm4706_read(struct mtd_info *mtd, uint8_t *buf,
int len)
{ … }
static void bcm47xxnflash_ops_bcm4706_write(struct mtd_info *mtd,
const uint8_t *buf, int len)
{ … }
static void bcm47xxnflash_ops_bcm4706_cmd_ctrl(struct nand_chip *nand_chip,
int cmd, unsigned int ctrl)
{ … }
static void bcm47xxnflash_ops_bcm4706_select_chip(struct nand_chip *chip,
int cs)
{ … }
static int bcm47xxnflash_ops_bcm4706_dev_ready(struct nand_chip *nand_chip)
{ … }
static void bcm47xxnflash_ops_bcm4706_cmdfunc(struct nand_chip *nand_chip,
unsigned command, int column,
int page_addr)
{ … }
static u8 bcm47xxnflash_ops_bcm4706_read_byte(struct nand_chip *nand_chip)
{ … }
static void bcm47xxnflash_ops_bcm4706_read_buf(struct nand_chip *nand_chip,
uint8_t *buf, int len)
{ … }
static void bcm47xxnflash_ops_bcm4706_write_buf(struct nand_chip *nand_chip,
const uint8_t *buf, int len)
{ … }
int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n)
{ … }