mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
sparc64 marge (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1462 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
8979b2277d
commit
3475187dd8
26 changed files with 3651 additions and 637 deletions
10
hw/sun4m.c
10
hw/sun4m.c
|
@ -37,6 +37,7 @@
|
|||
// bits
|
||||
#define PHYS_JJ_IOMMU 0x10000000 /* I/O MMU */
|
||||
#define PHYS_JJ_TCX_FB 0x50000000 /* TCX frame buffer */
|
||||
#define PHYS_JJ_SLAVIO 0x70000000 /* Slavio base */
|
||||
#define PHYS_JJ_ESPDMA 0x78400000 /* ESP DMA controller */
|
||||
#define PHYS_JJ_ESP 0x78800000 /* ESP SCSI */
|
||||
#define PHYS_JJ_ESP_IRQ 18
|
||||
|
@ -55,6 +56,7 @@
|
|||
#define PHYS_JJ_SER_IRQ 15
|
||||
#define PHYS_JJ_FDC 0x71400000 /* Floppy */
|
||||
#define PHYS_JJ_FLOPPY_IRQ 22
|
||||
#define PHYS_JJ_ME_IRQ 30 /* Module error, power fail */
|
||||
|
||||
/* TSC handling */
|
||||
|
||||
|
@ -202,6 +204,13 @@ uint32_t iommu_translate(uint32_t addr)
|
|||
return iommu_translate_local(iommu, addr);
|
||||
}
|
||||
|
||||
static void *slavio_misc;
|
||||
|
||||
void qemu_system_powerdown(void)
|
||||
{
|
||||
slavio_set_power_fail(slavio_misc, 1);
|
||||
}
|
||||
|
||||
/* Sun4m hardware initialisation */
|
||||
static void sun4m_init(int ram_size, int vga_ram_size, int boot_device,
|
||||
DisplayState *ds, const char **fd_filename, int snapshot,
|
||||
|
@ -230,6 +239,7 @@ static void sun4m_init(int ram_size, int vga_ram_size, int boot_device,
|
|||
slavio_serial_init(PHYS_JJ_SER, PHYS_JJ_SER_IRQ, serial_hds[1], serial_hds[0]);
|
||||
fdctrl_init(PHYS_JJ_FLOPPY_IRQ, 0, 1, PHYS_JJ_FDC, fd_table);
|
||||
esp_init(bs_table, PHYS_JJ_ESP_IRQ, PHYS_JJ_ESP, PHYS_JJ_ESPDMA);
|
||||
slavio_misc = slavio_misc_init(PHYS_JJ_SLAVIO, PHYS_JJ_ME_IRQ);
|
||||
|
||||
prom_offset = ram_size + vram_size;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue