hw: Use the PCI_DEVFN() macro from 'hw/pci/pci.h'
commit4934e479f1806e69cfab637156fe136994619c03
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 12 Oct 2020 06:36:41 +0000 (12 08:36 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 Jan 2021 22:24:44 +0000 (4 23:24 +0100)
treedc3201448d28816acdf3cd52f435ba6fddf10620
parent8d40def66d744a964c2675a19c11f644d288dd4f
hw: Use the PCI_DEVFN() macro from 'hw/pci/pci.h'

We already have a generic PCI_DEVFN() macro in "hw/pci/pci.h"
to pack the PCI slot/function identifiers, use it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Message-Id: <20201012124506.3406909-6-philmd@redhat.com>
Reviewed-by: Huacai Chen <chenhuacai@kernel.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20201231224911.1467352-4-f4bug@amsat.org>
hw/arm/virt.c
hw/pci-host/bonito.c
hw/pci-host/uninorth.c