diff options
author | Juergen Gross <jgross@suse.com> | 2022-11-14 16:29:37 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2022-11-15 09:34:13 +0300 |
commit | 4abb77fc5531381484477cac95913336c97176b7 (patch) | |
tree | 8684ba1ba570959a906083342c713780c342ac2a | |
parent | c53717e1e3f0d0f9129b2e0dbc6dcc5e0a8132e9 (diff) | |
download | linux-4abb77fc5531381484477cac95913336c97176b7.tar.xz |
xen/platform-pci: use define instead of literal number
Instead of "0x01" use the HVM_PARAM_CALLBACK_TYPE_PCI_INTX define from
the interface header in get_callback_via().
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
-rw-r--r-- | drivers/xen/platform-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/platform-pci.c b/drivers/xen/platform-pci.c index 6ebd819338ec..cd07e3fed0fa 100644 --- a/drivers/xen/platform-pci.c +++ b/drivers/xen/platform-pci.c @@ -54,7 +54,8 @@ static uint64_t get_callback_via(struct pci_dev *pdev) pin = pdev->pin; /* We don't know the GSI. Specify the PCI INTx line instead. */ - return ((uint64_t)0x01 << HVM_CALLBACK_VIA_TYPE_SHIFT) | /* PCI INTx identifier */ + return ((uint64_t)HVM_PARAM_CALLBACK_TYPE_PCI_INTX << + HVM_CALLBACK_VIA_TYPE_SHIFT) | ((uint64_t)pci_domain_nr(pdev->bus) << 32) | ((uint64_t)pdev->bus->number << 16) | ((uint64_t)(pdev->devfn & 0xff) << 8) | |