Revision c0e564d5 hw/ppc_prep.c
b/hw/ppc_prep.c | ||
---|---|---|
510 | 510 |
#define NVRAM_SIZE 0x2000 |
511 | 511 |
|
512 | 512 |
/* PowerPC PREP hardware initialisation */ |
513 |
void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device, |
|
514 |
DisplayState *ds, const char **fd_filename, int snapshot,
|
|
515 |
const char *kernel_filename, const char *kernel_cmdline,
|
|
516 |
const char *initrd_filename)
|
|
513 |
static void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device,
|
|
514 |
DisplayState *ds, const char **fd_filename, int snapshot,
|
|
515 |
const char *kernel_filename, const char *kernel_cmdline,
|
|
516 |
const char *initrd_filename)
|
|
517 | 517 |
{ |
518 | 518 |
char buf[1024]; |
519 | 519 |
m48t59_t *nvram; |
... | ... | |
650 | 650 |
/* XXX: need an option to load a NVRAM image */ |
651 | 651 |
0, |
652 | 652 |
graphic_width, graphic_height, graphic_depth); |
653 |
|
|
654 |
/* Special port to get debug messages from Open-Firmware */ |
|
655 |
register_ioport_write(0x0F00, 4, 1, &PPC_debug_write, NULL); |
|
653 | 656 |
} |
657 |
|
|
658 |
QEMUMachine prep_machine = { |
|
659 |
"prep", |
|
660 |
"PowerPC PREP platform", |
|
661 |
ppc_prep_init, |
|
662 |
}; |
Also available in: Unified diff