]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
remove type parameter from xc_physdev_map_pirq{,_msi}() xen-3.3.0-rc1
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 24 Jul 2008 13:40:59 +0000 (14:40 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 24 Jul 2008 13:40:59 +0000 (14:40 +0100)
tools: remove type parameter from xc_physdev_map_pirq{,_msi}()
... as it's implied by the function name.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cross-ported from xen-unstable changeset
18128:0c320ae06d79d319f9fd419428e1539bc1b4818d

hw/pass-through.c
hw/pt-msi.c

index 3da0e2dbb7172431149edb2fef431a912e6ef63a..f253a16d6e0b482eb4a67b4f93632f253ddddb18 100644 (file)
@@ -2783,8 +2783,7 @@ struct pt_dev * register_real_device(PCIBus *e_bus,
         int pirq = pci_dev->irq;
 
         machine_irq = pci_dev->irq;
-        rc = xc_physdev_map_pirq(xc_handle, domid, MAP_PIRQ_TYPE_GSI,
-                                machine_irq, &pirq);
+        rc = xc_physdev_map_pirq(xc_handle, domid, machine_irq, &pirq);
 
         if ( rc )
         {
index 5d33fe8af61d13357e3b26cc59f728c63eaa1c91..ee6a5548637eb9e3cc7302a4f78a95ba6630a1ae 100644 (file)
@@ -37,8 +37,7 @@ int pt_msi_setup(struct pt_dev *dev)
         return -1;
     }
 
-    if ( xc_physdev_map_pirq_msi(xc_handle, domid, MAP_PIRQ_TYPE_MSI,
-                            AUTO_ASSIGN, &pirq,
+    if ( xc_physdev_map_pirq_msi(xc_handle, domid, AUTO_ASSIGN, &pirq,
                                                        dev->pci_dev->dev << 3 | dev->pci_dev->func,
                                                        dev->pci_dev->bus, 0, 1) )
     {
@@ -120,8 +119,7 @@ static int pt_msix_update_one(struct pt_dev *dev, int entry_nr)
     /* Check if this entry is already mapped */
     if ( entry->pirq == -1 )
     {
-        ret = xc_physdev_map_pirq_msi(xc_handle, domid, MAP_PIRQ_TYPE_MSI,
-                                AUTO_ASSIGN, &pirq,
+        ret = xc_physdev_map_pirq_msi(xc_handle, domid, AUTO_ASSIGN, &pirq,
                                 dev->pci_dev->dev << 3 | dev->pci_dev->func,
                                 dev->pci_dev->bus, entry_nr, 0);
         if ( ret )