510 |
#define NVRAM_SIZE 0x2000 |
#define NVRAM_SIZE 0x2000 |
511 |
|
|
512 |
/* PowerPC PREP hardware initialisation */ |
/* PowerPC PREP hardware initialisation */ |
513 |
void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device, |
static void ppc_prep_init(int ram_size, int vga_ram_size, int boot_device, |
514 |
DisplayState *ds, const char **fd_filename, int snapshot, |
DisplayState *ds, const char **fd_filename, int snapshot, |
515 |
const char *kernel_filename, const char *kernel_cmdline, |
const char *kernel_filename, const char *kernel_cmdline, |
516 |
const char *initrd_filename) |
const char *initrd_filename) |
517 |
{ |
{ |
518 |
char buf[1024]; |
char buf[1024]; |
519 |
m48t59_t *nvram; |
m48t59_t *nvram; |
650 |
/* XXX: need an option to load a NVRAM image */ |
/* XXX: need an option to load a NVRAM image */ |
651 |
0, |
0, |
652 |
graphic_width, graphic_height, graphic_depth); |
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); |
656 |
} |
} |
657 |
|
|
658 |
|
QEMUMachine prep_machine = { |
659 |
|
"prep", |
660 |
|
"PowerPC PREP platform", |
661 |
|
ppc_prep_init, |
662 |
|
}; |