Revision 01e0451a hw/flash.h
b/hw/flash.h | ||
---|---|---|
1 |
#include "memory.h" |
|
2 |
|
|
3 | 1 |
/* NOR flash devices */ |
4 | 2 |
typedef struct pflash_t pflash_t; |
5 | 3 |
|
6 | 4 |
/* pflash_cfi01.c */ |
7 |
extern const MemoryRegionOps pflash_cfi01_ops_be; |
|
8 |
extern const MemoryRegionOps pflash_cfi01_ops_le; |
|
9 |
extern const MemoryRegionOps pflash_cfi02_ops_be; |
|
10 |
extern const MemoryRegionOps pflash_cfi02_ops_le; |
|
11 |
|
|
12 |
pflash_t *pflash_cfi01_register(target_phys_addr_t base, MemoryRegion *mem, |
|
5 |
pflash_t *pflash_cfi01_register(target_phys_addr_t base, ram_addr_t off, |
|
13 | 6 |
BlockDriverState *bs, |
14 | 7 |
uint32_t sector_len, int nb_blocs, int width, |
15 | 8 |
uint16_t id0, uint16_t id1, |
16 |
uint16_t id2, uint16_t id3); |
|
9 |
uint16_t id2, uint16_t id3, int be);
|
|
17 | 10 |
|
18 | 11 |
/* pflash_cfi02.c */ |
19 |
pflash_t *pflash_cfi02_register(target_phys_addr_t base, MemoryRegion *mem,
|
|
12 |
pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off,
|
|
20 | 13 |
BlockDriverState *bs, uint32_t sector_len, |
21 | 14 |
int nb_blocs, int nb_mappings, int width, |
22 | 15 |
uint16_t id0, uint16_t id1, |
23 | 16 |
uint16_t id2, uint16_t id3, |
24 |
uint16_t unlock_addr0, uint16_t unlock_addr1); |
|
17 |
uint16_t unlock_addr0, uint16_t unlock_addr1, |
|
18 |
int be); |
|
25 | 19 |
|
26 | 20 |
/* nand.c */ |
27 | 21 |
DeviceState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id); |
Also available in: Unified diff