NetBSD/sys/dev/acpi/files.acpi
sekiya 0919f4d283 Rework the configuration scheme for PCI fixups:
* bus enumeration fixups are not PCIBIOS-specific, interrupt fixups are done
  by both PCIBIOS and ACPI.  The redundancy is very redundant.  Therefore,
  rename PCIBIOS_*_FIXUP to PCI_*_FIXUP, use PCI_INTR_FIXUP in place of
  ACPI_PCI_FIXUP, and change code refences to match.

* move the fixup defines from opt_pcibios.h to opt_pcifixup.h to reflect
  the above.

* fix up the PCI bus numbering in mainbus_attach(), right after we detect the
  configuration mode.  This probably renders the fixup in pcibios.c
  redundant -- but it should be harmless.

These changes make cardbus work in ACPI-only machines, when PCI_BUS_FIXUP
and PCI_INTR_FIXUP are defined.
2005-06-21 08:19:25 +00:00

83 lines
2.0 KiB
Plaintext

# $NetBSD: files.acpi,v 1.32 2005/06/21 08:19:25 sekiya Exp $
include "dev/acpi/acpica/files.acpica"
defflag opt_acpi.h ACPIVERBOSE ACPI_DEBUG ACPI_ACTIVATE_DEV ACPI_DISABLE_ON_POWEROFF
device acpi { }: sysmon_power, sysmon_taskq
attach acpi at acpibus
file dev/acpi/acpi.c acpi needs-flag
file dev/acpi/acpi_resource.c acpi
file dev/acpi/acpi_powerres.c acpi
file dev/acpi/acpi_madt.c acpi & mpacpi
file dev/acpi/acpi_quirks.c acpi
# ACPI Embedded Controller
device acpiec
attach acpiec at acpi
file dev/acpi/acpi_ec.c acpiec needs-flag
# ACPI Lid Switch
device acpilid: sysmon_power
attach acpilid at acpi
file dev/acpi/acpi_lid.c acpilid
# ACPI Button
device acpibut: sysmon_power
attach acpibut at acpi
file dev/acpi/acpi_button.c acpibut
# ACPI AC Adapter
device acpiacad: sysmon_envsys, sysmon_power
attach acpiacad at acpi
file dev/acpi/acpi_acad.c acpiacad
# ACPI Control Method Battery
device acpibat: sysmon_envsys
attach acpibat at acpi
file dev/acpi/acpi_bat.c acpibat
# ACPI Thermal Zone
device acpitz: sysmon_envsys
attach acpitz at acpi
file dev/acpi/acpi_tz.c acpitz
# Serial interface
attach com at acpi with com_acpi
file dev/acpi/com_acpi.c com_acpi
# Floppy disk controller
attach fdc at acpi with fdc_acpi
file dev/acpi/fdc_acpi.c fdc_acpi
# Parallel interface
attach lpt at acpi with lpt_acpi
file dev/acpi/lpt_acpi.c lpt_acpi & !ppbus
attach atppc at acpi with atppc_acpi: isadma
file dev/acpi/atppc_acpi.c atppc_acpi
# Keyboard controller
attach pckbc at acpi with pckbc_acpi
file dev/acpi/pckbc_acpi.c pckbc_acpi
# NeoMagic 256AV audio with CS4232 codec
attach wss at acpi with wss_acpi
file dev/acpi/wss_acpi.c wss_acpi
# Roland MPU401 (compatible) MIDI UART
attach mpu at acpi with mpu_acpi
file dev/acpi/mpu_acpi.c mpu_acpi
# Joystick/Game port
attach joy at acpi with joy_acpi
file dev/acpi/joy_acpi.c joy_acpi
# AT-style speaker sound
attach pcppi at acpi with pcppi_acpi
file dev/acpi/pcppi_acpi.c pcppi_acpi
# AT Timer
attach attimer at acpi with attimer_acpi
file dev/acpi/attimer_acpi.c attimer_acpi