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