Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __BCM47XXNFLASH_H
0003 #define __BCM47XXNFLASH_H
0004 
0005 #ifndef pr_fmt
0006 #define pr_fmt(fmt)     KBUILD_MODNAME ": " fmt
0007 #endif
0008 
0009 #include <linux/mtd/mtd.h>
0010 #include <linux/mtd/rawnand.h>
0011 
0012 struct bcm47xxnflash {
0013     struct bcma_drv_cc *cc;
0014 
0015     struct nand_chip nand_chip;
0016 
0017     unsigned curr_command;
0018     int curr_page_addr;
0019     int curr_column;
0020 
0021     u8 id_data[8];
0022 };
0023 
0024 int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n);
0025 
0026 #endif /* BCM47XXNFLASH */