#include <linux/device.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include "brcmnand.h"
struct bcm6368_nand_soc { … };
#define BCM6368_NAND_INT …
#define BCM6368_NAND_STATUS_SHIFT …
#define BCM6368_NAND_STATUS_MASK …
#define BCM6368_NAND_ENABLE_SHIFT …
#define BCM6368_NAND_ENABLE_MASK …
#define BCM6368_NAND_BASE_ADDR0 …
#define BCM6368_NAND_BASE_ADDR1 …
enum { … };
static bool bcm6368_nand_intc_ack(struct brcmnand_soc *soc)
{ … }
static void bcm6368_nand_intc_set(struct brcmnand_soc *soc, bool en)
{ … }
static int bcm6368_nand_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id bcm6368_nand_of_match[] = …;
MODULE_DEVICE_TABLE(of, bcm6368_nand_of_match);
static struct platform_driver bcm6368_nand_driver = …;
module_platform_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;