~bdrung/qemu-kvm/caps-lock-key-up-event

« back to all changes in this revision

Viewing changes to hw/pci.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2010-08-10 08:51:54 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810085154-ok0jzlkr75dplmc7
Tags: 0.12.5+noroms-0ubuntu1
* New upstream release
* Removed patch which is now upstream:
  0001-Fix-missing-symbols-in-.rel-.rela.plt-sections.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
 
321
321
static int get_pci_irq_state(QEMUFile *f, void *pv, size_t size)
322
322
{
323
 
    PCIDevice *s = container_of(pv, PCIDevice, config);
 
323
    PCIDevice *s = container_of(pv, PCIDevice, irq_state);
324
324
    uint32_t irq_state[PCI_NUM_PINS];
325
325
    int i;
326
326
    for (i = 0; i < PCI_NUM_PINS; ++i) {
342
342
static void put_pci_irq_state(QEMUFile *f, void *pv, size_t size)
343
343
{
344
344
    int i;
345
 
    PCIDevice *s = container_of(pv, PCIDevice, config);
 
345
    PCIDevice *s = container_of(pv, PCIDevice, irq_state);
346
346
 
347
347
    for (i = 0; i < PCI_NUM_PINS; ++i) {
348
348
        qemu_put_be32(f, pci_irq_state(s, i));