Revision cfe5f011 hw/flash.h
b/hw/flash.h | ||
---|---|---|
1 | 1 |
/* NOR flash devices */ |
2 |
|
|
3 |
#include "memory.h" |
|
4 |
|
|
2 | 5 |
typedef struct pflash_t pflash_t; |
3 | 6 |
|
4 | 7 |
/* pflash_cfi01.c */ |
5 |
pflash_t *pflash_cfi01_register(target_phys_addr_t base, ram_addr_t off, |
|
8 |
pflash_t *pflash_cfi01_register(target_phys_addr_t base, |
|
9 |
DeviceState *qdev, const char *name, |
|
10 |
target_phys_addr_t size, |
|
6 | 11 |
BlockDriverState *bs, |
7 | 12 |
uint32_t sector_len, int nb_blocs, int width, |
8 | 13 |
uint16_t id0, uint16_t id1, |
9 | 14 |
uint16_t id2, uint16_t id3, int be); |
10 | 15 |
|
11 | 16 |
/* pflash_cfi02.c */ |
12 |
pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off, |
|
17 |
pflash_t *pflash_cfi02_register(target_phys_addr_t base, |
|
18 |
DeviceState *qdev, const char *name, |
|
19 |
target_phys_addr_t size, |
|
13 | 20 |
BlockDriverState *bs, uint32_t sector_len, |
14 | 21 |
int nb_blocs, int nb_mappings, int width, |
15 | 22 |
uint16_t id0, uint16_t id1, |
... | ... | |
17 | 24 |
uint16_t unlock_addr0, uint16_t unlock_addr1, |
18 | 25 |
int be); |
19 | 26 |
|
27 |
MemoryRegion *pflash_cfi01_get_memory(pflash_t *fl); |
|
28 |
|
|
20 | 29 |
/* nand.c */ |
21 | 30 |
DeviceState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id); |
22 | 31 |
void nand_setpins(DeviceState *dev, uint8_t cle, uint8_t ale, |
Also available in: Unified diff