Diff for /qemu/hw/grackle_pci.c between versions 1.1.1.8 and 1.1.1.9

version 1.1.1.8, 2018/04/24 18:38:51 version 1.1.1.9, 2018/04/24 19:00:48
Line 57  static void pci_grackle_set_irq(void *op Line 57  static void pci_grackle_set_irq(void *op
     qemu_set_irq(pic[irq_num + 0x15], level);      qemu_set_irq(pic[irq_num + 0x15], level);
 }  }
   
 static void pci_grackle_save(QEMUFile* f, void *opaque)  
 {  
     PCIDevice *d = opaque;  
   
     pci_device_save(d, f);  
 }  
   
 static int pci_grackle_load(QEMUFile* f, void *opaque, int version_id)  
 {  
     PCIDevice *d = opaque;  
   
     if (version_id != 1)  
         return -EINVAL;  
   
     return pci_device_load(d, f);  
 }  
   
 static void pci_grackle_reset(void *opaque)  static void pci_grackle_reset(void *opaque)
 {  {
 }  }
Line 115  static int pci_grackle_init_device(SysBu Line 98  static int pci_grackle_init_device(SysBu
     sysbus_init_mmio(dev, 0x1000, pci_mem_config);      sysbus_init_mmio(dev, 0x1000, pci_mem_config);
     sysbus_init_mmio(dev, 0x1000, pci_mem_data);      sysbus_init_mmio(dev, 0x1000, pci_mem_data);
   
     register_savevm(&dev->qdev, "grackle", 0, 1, pci_grackle_save,  
                     pci_grackle_load, &s->host_state);  
     qemu_register_reset(pci_grackle_reset, &s->host_state);      qemu_register_reset(pci_grackle_reset, &s->host_state);
     return 0;      return 0;
 }  }
   
 static int grackle_pci_host_init(PCIDevice *d)  static int grackle_pci_host_init(PCIDevice *d)
 {  {
     pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MOTOROLA);  
     pci_config_set_device_id(d->config, PCI_DEVICE_ID_MOTOROLA_MPC106);  
     d->config[0x08] = 0x00; // revision  
     d->config[0x09] = 0x01;      d->config[0x09] = 0x01;
     pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);  
     return 0;      return 0;
 }  }
   
Line 135  static PCIDeviceInfo grackle_pci_host_in Line 112  static PCIDeviceInfo grackle_pci_host_in
     .qdev.name = "grackle",      .qdev.name = "grackle",
     .qdev.size = sizeof(PCIDevice),      .qdev.size = sizeof(PCIDevice),
     .init      = grackle_pci_host_init,      .init      = grackle_pci_host_init,
       .vendor_id = PCI_VENDOR_ID_MOTOROLA,
       .device_id = PCI_DEVICE_ID_MOTOROLA_MPC106,
       .revision  = 0x00,
       .class_id  = PCI_CLASS_BRIDGE_HOST,
 };  };
   
 static void grackle_register_devices(void)  static void grackle_register_devices(void)

Removed from v.1.1.1.8  
changed lines
  Added in v.1.1.1.9


unix.superglobalmegacorp.com