bcm47xxnflash.h 454 B

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