Revision 99a0949b hw/flash.h
b/hw/flash.h | ||
---|---|---|
1 | 1 |
/* NOR flash devices */ |
2 |
typedef struct pflash_t pflash_t;
|
|
2 |
typedef struct pflash a_pflash;
|
|
3 | 3 |
|
4 | 4 |
/* pflash_cfi01.c */ |
5 |
pflash_t *pflash_cfi01_register(target_phys_addr_t base, ram_addr_t off,
|
|
5 |
a_pflash *pflash_cfi01_register(a_target_phys_addr base, a_ram_addr off,
|
|
6 | 6 |
BlockDriverState *bs, |
7 | 7 |
uint32_t sector_len, int nb_blocs, int width, |
8 | 8 |
uint16_t id0, uint16_t id1, |
9 | 9 |
uint16_t id2, uint16_t id3); |
10 | 10 |
|
11 | 11 |
/* pflash_cfi02.c */ |
12 |
pflash_t *pflash_cfi02_register(target_phys_addr_t base, ram_addr_t off,
|
|
12 |
a_pflash *pflash_cfi02_register(a_target_phys_addr base, a_ram_addr off,
|
|
13 | 13 |
BlockDriverState *bs, uint32_t sector_len, |
14 | 14 |
int nb_blocs, int nb_mappings, int width, |
15 | 15 |
uint16_t id0, uint16_t id1, |
... | ... | |
36 | 36 |
#define NAND_MFR_MICRON 0x2c |
37 | 37 |
|
38 | 38 |
/* onenand.c */ |
39 |
void onenand_base_update(void *opaque, target_phys_addr_t new);
|
|
39 |
void onenand_base_update(void *opaque, a_target_phys_addr new);
|
|
40 | 40 |
void onenand_base_unmap(void *opaque); |
41 | 41 |
void *onenand_init(uint32_t id, int regshift, qemu_irq irq); |
42 | 42 |
void *onenand_raw_otp(void *opaque); |
Also available in: Unified diff