pc87312.c (760df0d121a836dcbf3726b80b820115aef21b30) pc87312.c (b327066931827c71feea1f7f39a7608a6072364e)
1/*
2 * QEMU National Semiconductor PC87312 (Super I/O)
3 *
4 * Copyright (c) 2010-2012 Herve Poussineau
5 * Copyright (c) 2011-2012 Andreas Färber
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 357 unchanged lines hidden (view full) ---

366 .count = 1,
367 .is_enabled = is_ide_enabled,
368 .get_iobase = get_ide_iobase,
369 .get_irq = get_ide_irq,
370 };
371}
372
373static const TypeInfo pc87312_type_info = {
1/*
2 * QEMU National Semiconductor PC87312 (Super I/O)
3 *
4 * Copyright (c) 2010-2012 Herve Poussineau
5 * Copyright (c) 2011-2012 Andreas Färber
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 357 unchanged lines hidden (view full) ---

366 .count = 1,
367 .is_enabled = is_ide_enabled,
368 .get_iobase = get_ide_iobase,
369 .get_irq = get_ide_irq,
370 };
371}
372
373static const TypeInfo pc87312_type_info = {
374 .name = TYPE_PC87312_SUPERIO,
374 .name = TYPE_PC87312,
375 .parent = TYPE_ISA_SUPERIO,
376 .instance_size = sizeof(PC87312State),
377 .instance_init = pc87312_initfn,
378 .class_init = pc87312_class_init,
379 /* FIXME use a qdev drive property instead of drive_get() */
380};
381
382static void pc87312_register_types(void)
383{
384 type_register_static(&pc87312_type_info);
385}
386
387type_init(pc87312_register_types)
375 .parent = TYPE_ISA_SUPERIO,
376 .instance_size = sizeof(PC87312State),
377 .instance_init = pc87312_initfn,
378 .class_init = pc87312_class_init,
379 /* FIXME use a qdev drive property instead of drive_get() */
380};
381
382static void pc87312_register_types(void)
383{
384 type_register_static(&pc87312_type_info);
385}
386
387type_init(pc87312_register_types)