2013-01-07 04:28:50 +08:00
|
|
|
#ifndef __BCM47XXSFLASH_H
|
|
|
|
#define __BCM47XXSFLASH_H
|
|
|
|
|
|
|
|
#include <linux/mtd/mtd.h>
|
|
|
|
|
2013-03-06 19:33:17 +08:00
|
|
|
struct bcma_drv_cc;
|
|
|
|
|
2013-03-06 19:34:19 +08:00
|
|
|
enum bcm47xxsflash_type {
|
|
|
|
BCM47XXSFLASH_TYPE_ATMEL,
|
|
|
|
BCM47XXSFLASH_TYPE_ST,
|
|
|
|
};
|
|
|
|
|
2013-01-07 04:28:50 +08:00
|
|
|
struct bcm47xxsflash {
|
2013-03-06 19:33:17 +08:00
|
|
|
struct bcma_drv_cc *bcma_cc;
|
|
|
|
|
2013-03-06 19:34:19 +08:00
|
|
|
enum bcm47xxsflash_type type;
|
|
|
|
|
2013-01-07 04:28:50 +08:00
|
|
|
u32 window;
|
|
|
|
u32 blocksize;
|
|
|
|
u16 numblocks;
|
|
|
|
u32 size;
|
|
|
|
|
|
|
|
struct mtd_info mtd;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* BCM47XXSFLASH */
|