]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update memory and resource allocation code for SoC devices
authorjchandra <jchandra@FreeBSD.org>
Tue, 27 Mar 2012 15:39:55 +0000 (15:39 +0000)
committerjchandra <jchandra@FreeBSD.org>
Tue, 27 Mar 2012 15:39:55 +0000 (15:39 +0000)
commit0ec682f566a00ee76a1d9e94fbd5b107c577e78e
tree5a32718a2b584dab97ede7b63525444211676fc0
parentdebd8ef5e56f768251970defac8dc87438528425
Update memory and resource allocation code for SoC devices

The XLP on-chip devices have PCI configuration headers, but some of the
devices need custom resource allocation code.
- devices with no MEM/IO BARs with registers in PCIe extended reg
  space have to be handled in memory resource allocation
- devices without INTPIN/INTLINE in PCI header can be supported
  by having these faked with a shadow register.
- Some devices does not allow 8/16 bit access to the register space,
  he default bus space cannot be used for these.

Subclass pci and override attach and resource allocation methods to
take care of this.

Remove earlier code which did this partially.
sys/mips/nlm/files.xlp
sys/mips/nlm/hal/nlm_hal.c
sys/mips/nlm/hal/pcibus.h
sys/mips/nlm/hal/pic.h
sys/mips/nlm/intern_dev.c [deleted file]
sys/mips/nlm/intr_machdep.c
sys/mips/nlm/xlp.h
sys/mips/nlm/xlp_machdep.c
sys/mips/nlm/xlp_pci.c