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