Don't look up pid/tid on YAGL_LOG_FUNC_SET
[sdk/emulator/qemu.git] / tizen / src / hw / maru_board.c
1 /*
2  * TIZEN base board
3  *
4  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
5  *
6  * Contact:
7  * SeokYeon Hwang <syeon.hwang@samsung.com>
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
22  *
23  * Contributors:
24  * - S-Core Co., Ltd
25  *
26  * x86 board from pc_piix.c...
27  * add some TIZEN-speciaized device...
28  */
29
30 #include "qemu/osdep.h"
31 #include "hw/boards.h"
32 #include "hw/i386/pc.h"
33
34 #include "emulator_common.h"
35 #include "maru_pm.h"
36
37 /* maru specialized device init */
38 static void maru_device_init(void)
39 {
40     // do nothing for now...
41 }
42
43 extern void maru_pc_init(MachineState *args);
44 static void maru_x86_board_init(MachineState *machine)
45 {
46     maru_pc_init(machine);
47
48     maru_device_init();
49 }
50
51 #define HAX_HW_COMPAT_2_6 \
52     {\
53         .driver   = "virtio-pci",\
54         .property = "disable-modern",\
55         .value    = "on",\
56     },
57
58 static void maru_x86_machine_options(MachineClass *m)
59 {
60     m->family = "pc_piix";
61     m->desc = "Maru Board (x86)";
62     m->default_machine_opts = "firmware=bios-256k.bin";
63     m->alias = "maru-x86-machine";
64     m->default_display = "std";
65     m->no_parallel = 1;
66     m->no_floppy = 1;
67     m->no_cdrom = 1;
68     m->no_sdcard = 1;
69     m->default_boot_order = "c";
70 #ifdef CONFIG_HAX
71     SET_MACHINE_COMPAT(m, HAX_HW_COMPAT_2_6);
72 #endif
73 }
74
75 DEFINE_PC_MACHINE(maru, "maru-x86-machine", maru_x86_board_init,
76         maru_x86_machine_options);