freebsd-nq/sys/dev/acpica
John Baldwin 2ccfc93222 Overhaul the ACPI PCI bridge driver a bit:
- Add an ACPI PCI-PCI bridge driver (the previous driver just handled
  Host-PCI bridges) that is a PCI driver that is a subclass of the generic
  PCI-PCI bridge driver.  It overrides probe, attach, read_ivar, and
  pci_route_interrupt.
  - The probe routine only succeeds if our parent is an ACPI PCI bus which
    we test for by seeing if we can read our ACPI_HANDLE as an ivar.
  - The attach routine saves a copy of our handle and calls the new
    acpi_pcib_attach_common() function described below.
  - The read_ivar routine handles normal PCI-PCI bridge ivars and adds an
    ivar to return the ACPI_HANDLE of the bus this bridge represents.
  - The route_interrupt routine fetches the _PRT (PCI Interrupt Routing
    Table) from the bridge device's softc and passes it off to
    acpi_pcib_route_interrupt() to route the interrupt.
- Split the old ACPI Host-PCI bridge driver into two pieces.  Part of
  the attach routine and most of the route_interrupt routine remain in
  acpi_pcib.c and are shared by both ACPI PCI bridge drivers.
  - The attach routine verifies the PCI bridge is present, reads in
    the _PRT for the bridge, and attaches the child PCI bus.
  - The route_interrupt routine uses the passed in _PRT to route a PCI
    interrupt.
  The rest of the driver is the ACPI Host-PCI bridge specific bits that
  live in acpi_pcib_acpi.c.
  - We no longer duplicate pcib_maxslots but use it directly.
  - The driver now uses the pcib devclass instead of its own devclass.
    This means that PCI busses are now only children of pcib devices.
  - Allow the ACPI_HANDLE for the child PCI bus to be read as an ivar
    of the child bus.
  - Fetch the _PRT for routing PCI interrupts directly from our softc
    instead of walking the devclass to find ourself and then fetch our
    own softc.

With this change and the new ACPI PCI bus driver, ACPI can now properly
route interrupts for devices behind PCI-PCI bridges.  That is, the
Itanium2 with like 10 PCI busses can now boot ok and route all the PCI
interrupts.  Hopefully this will also fix problems people are having with
CardBus bridges behind PCI-PCI bridges not properly routing interrupts
when ACPI is used.

Tested on:	i386, ia64
2002-08-26 18:30:27 +00:00
..
Osd Resolve conflicts arising from the ACPI CA 20020725 import. 2002-07-30 19:35:32 +00:00
acpi_acad.c Add generalized power profile code. 2002-03-04 18:46:13 +00:00
acpi_battery.c Staticise devclasses and some unnecessarily global variables. 2002-01-08 06:46:01 +00:00
acpi_button.c Add device(power/sleep button and lid) wake function from sleeping state. 2002-07-22 12:52:54 +00:00
acpi_cmbat.c Use the _STA method of a battery control method to see if a battery is 2002-08-21 15:01:53 +00:00
acpi_cpu.c Brutally deal with __func__ being 'const char *' on gcc-3.1. 2002-05-19 06:16:47 +00:00
acpi_ec.c Make interrupt driven EC transaction optional. 2002-07-02 03:38:07 +00:00
acpi_lid.c Add device(power/sleep button and lid) wake function from sleeping state. 2002-07-22 12:52:54 +00:00
acpi_pci.c Add an ACPI PCI bus driver that is a subclass of the generic PCI bus 2002-08-26 17:55:42 +00:00
acpi_pcib_acpi.c Overhaul the ACPI PCI bridge driver a bit: 2002-08-26 18:30:27 +00:00
acpi_pcib_pci.c Overhaul the ACPI PCI bridge driver a bit: 2002-08-26 18:30:27 +00:00
acpi_pcib.c Overhaul the ACPI PCI bridge driver a bit: 2002-08-26 18:30:27 +00:00
acpi_pcibvar.h Overhaul the ACPI PCI bridge driver a bit: 2002-08-26 18:30:27 +00:00
acpi_powerres.c Brutally deal with __func__ being 'const char *' on gcc-3.1. 2002-05-19 06:16:47 +00:00
acpi_resource.c Brutally deal with __func__ being 'const char *' on gcc-3.1. 2002-05-19 06:16:47 +00:00
acpi_thermal.c Fixed printf format errors which apparently crept in while -Wformat was 2002-05-25 11:18:03 +00:00
acpi_timer.c Brutally deal with __func__ being 'const char *' on gcc-3.1. 2002-05-19 06:16:47 +00:00
acpi.c Add new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (in 2002-08-25 06:13:53 +00:00
acpica_support.c Resolve conflicts arising from the ACPI CA 20020611 import. 2002-07-09 17:54:02 +00:00
acpica_support.h Add S4BIOS sleep (BIOS hibernation) and DSDT overriding support. 2001-11-06 15:00:30 +00:00
acpiio.h Fix wrong member variable ordering of struct acpi_bif. 2002-08-09 07:08:53 +00:00
acpivar.h Add new sysctl MIB (hw.acpi.sleep_delay) to specify the delay (in 2002-08-25 06:13:53 +00:00