hw: Use the PCI_SLOT() macro from 'hw/pci/pci.h'
commit8d40def66d744a964c2675a19c11f644d288dd4f
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sun, 11 Oct 2020 15:04:23 +0000 (11 17:04 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 4 Jan 2021 22:24:44 +0000 (4 23:24 +0100)
tree960390db0ec52c6ce7fe109bfe70fdb9ac4e346e
parentd08b9c1b75c60c66ea65212a9dac90f58542e45e
hw: Use the PCI_SLOT() macro from 'hw/pci/pci.h'

We already have a generic PCI_SLOT() macro in "hw/pci/pci.h"
to extract the PCI slot identifier, use it.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Acked-by: Paul Durrant <paul@xen.org>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20201012124506.3406909-5-philmd@redhat.com>
hw/hppa/dino.c
hw/i386/xen/xen-hvm.c
hw/isa/piix3.c
hw/mips/gt64xxx_pci.c
hw/pci-host/bonito.c
hw/pci-host/ppce500.c
hw/ppc/ppc4xx_pci.c
hw/sh4/sh_pci.c