diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:55:16 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-05-26 22:55:16 +0000 |
commit | 642012017c13f7562fc2e0d1ce92272814e3010c (patch) | |
tree | cd1b90723f84d6b89fec9989c1a3d4efab364143 /vl.h | |
parent | 2444ca413b1431d7249b6430172e4009ae368ad5 (diff) | |
download | hqemu-642012017c13f7562fc2e0d1ce92272814e3010c.zip hqemu-642012017c13f7562fc2e0d1ce92272814e3010c.tar.gz |
PowerPC prep/chrp/pmac support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@865 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.h')
-rw-r--r-- | vl.h | 27 |
1 files changed, 23 insertions, 4 deletions
@@ -594,15 +594,34 @@ void ppc_chrp_init(int ram_size, int vga_ram_size, int boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename); ppc_tb_t *cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq); -struct sysctrl_t; -int prep_NVRAM_init (struct sysctrl_t *sysctrl, uint32_t RAM_size, - uint32_t BIOS_size, int boot_device, - uint32_t kernel_image); +void PREP_debug_write (void *opaque, uint32_t addr, uint32_t val); extern CPUWriteMemoryFunc *PPC_io_write[]; extern CPUReadMemoryFunc *PPC_io_read[]; extern int prep_enabled; +/* NVRAM helpers */ +#include "hw/m48t59.h" + +void NVRAM_set_byte (m48t59_t *nvram, uint32_t addr, uint8_t value); +uint8_t NVRAM_get_byte (m48t59_t *nvram, uint32_t addr); +void NVRAM_set_word (m48t59_t *nvram, uint32_t addr, uint16_t value); +uint16_t NVRAM_get_word (m48t59_t *nvram, uint32_t addr); +void NVRAM_set_lword (m48t59_t *nvram, uint32_t addr, uint32_t value); +uint32_t NVRAM_get_lword (m48t59_t *nvram, uint32_t addr); +void NVRAM_set_string (m48t59_t *nvram, uint32_t addr, + const unsigned char *str, uint32_t max); +int NVRAM_get_string (m48t59_t *nvram, uint8_t *dst, uint16_t addr, int max); +void NVRAM_set_crc (m48t59_t *nvram, uint32_t addr, + uint32_t start, uint32_t count); +int PPC_NVRAM_set_params (m48t59_t *nvram, uint16_t NVRAM_size, + const unsigned char *arch, + uint32_t RAM_size, int boot_device, + uint32_t kernel_image, uint32_t kernel_size, + uint32_t cmdline, uint32_t cmdline_size, + uint32_t initrd_image, uint32_t initrd_size, + uint32_t NVRAM_image); + /* monitor.c */ void monitor_init(void); void term_printf(const char *fmt, ...) __attribute__ ((__format__ (__printf__, 1, 2))); |