Nathan Whitehorn
8a1a60d49a
The bus resource adjustment API is not meant to work on active resources.
...
Return an error if a driver attempts this, and, if INVARIANTS is on,
panic.
Reviewed by: jhb
2012-02-07 19:14:13 +00:00
Nathan Whitehorn
bc890e542e
Make sure to remap adjusted resources.
2012-02-05 16:54:26 +00:00
Nathan Whitehorn
942efd602f
Add support for bus_adjust_resource() on all PowerPC/AIM PCI bridges. With
...
this change, NEW_PCIB appears to work without incident at least on a G5
iMac. More testing will be required before it is turned on in GENERIC.
2012-02-05 00:51:59 +00:00
Nathan Whitehorn
9a35e64eb4
Unify OF PCI infrastructure, including changing from parsing the device
...
tree based on heuristics to parsing it based on the spec. This should also
lay the foundation for NEW_PCIB on PowerPC.
MFC after: 3 months
2012-02-04 19:54:13 +00:00
Nathan Whitehorn
51d163d3e9
Convert PowerPC AIM PCI and nexus busses to standard OFW bus interface. This
...
simplifies certain device attachments (Kauai ATA, for instance), and makes
possible others on new hardware.
On G5 systems, there are several otherwise standard PCI devices
(Serverworks SATA) that will not allow their interrupt properties to be
written, so this information must be supplied directly from Open Firmware.
Obtained from: sparc64
2008-10-14 14:54:14 +00:00
Warner Losh
60727d8b86
/* -> /*- for license, minor formatting changes
2005-01-07 02:29:27 +00:00
Peter Grehan
439696f355
Correctly create interrupt key for PCI, which is the OpenFirmware
...
pci-hi/med/lo + node 'interrupts' property. This worked by
accident until recent notebooks required correct operation.
Tested by: Suleiman Souhlal <refugee@segfaulted.com>
2004-02-10 23:57:35 +00:00
Peter Grehan
03f5c00144
Simplify ofw_pci_fixup(). It doesn't need to be recursive, since the
...
bridge code already handles IRQ adjustment on the far side of a bridge.
Reviewed by: benno
2003-03-03 12:05:06 +00:00
Benno Rice
f13d93ce55
Make ofw_pci_find_node() use the reg property instead of the
...
assigned-addresses property. This works a lot better.
2003-01-09 12:24:19 +00:00
Benno Rice
2686f05627
OpenFirmware PCI support code.
...
This and the sparc64 equivalent should probably be merged at some point.
2002-07-09 13:27:58 +00:00