omap_sx1.c (ffa4822c015d5670ef6a2239f3cbd2ff2cec57de) | omap_sx1.c (e264d29de28c5b0be3d063307ce9fb613b427cc3) |
---|---|
1/* omap_sx1.c Support for the Siemens SX1 smartphone emulation. 2 * 3 * Copyright (C) 2008 4 * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 5 * Copyright (C) 2007 Vladimir Ananiev <vovan888@gmail.com> 6 * 7 * based on PalmOne's (TM) PDAs support (palm.c) 8 */ --- 203 unchanged lines hidden (view full) --- 212 sx1_init(machine, 1); 213} 214 215static void sx1_init_v2(MachineState *machine) 216{ 217 sx1_init(machine, 2); 218} 219 | 1/* omap_sx1.c Support for the Siemens SX1 smartphone emulation. 2 * 3 * Copyright (C) 2008 4 * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 5 * Copyright (C) 2007 Vladimir Ananiev <vovan888@gmail.com> 6 * 7 * based on PalmOne's (TM) PDAs support (palm.c) 8 */ --- 203 unchanged lines hidden (view full) --- 212 sx1_init(machine, 1); 213} 214 215static void sx1_init_v2(MachineState *machine) 216{ 217 sx1_init(machine, 2); 218} 219 |
220static QEMUMachine sx1_machine_v2 = { 221 .name = "sx1", 222 .desc = "Siemens SX1 (OMAP310) V2", 223 .init = sx1_init_v2, 224}; | 220static void sx1_machine_v2_machine_init(MachineClass *mc) 221{ 222 mc->desc = "Siemens SX1 (OMAP310) V2"; 223 mc->init = sx1_init_v2; 224} |
225 | 225 |
226static QEMUMachine sx1_machine_v1 = { 227 .name = "sx1-v1", 228 .desc = "Siemens SX1 (OMAP310) V1", 229 .init = sx1_init_v1, 230}; | 226DEFINE_MACHINE("sx1", sx1_machine_v2_machine_init) |
231 | 227 |
232static void sx1_machine_init(void) | 228static void sx1_machine_v1_machine_init(MachineClass *mc) |
233{ | 229{ |
234 qemu_register_machine(&sx1_machine_v2); 235 qemu_register_machine(&sx1_machine_v1); | 230 mc->desc = "Siemens SX1 (OMAP310) V1"; 231 mc->init = sx1_init_v1; |
236} 237 | 232} 233 |
238machine_init(sx1_machine_init); | 234DEFINE_MACHINE("sx1-v1", sx1_machine_v1_machine_init) |