flash.h (940d5b132fab085bd8ec2bcfa5c1dd119785b217) flash.h (ce14710f4fdfca32123d7efd3ddcbee984ef0ae5)
1#ifndef HW_FLASH_H
2#define HW_FLASH_H
3
4/* NOR flash devices */
5
6#include "exec/memory.h"
7
8/* pflash_cfi01.c */
9
10#define TYPE_PFLASH_CFI01 "cfi.pflash01"
11#define PFLASH_CFI01(obj) \
12 OBJECT_CHECK(PFlashCFI01, (obj), TYPE_PFLASH_CFI01)
13
14typedef struct PFlashCFI01 PFlashCFI01;
15
16PFlashCFI01 *pflash_cfi01_register(hwaddr base,
17 const char *name,
18 hwaddr size,
19 BlockBackend *blk,
1#ifndef HW_FLASH_H
2#define HW_FLASH_H
3
4/* NOR flash devices */
5
6#include "exec/memory.h"
7
8/* pflash_cfi01.c */
9
10#define TYPE_PFLASH_CFI01 "cfi.pflash01"
11#define PFLASH_CFI01(obj) \
12 OBJECT_CHECK(PFlashCFI01, (obj), TYPE_PFLASH_CFI01)
13
14typedef struct PFlashCFI01 PFlashCFI01;
15
16PFlashCFI01 *pflash_cfi01_register(hwaddr base,
17 const char *name,
18 hwaddr size,
19 BlockBackend *blk,
20 uint32_t sector_len, int nb_blocs,
20 uint32_t sector_len,
21 int width,
22 uint16_t id0, uint16_t id1,
23 uint16_t id2, uint16_t id3,
24 int be);
25MemoryRegion *pflash_cfi01_get_memory(PFlashCFI01 *fl);
26
27/* pflash_cfi02.c */
28
29#define TYPE_PFLASH_CFI02 "cfi.pflash02"
30#define PFLASH_CFI02(obj) \
31 OBJECT_CHECK(PFlashCFI02, (obj), TYPE_PFLASH_CFI02)
32
33typedef struct PFlashCFI02 PFlashCFI02;
34
35PFlashCFI02 *pflash_cfi02_register(hwaddr base,
36 const char *name,
37 hwaddr size,
38 BlockBackend *blk,
21 int width,
22 uint16_t id0, uint16_t id1,
23 uint16_t id2, uint16_t id3,
24 int be);
25MemoryRegion *pflash_cfi01_get_memory(PFlashCFI01 *fl);
26
27/* pflash_cfi02.c */
28
29#define TYPE_PFLASH_CFI02 "cfi.pflash02"
30#define PFLASH_CFI02(obj) \
31 OBJECT_CHECK(PFlashCFI02, (obj), TYPE_PFLASH_CFI02)
32
33typedef struct PFlashCFI02 PFlashCFI02;
34
35PFlashCFI02 *pflash_cfi02_register(hwaddr base,
36 const char *name,
37 hwaddr size,
38 BlockBackend *blk,
39 uint32_t sector_len, int nb_blocs,
39 uint32_t sector_len,
40 int nb_mappings,
41 int width,
42 uint16_t id0, uint16_t id1,
43 uint16_t id2, uint16_t id3,
44 uint16_t unlock_addr0,
45 uint16_t unlock_addr1,
46 int be);
47

--- 33 unchanged lines hidden ---
40 int nb_mappings,
41 int width,
42 uint16_t id0, uint16_t id1,
43 uint16_t id2, uint16_t id3,
44 uint16_t unlock_addr0,
45 uint16_t unlock_addr1,
46 int be);
47

--- 33 unchanged lines hidden ---