[v4,1/4] pci: Allocate PCIe host bridge PCI ID
diff mbox

Message ID 1423148140-93672-2-git-send-email-agraf@suse.de
State New
Headers show

Commit Message

Alexander Graf Feb. 5, 2015, 2:55 p.m. UTC
We are going to introduce a PCIe host controller that doesn't exist that
way in real hardware, but still needs to expose some PCIe root device which
has PCI IDs.

Allocate a PCI ID in the Red Hat space that we use for other devices of this
kind.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 include/hw/pci/pci.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Maydell Feb. 5, 2015, 3:03 p.m. UTC | #1
On 5 February 2015 at 14:55, Alexander Graf <agraf@suse.de> wrote:
> We are going to introduce a PCIe host controller that doesn't exist that
> way in real hardware, but still needs to expose some PCIe root device which
> has PCI IDs.
>
> Allocate a PCI ID in the Red Hat space that we use for other devices of this
> kind.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
> ---
>  include/hw/pci/pci.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
> index 97a83d3..bdee464 100644
> --- a/include/hw/pci/pci.h
> +++ b/include/hw/pci/pci.h
> @@ -89,6 +89,7 @@
>  #define PCI_DEVICE_ID_REDHAT_SERIAL4     0x0004
>  #define PCI_DEVICE_ID_REDHAT_TEST        0x0005
>  #define PCI_DEVICE_ID_REDHAT_SDHCI       0x0007
> +#define PCI_DEVICE_ID_REDHAT_PCIE_HOST   0x0008
>  #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
>
>  #define FMT_PCIBUS                      PRIx64

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM

Patch
diff mbox

diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 97a83d3..bdee464 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -89,6 +89,7 @@ 
 #define PCI_DEVICE_ID_REDHAT_SERIAL4     0x0004
 #define PCI_DEVICE_ID_REDHAT_TEST        0x0005
 #define PCI_DEVICE_ID_REDHAT_SDHCI       0x0007
+#define PCI_DEVICE_ID_REDHAT_PCIE_HOST   0x0008
 #define PCI_DEVICE_ID_REDHAT_QXL         0x0100
 
 #define FMT_PCIBUS                      PRIx64