root / hw / nvram.h @ 9a6ee9fd
History | View | Annotate | Download (1.3 kB)
1 | 87ecb68b | pbrook | #ifndef NVRAM_H
|
---|---|---|---|
2 | 87ecb68b | pbrook | #define NVRAM_H
|
3 | 87ecb68b | pbrook | |
4 | 87ecb68b | pbrook | /* NVRAM helpers */
|
5 | c227f099 | Anthony Liguori | typedef uint32_t (*nvram_read_t)(void *private, uint32_t addr); |
6 | c227f099 | Anthony Liguori | typedef void (*nvram_write_t)(void *private, uint32_t addr, uint32_t val); |
7 | c227f099 | Anthony Liguori | typedef struct nvram_t { |
8 | 87ecb68b | pbrook | void *opaque;
|
9 | c227f099 | Anthony Liguori | nvram_read_t read_fn; |
10 | c227f099 | Anthony Liguori | nvram_write_t write_fn; |
11 | c227f099 | Anthony Liguori | } nvram_t; |
12 | 87ecb68b | pbrook | |
13 | c227f099 | Anthony Liguori | uint32_t NVRAM_get_lword (nvram_t *nvram, uint32_t addr); |
14 | c227f099 | Anthony Liguori | int NVRAM_get_string (nvram_t *nvram, uint8_t *dst, uint16_t addr, int max); |
15 | 43448292 | Blue Swirl | |
16 | c227f099 | Anthony Liguori | int PPC_NVRAM_set_params (nvram_t *nvram, uint16_t NVRAM_size,
|
17 | b55266b5 | blueswir1 | const char *arch, |
18 | 87ecb68b | pbrook | uint32_t RAM_size, int boot_device,
|
19 | 87ecb68b | pbrook | uint32_t kernel_image, uint32_t kernel_size, |
20 | 87ecb68b | pbrook | const char *cmdline, |
21 | 87ecb68b | pbrook | uint32_t initrd_image, uint32_t initrd_size, |
22 | 87ecb68b | pbrook | uint32_t NVRAM_image, |
23 | 87ecb68b | pbrook | int width, int height, int depth); |
24 | 43a34704 | Blue Swirl | typedef struct M48t59State M48t59State; |
25 | 87ecb68b | pbrook | |
26 | 87ecb68b | pbrook | void m48t59_write (void *private, uint32_t addr, uint32_t val); |
27 | 87ecb68b | pbrook | uint32_t m48t59_read (void *private, uint32_t addr);
|
28 | 87ecb68b | pbrook | void m48t59_toggle_lock (void *private, int lock); |
29 | 48a18b3c | Hervé Poussineau | M48t59State *m48t59_init_isa(ISABus *bus, uint32_t io_base, uint16_t size, |
30 | 48a18b3c | Hervé Poussineau | int type);
|
31 | a8170e5e | Avi Kivity | M48t59State *m48t59_init(qemu_irq IRQ, hwaddr mem_base, |
32 | 43a34704 | Blue Swirl | uint32_t io_base, uint16_t size, int type);
|
33 | 87ecb68b | pbrook | |
34 | 87ecb68b | pbrook | #endif /* !NVRAM_H */ |