openpic.c (a3206972a9eab65ec8e8f9ae320ad628ba4b58f1) openpic.c (29f8dd66e89d59f66105af9065c10e21f85cc653)
1/*
2 * OpenPIC emulation
3 *
4 * Copyright (c) 2004 Jocelyn Mayer
5 * 2011 Alexander Graf
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

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

1638static void openpic_class_init(ObjectClass *oc, void *data)
1639{
1640 DeviceClass *dc = DEVICE_CLASS(oc);
1641
1642 dc->realize = openpic_realize;
1643 dc->props = openpic_properties;
1644 dc->reset = openpic_reset;
1645 dc->vmsd = &vmstate_openpic;
1/*
2 * OpenPIC emulation
3 *
4 * Copyright (c) 2004 Jocelyn Mayer
5 * 2011 Alexander Graf
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

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

1638static void openpic_class_init(ObjectClass *oc, void *data)
1639{
1640 DeviceClass *dc = DEVICE_CLASS(oc);
1641
1642 dc->realize = openpic_realize;
1643 dc->props = openpic_properties;
1644 dc->reset = openpic_reset;
1645 dc->vmsd = &vmstate_openpic;
1646 set_bit(DEVICE_CATEGORY_MISC, dc->categories);
1646}
1647
1648static const TypeInfo openpic_info = {
1649 .name = TYPE_OPENPIC,
1650 .parent = TYPE_SYS_BUS_DEVICE,
1651 .instance_size = sizeof(OpenPICState),
1652 .instance_init = openpic_init,
1653 .class_init = openpic_class_init,
1654};
1655
1656static void openpic_register_types(void)
1657{
1658 type_register_static(&openpic_info);
1659}
1660
1661type_init(openpic_register_types)
1647}
1648
1649static const TypeInfo openpic_info = {
1650 .name = TYPE_OPENPIC,
1651 .parent = TYPE_SYS_BUS_DEVICE,
1652 .instance_size = sizeof(OpenPICState),
1653 .instance_init = openpic_init,
1654 .class_init = openpic_class_init,
1655};
1656
1657static void openpic_register_types(void)
1658{
1659 type_register_static(&openpic_info);
1660}
1661
1662type_init(openpic_register_types)