/* * TIZEN base board * * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved * * Contact: * SeokYeon Hwang * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * Contributors: * - S-Core Co., Ltd * * x86 board from pc_piix.c... * add some TIZEN-speciaized device... */ #include "qemu/osdep.h" #include "hw/boards.h" #include "hw/i386/pc.h" #include "emulator_common.h" #include "maru_pm.h" /* maru specialized device init */ static void maru_device_init(void) { // do nothing for now... } extern void maru_pc_init(MachineState *args); static void maru_x86_board_init(MachineState *machine) { maru_pc_init(machine); maru_device_init(); } #define HAX_HW_COMPAT_2_6 \ {\ .driver = "virtio-pci",\ .property = "disable-modern",\ .value = "on",\ }, static void maru_x86_machine_options(MachineClass *m) { m->family = "pc_piix"; m->desc = "Maru Board (x86)"; m->default_machine_opts = "firmware=bios-256k.bin"; m->alias = "maru-x86-machine"; m->default_display = "std"; m->no_parallel = 1; m->no_floppy = 1; m->no_cdrom = 1; m->no_sdcard = 1; m->default_boot_order = "c"; #ifdef CONFIG_HAX SET_MACHINE_COMPAT(m, HAX_HW_COMPAT_2_6); #endif } DEFINE_PC_MACHINE(maru, "maru-x86-machine", maru_x86_board_init, maru_x86_machine_options);