From 74e9115560fbdd6342f3e1a42ced6bd76b227f82 Mon Sep 17 00:00:00 2001 From: j_mayer Date: Sun, 4 Nov 2007 01:16:04 +0000 Subject: Fix PowerMac NVRAM device. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3521 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ppc_mac.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hw/ppc_mac.h') diff --git a/hw/ppc_mac.h b/hw/ppc_mac.h index 0ff80ab..7ed7b55 100644 --- a/hw/ppc_mac.h +++ b/hw/ppc_mac.h @@ -43,7 +43,7 @@ void cuda_init (int *cuda_mem_index, qemu_irq irq); /* MacIO */ void macio_init (PCIBus *bus, int device_id, int is_oldworld, int pic_mem_index, - int dbdma_mem_index, int cuda_mem_index, int nvram_mem_index, + int dbdma_mem_index, int cuda_mem_index, void *nvram, int nb_ide, int *ide_mem_index); /* NewWorld PowerMac IDE */ @@ -62,7 +62,8 @@ PCIBus *pci_pmac_init(qemu_irq *pic); /* Mac NVRAM */ typedef struct MacIONVRAMState MacIONVRAMState; -MacIONVRAMState *macio_nvram_init (int *mem_index); +MacIONVRAMState *macio_nvram_init (int *mem_index, target_phys_addr_t size); +void macio_nvram_map (void *opaque, target_phys_addr_t mem_base); void pmac_format_nvram_partition (MacIONVRAMState *nvr, int len); uint32_t macio_nvram_read (void *opaque, uint32_t addr); void macio_nvram_write (void *opaque, uint32_t addr, uint32_t val); -- cgit v1.1