[OpenBIOS] [PATCH 0/5] pci: allow customisation of PCI host bridge ranges

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sat Jul 8 21:36:54 CEST 2017


Whilst debugging some SPARC64 issues relating to PCI bridges, it became apparent
that the logic for generating the ranges property for the PCI host bridge isn't
flexible enough to allow generation of the correct values across all architectures.

In order to allow per-architecture customisation of PCI host bridge properties, split
them out into a separate struct within pci_arch_t and migrate all PCI architectures
over to use them. As a side effect we can now remove the rbase and rlen members from
pci_arch_t since they are no longer required.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Mark Cave-Ayland (5):
  pci: define pci_range_t typedef and add it to pci_arch_t struct
  pci: move memory type enum from drivers/pci.c to
    include/drivers/pci.h
  arch: update pci_host_t host_ranges with values for each architecture
  pci: update pci_set_host_ranges() to use the new pci_arch_t
    host_ranges
  arch: remove rbase and rlen from pci_arch_t for all PCI architectures

 arch/ppc/qemu/init.c    |   29 +++++++++++++++++-------
 arch/sparc64/openbios.c |    6 +++++
 arch/x86/openbios.c     |    4 ++++
 drivers/pci.c           |   56 ++++++++++++++---------------------------------
 include/drivers/pci.h   |   19 ++++++++++++++--
 5 files changed, 64 insertions(+), 50 deletions(-)

-- 
1.7.10.4




More information about the OpenBIOS mailing list