1 #ifndef __BCM47XXNFLASH_H 2 #define __BCM47XXNFLASH_H 3 4 #ifndef pr_fmt 5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 6 #endif 7 8 #include <linux/mtd/mtd.h> 9 #include <linux/mtd/nand.h> 10 11 struct bcm47xxnflash { 12 struct bcma_drv_cc *cc; 13 14 struct nand_chip nand_chip; 15 struct mtd_info mtd; 16 17 unsigned curr_command; 18 int curr_page_addr; 19 int curr_column; 20 21 u8 id_data[8]; 22 }; 23 24 int bcm47xxnflash_ops_bcm4706_init(struct bcm47xxnflash *b47n); 25 26 #endif /* BCM47XXNFLASH */ 27