pci-testdev.c (931f0adf64261bf7eb3efaafb4430c04a6a3e6f6) pci-testdev.c (125ee0ed9cad04307498ac2b7b0d51ad8a807360)
1/*
2 * QEMU PCI test device
3 *
4 * Copyright (c) 2012 Red Hat Inc.
5 * Author: Michael S. Tsirkin <mst@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

310
311 k->init = pci_testdev_init;
312 k->exit = pci_testdev_uninit;
313 k->vendor_id = PCI_VENDOR_ID_REDHAT;
314 k->device_id = PCI_DEVICE_ID_REDHAT_TEST;
315 k->revision = 0x00;
316 k->class_id = PCI_CLASS_OTHERS;
317 dc->desc = "PCI Test Device";
1/*
2 * QEMU PCI test device
3 *
4 * Copyright (c) 2012 Red Hat Inc.
5 * Author: Michael S. Tsirkin <mst@redhat.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

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

310
311 k->init = pci_testdev_init;
312 k->exit = pci_testdev_uninit;
313 k->vendor_id = PCI_VENDOR_ID_REDHAT;
314 k->device_id = PCI_DEVICE_ID_REDHAT_TEST;
315 k->revision = 0x00;
316 k->class_id = PCI_CLASS_OTHERS;
317 dc->desc = "PCI Test Device";
318 set_bit(DEVICE_CATEGORY_MISC, dc->categories);
318 dc->reset = qdev_pci_testdev_reset;
319}
320
321static const TypeInfo pci_testdev_info = {
322 .name = TYPE_PCI_TEST_DEV,
323 .parent = TYPE_PCI_DEVICE,
324 .instance_size = sizeof(PCITestDevState),
325 .class_init = pci_testdev_class_init,
326};
327
328static void pci_testdev_register_types(void)
329{
330 type_register_static(&pci_testdev_info);
331}
332
333type_init(pci_testdev_register_types)
319 dc->reset = qdev_pci_testdev_reset;
320}
321
322static const TypeInfo pci_testdev_info = {
323 .name = TYPE_PCI_TEST_DEV,
324 .parent = TYPE_PCI_DEVICE,
325 .instance_size = sizeof(PCITestDevState),
326 .class_init = pci_testdev_class_init,
327};
328
329static void pci_testdev_register_types(void)
330{
331 type_register_static(&pci_testdev_info);
332}
333
334type_init(pci_testdev_register_types)