bcm47xxnflash.h 474 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __BCM47XXNFLASH_H
  3. #define __BCM47XXNFLASH_H
  4. #ifndef pr_fmt
  5. #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
  6. #endif
  7. #include <linux/mtd/mtd.h>
  8. #include <linux/mtd/rawnand.h>
  9. struct bcm47xxnflash {
  10. struct bcma_drv_cc *cc;
  11. struct nand_chip nand_chip;
  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 */