serial-pci.c (0db949f1810f4d497762d57d8db6f219c0607529) | serial-pci.c (981c3dcd948907f1127bc1d85b6e455dce687096) |
---|---|
1/* 2 * QEMU 16550A UART emulation 3 * 4 * Copyright (c) 2003-2004 Fabrice Bellard 5 * Copyright (c) 2008 Citrix Systems, Inc. 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 --- 54 unchanged lines hidden (view full) --- 63 pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io); 64} 65 66static void serial_pci_exit(PCIDevice *dev) 67{ 68 PCISerialState *pci = DO_UPCAST(PCISerialState, dev, dev); 69 SerialState *s = &pci->state; 70 | 1/* 2 * QEMU 16550A UART emulation 3 * 4 * Copyright (c) 2003-2004 Fabrice Bellard 5 * Copyright (c) 2008 Citrix Systems, Inc. 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 --- 54 unchanged lines hidden (view full) --- 63 pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io); 64} 65 66static void serial_pci_exit(PCIDevice *dev) 67{ 68 PCISerialState *pci = DO_UPCAST(PCISerialState, dev, dev); 69 SerialState *s = &pci->state; 70 |
71 object_property_set_bool(OBJECT(s), false, "realized", &error_abort); | 71 qdev_unrealize(DEVICE(s)); |
72 qemu_free_irq(s->irq); 73} 74 75static const VMStateDescription vmstate_pci_serial = { 76 .name = "pci-serial", 77 .version_id = 1, 78 .minimum_version_id = 1, 79 .fields = (VMStateField[]) { --- 53 unchanged lines hidden --- | 72 qemu_free_irq(s->irq); 73} 74 75static const VMStateDescription vmstate_pci_serial = { 76 .name = "pci-serial", 77 .version_id = 1, 78 .minimum_version_id = 1, 79 .fields = (VMStateField[]) { --- 53 unchanged lines hidden --- |