summaryrefslogtreecommitdiff
path: root/pci.c
AgeCommit message (Collapse)AuthorFilesLines
2021-06-05Provide interrupt mapping information in PCI config registers.Jason Thorpe1-1/+11
Use system-specific information to program the interrupt line register with the interrupt mappings, which is what the SRM console does on real hardware; some operating systems (e.g. NetBSD) use this information rather than having interrupt mappings tables for every possible system variation. Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210603035317.6814-7-thorpej@me.com> [rth: Use inline not macro; fold -1 -> 0xff map into interface.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-06-05Fix incorrect initialization of PCI BARsJason Thorpe1-2/+2
Only program a BAR as a 64-bit MEM BAR if it really is a 64-bit MEM BAR. Fixes an issue with the CMD646 IDE controller under NetBSD. Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210603035317.6814-6-thorpej@me.com> [rth: Combine the two tests.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2021-06-05Make some PCI macros available to other files. NFC.Jason Thorpe1-4/+0
Move PCI_DEVFN(), PCI_BUS(), PCI_SLOT(), and PCI_FUNC() to pci.h. Signed-off-by: Jason Thorpe <thorpej@me.com> Message-Id: <20210603035317.6814-5-thorpej@me.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2011-05-09Hack: Move pci BAR ranges.Richard Henderson1-2/+2
The Linux kernel will re-allocate all of these, tickling what appears to be a bug in QEMU. Work around this by moving the ranges allocated by the console so that the new ranges don't overlap.
2011-05-06Initial PCI setup.Richard Henderson1-0/+150