root / hw / ppc.c @ 69b91039
History | View | Annotate | Download (1.8 kB)
1 | a541f297 | bellard | /*
|
---|---|---|---|
2 | a541f297 | bellard | * QEMU generic PPC hardware System Emulator
|
3 | a541f297 | bellard | *
|
4 | a541f297 | bellard | * Copyright (c) 2003-2004 Jocelyn Mayer
|
5 | a541f297 | bellard | *
|
6 | a541f297 | bellard | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 | a541f297 | bellard | * of this software and associated documentation files (the "Software"), to deal
|
8 | a541f297 | bellard | * in the Software without restriction, including without limitation the rights
|
9 | a541f297 | bellard | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10 | a541f297 | bellard | * copies of the Software, and to permit persons to whom the Software is
|
11 | a541f297 | bellard | * furnished to do so, subject to the following conditions:
|
12 | a541f297 | bellard | *
|
13 | a541f297 | bellard | * The above copyright notice and this permission notice shall be included in
|
14 | a541f297 | bellard | * all copies or substantial portions of the Software.
|
15 | a541f297 | bellard | *
|
16 | a541f297 | bellard | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 | a541f297 | bellard | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 | a541f297 | bellard | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 | a541f297 | bellard | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 | a541f297 | bellard | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21 | a541f297 | bellard | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22 | a541f297 | bellard | * THE SOFTWARE.
|
23 | a541f297 | bellard | */
|
24 | a541f297 | bellard | #include "vl.h" |
25 | a541f297 | bellard | |
26 | a541f297 | bellard | void ppc_prep_init (int ram_size, int vga_ram_size, int boot_device, |
27 | a541f297 | bellard | DisplayState *ds, const char **fd_filename, int snapshot, |
28 | a541f297 | bellard | const char *kernel_filename, const char *kernel_cmdline, |
29 | a541f297 | bellard | const char *initrd_filename); |
30 | a541f297 | bellard | |
31 | a541f297 | bellard | void ppc_init (int ram_size, int vga_ram_size, int boot_device, |
32 | a541f297 | bellard | DisplayState *ds, const char **fd_filename, int snapshot, |
33 | a541f297 | bellard | const char *kernel_filename, const char *kernel_cmdline, |
34 | a541f297 | bellard | const char *initrd_filename) |
35 | a541f297 | bellard | { |
36 | a541f297 | bellard | /* For now, only PREP is supported */
|
37 | a541f297 | bellard | return ppc_prep_init(ram_size, vga_ram_size, boot_device, ds, fd_filename,
|
38 | a541f297 | bellard | snapshot, kernel_filename, kernel_cmdline, |
39 | a541f297 | bellard | initrd_filename); |
40 | a541f297 | bellard | } |