2011-01-09 18:12:33 +03:00
|
|
|
# $NetBSD: files.acpi,v 1.84 2011/01/09 15:12:34 jruoho Exp $
|
2001-09-28 06:09:22 +04:00
|
|
|
|
|
|
|
include "dev/acpi/acpica/files.acpica"
|
|
|
|
|
2006-07-04 04:30:21 +04:00
|
|
|
defflag opt_acpi.h ACPIVERBOSE ACPI_DEBUG ACPI_ACTIVATE_DEV
|
2009-07-06 16:36:31 +04:00
|
|
|
ACPI_DSDT_OVERRIDE ACPI_SCANPCI ACPI_BREAKPOINT
|
2007-01-09 16:41:30 +03:00
|
|
|
defparam opt_acpi.h ACPI_DSDT_FILE := "\"/dev/null\""
|
2010-09-06 19:54:26 +04:00
|
|
|
defparam opt_acpi.h ACPI_BLACKLIST_YEAR = 2000
|
2001-09-28 06:09:22 +04:00
|
|
|
|
2006-08-06 19:46:54 +04:00
|
|
|
define acpiapmbus { }
|
|
|
|
define acpinodebus { }
|
2007-12-09 23:27:42 +03:00
|
|
|
define acpiecdtbus { }
|
2006-08-06 19:46:54 +04:00
|
|
|
|
2009-08-18 20:41:02 +04:00
|
|
|
device acpi: acpica, acpiapmbus, acpinodebus, acpiecdtbus, sysmon_power, sysmon_taskq
|
2001-09-28 06:09:22 +04:00
|
|
|
attach acpi at acpibus
|
2009-08-18 20:41:02 +04:00
|
|
|
file dev/acpi/acpi.c acpi
|
2010-01-31 14:26:20 +03:00
|
|
|
file dev/acpi/acpi_debug.c acpi
|
2009-12-04 00:04:29 +03:00
|
|
|
file dev/acpi/acpi_pci.c acpi
|
2006-07-04 04:30:21 +04:00
|
|
|
file dev/acpi/acpi_pci_link.c acpi
|
2010-04-22 22:40:09 +04:00
|
|
|
file dev/acpi/acpi_power.c acpi
|
2003-05-16 01:29:49 +04:00
|
|
|
file dev/acpi/acpi_quirks.c acpi
|
2010-04-14 21:12:14 +04:00
|
|
|
file dev/acpi/acpi_resource.c acpi
|
2009-11-25 16:17:06 +03:00
|
|
|
file dev/acpi/acpi_srat.c acpi
|
2009-11-25 16:21:49 +03:00
|
|
|
file dev/acpi/acpi_slit.c acpi
|
2010-04-14 21:12:14 +04:00
|
|
|
file dev/acpi/acpi_timer.c acpi
|
|
|
|
file dev/acpi/acpi_util.c acpi
|
|
|
|
file dev/acpi/acpi_wakedev.c acpi
|
2010-06-01 00:32:28 +04:00
|
|
|
file dev/acpi/acpi_verbose.c acpi & acpiverbose
|
2001-09-29 09:36:03 +04:00
|
|
|
|
2006-07-09 00:23:53 +04:00
|
|
|
# ACPI/apm emulation.
|
2007-08-23 14:04:07 +04:00
|
|
|
attach apm at acpiapmbus with acpiapm: sysmon_envsys
|
2006-07-09 00:23:53 +04:00
|
|
|
file dev/acpi/acpi_apm.c acpiapm
|
|
|
|
|
2001-09-29 09:36:03 +04:00
|
|
|
# ACPI Embedded Controller
|
|
|
|
device acpiec
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpiec at acpinodebus
|
2007-12-09 23:27:42 +03:00
|
|
|
device acpiecdt
|
|
|
|
attach acpiecdt at acpiecdtbus
|
|
|
|
file dev/acpi/acpi_ec.c acpiec|acpiecdt
|
2001-09-28 06:09:22 +04:00
|
|
|
|
|
|
|
# ACPI Lid Switch
|
2003-04-17 05:22:21 +04:00
|
|
|
device acpilid: sysmon_power
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpilid at acpinodebus
|
2001-09-28 06:09:22 +04:00
|
|
|
file dev/acpi/acpi_lid.c acpilid
|
|
|
|
|
|
|
|
# ACPI Button
|
2003-04-17 05:22:21 +04:00
|
|
|
device acpibut: sysmon_power
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpibut at acpinodebus
|
2001-09-28 06:09:22 +04:00
|
|
|
file dev/acpi/acpi_button.c acpibut
|
|
|
|
|
|
|
|
# ACPI AC Adapter
|
2004-05-03 11:44:36 +04:00
|
|
|
device acpiacad: sysmon_envsys, sysmon_power
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpiacad at acpinodebus
|
2001-09-29 09:36:03 +04:00
|
|
|
file dev/acpi/acpi_acad.c acpiacad
|
2002-03-24 06:46:10 +03:00
|
|
|
|
|
|
|
# ACPI Control Method Battery
|
2002-12-31 08:26:56 +03:00
|
|
|
device acpibat: sysmon_envsys
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpibat at acpinodebus
|
2002-03-24 06:46:10 +03:00
|
|
|
file dev/acpi/acpi_bat.c acpibat
|
2002-12-28 09:20:15 +03:00
|
|
|
|
Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).
Remarks:
1. Commented out in the GENERICs; more testing exposure is needed.
2. The C3-state is disabled for the time being because it turns off
timers, among them the local APIC timer. This may not be universally
true on all x86 processors; define ACPICPU_ENABLE_C3 to test.
3. The algorithm used to choose a power state may need tuning. When
evaluating the appropriate state, the implementation uses the
previous sleep time as an indicator. Additional hints would include
for example the system load.
Also bus master activity is evaluated when choosing a state. The
usb(4) stack is notorious for such activity even when unused.
Typically it must be disabled in order to reach the C3-state,
but it may also prevent the use of C2.
4. While no extensive empirical measurements have been carried out, the
power savings are somewhere between 1-2 W with C1 and C2, depending
on the processor, firmware, and load. With C3 even up to 4 W can be
saved. The less something ticks, the more power is saved.
ok jmcneill@, joerg@, and discussed with various people.
2010-07-18 13:29:11 +04:00
|
|
|
# ACPI CPU
|
|
|
|
device acpicpu
|
|
|
|
attach acpicpu at acpinodebus
|
|
|
|
file dev/acpi/acpi_cpu.c acpicpu
|
|
|
|
file dev/acpi/acpi_cpu_cstate.c acpicpu
|
2010-08-08 21:21:14 +04:00
|
|
|
file dev/acpi/acpi_cpu_pstate.c acpicpu
|
2010-08-13 20:21:50 +04:00
|
|
|
file dev/acpi/acpi_cpu_tstate.c acpicpu
|
Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add
the remaining functionality later (namely throttling and P-states).
Remarks:
1. Commented out in the GENERICs; more testing exposure is needed.
2. The C3-state is disabled for the time being because it turns off
timers, among them the local APIC timer. This may not be universally
true on all x86 processors; define ACPICPU_ENABLE_C3 to test.
3. The algorithm used to choose a power state may need tuning. When
evaluating the appropriate state, the implementation uses the
previous sleep time as an indicator. Additional hints would include
for example the system load.
Also bus master activity is evaluated when choosing a state. The
usb(4) stack is notorious for such activity even when unused.
Typically it must be disabled in order to reach the C3-state,
but it may also prevent the use of C2.
4. While no extensive empirical measurements have been carried out, the
power savings are somewhere between 1-2 W with C1 and C2, depending
on the processor, firmware, and load. With C3 even up to 4 W can be
saved. The less something ticks, the more power is saved.
ok jmcneill@, joerg@, and discussed with various people.
2010-07-18 13:29:11 +04:00
|
|
|
|
2010-10-12 23:10:49 +04:00
|
|
|
# ACPI Display
|
|
|
|
device acpivga {}
|
|
|
|
attach acpivga at acpinodebus
|
|
|
|
device acpiout
|
|
|
|
attach acpiout at acpivga
|
|
|
|
file dev/acpi/acpi_display.c acpivga|acpiout
|
|
|
|
|
2011-01-09 18:12:33 +03:00
|
|
|
# ACPI Fan
|
|
|
|
device acpifan: sysmon_envsys
|
|
|
|
attach acpifan at acpinodebus
|
|
|
|
file dev/acpi/acpi_fan.c acpifan
|
|
|
|
|
2011-01-05 23:08:12 +03:00
|
|
|
# ACPI Power Meter
|
|
|
|
device acpipmtr: sysmon_envsys
|
|
|
|
attach acpipmtr at acpinodebus
|
|
|
|
file dev/acpi/acpi_pmtr.c acpipmtr
|
|
|
|
|
2003-01-04 08:36:03 +03:00
|
|
|
# ACPI Thermal Zone
|
|
|
|
device acpitz: sysmon_envsys
|
2006-08-06 19:46:54 +04:00
|
|
|
attach acpitz at acpinodebus
|
2003-01-04 08:36:03 +03:00
|
|
|
file dev/acpi/acpi_tz.c acpitz
|
|
|
|
|
2002-12-28 09:20:15 +03:00
|
|
|
# Serial interface
|
2006-08-06 19:46:54 +04:00
|
|
|
attach com at acpinodebus with com_acpi
|
2002-12-28 09:20:15 +03:00
|
|
|
file dev/acpi/com_acpi.c com_acpi
|
|
|
|
|
2002-12-28 22:31:35 +03:00
|
|
|
# Floppy disk controller
|
2006-08-06 19:46:54 +04:00
|
|
|
attach fdc at acpinodebus with fdc_acpi
|
2002-12-28 22:31:35 +03:00
|
|
|
file dev/acpi/fdc_acpi.c fdc_acpi
|
|
|
|
|
2002-12-28 11:04:28 +03:00
|
|
|
# Parallel interface
|
2006-08-06 19:46:54 +04:00
|
|
|
attach lpt at acpinodebus with lpt_acpi
|
2004-01-25 14:46:49 +03:00
|
|
|
file dev/acpi/lpt_acpi.c lpt_acpi & !ppbus
|
|
|
|
|
2006-08-06 19:46:54 +04:00
|
|
|
attach atppc at acpinodebus with atppc_acpi: isadma
|
2004-01-25 14:46:49 +03:00
|
|
|
file dev/acpi/atppc_acpi.c atppc_acpi
|
2002-12-28 11:04:28 +03:00
|
|
|
|
2002-12-28 11:45:31 +03:00
|
|
|
# Keyboard controller
|
2006-08-06 19:46:54 +04:00
|
|
|
attach pckbc at acpinodebus with pckbc_acpi
|
2002-12-28 11:45:31 +03:00
|
|
|
file dev/acpi/pckbc_acpi.c pckbc_acpi
|
|
|
|
|
2002-12-28 09:20:15 +03:00
|
|
|
# NeoMagic 256AV audio with CS4232 codec
|
2006-08-06 19:46:54 +04:00
|
|
|
attach wss at acpinodebus with wss_acpi
|
2002-12-28 09:20:15 +03:00
|
|
|
file dev/acpi/wss_acpi.c wss_acpi
|
2004-12-02 12:50:41 +03:00
|
|
|
|
|
|
|
# Roland MPU401 (compatible) MIDI UART
|
2006-08-06 19:46:54 +04:00
|
|
|
attach mpu at acpinodebus with mpu_acpi
|
2004-12-02 12:50:41 +03:00
|
|
|
file dev/acpi/mpu_acpi.c mpu_acpi
|
2004-12-02 17:33:31 +03:00
|
|
|
|
|
|
|
# Joystick/Game port
|
2006-08-06 19:46:54 +04:00
|
|
|
attach joy at acpinodebus with joy_acpi
|
2004-12-02 17:33:31 +03:00
|
|
|
file dev/acpi/joy_acpi.c joy_acpi
|
2005-03-21 17:06:46 +03:00
|
|
|
|
|
|
|
# AT-style speaker sound
|
2006-08-06 19:46:54 +04:00
|
|
|
attach pcppi at acpinodebus with pcppi_acpi
|
2005-03-21 17:06:46 +03:00
|
|
|
file dev/acpi/pcppi_acpi.c pcppi_acpi
|
2005-03-26 02:06:19 +03:00
|
|
|
|
|
|
|
# AT Timer
|
2006-08-06 19:46:54 +04:00
|
|
|
attach attimer at acpinodebus with attimer_acpi
|
2005-03-26 02:06:19 +03:00
|
|
|
file dev/acpi/attimer_acpi.c attimer_acpi
|
2006-08-14 13:34:43 +04:00
|
|
|
|
|
|
|
# Yamaha OPL3-SAx
|
|
|
|
attach ym at acpinodebus with ym_acpi
|
|
|
|
file dev/acpi/ym_acpi.c ym_acpi
|
2007-03-08 17:26:26 +03:00
|
|
|
|
|
|
|
# High Precision Event Timer
|
|
|
|
attach hpet at acpinodebus with hpet_acpi
|
|
|
|
file dev/acpi/hpet_acpi.c hpet_acpi
|
|
|
|
|
2008-03-31 19:17:21 +04:00
|
|
|
# ASUS hotkey device
|
2009-08-03 14:30:29 +04:00
|
|
|
device asus: sysmon_envsys, sysmon_power
|
2008-03-31 19:17:21 +04:00
|
|
|
attach asus at acpinodebus
|
|
|
|
file dev/acpi/asus_acpi.c asus
|
|
|
|
|
2007-05-08 20:48:37 +04:00
|
|
|
# Abit uGuru 2005
|
|
|
|
attach ug at acpinodebus with ug_acpi
|
|
|
|
file dev/acpi/ug_acpi.c ug_acpi
|
2007-12-21 18:15:19 +03:00
|
|
|
|
2008-05-02 00:18:18 +04:00
|
|
|
# HP Quick Launch Buttons
|
|
|
|
device hpqlb: sysmon_power
|
|
|
|
attach hpqlb at acpinodebus
|
|
|
|
file dev/acpi/hpqlb_acpi.c hpqlb
|
|
|
|
|
2007-12-23 20:29:26 +03:00
|
|
|
# Sony Notebook Controller (brightness, hotkeys, etc.)
|
|
|
|
device sony: displaydev
|
|
|
|
attach sony at acpinodebus with sony_acpi
|
|
|
|
file dev/acpi/sony_acpi.c sony_acpi
|
|
|
|
|
2010-04-10 21:55:24 +04:00
|
|
|
# Toshiba hotkeys
|
|
|
|
device vald
|
|
|
|
attach vald at acpinodebus with vald_acpi
|
|
|
|
file dev/acpi/vald_acpi.c vald_acpi
|
|
|
|
|
2010-04-12 02:42:30 +04:00
|
|
|
# Toshiba backlight hotkeys
|
|
|
|
device valz
|
|
|
|
attach valz at acpinodebus
|
|
|
|
file dev/acpi/valz_acpi.c valz
|
|
|
|
|
2009-08-09 23:36:28 +04:00
|
|
|
# Sony SPIC (jog dial etc.)
|
|
|
|
attach spic at acpinodebus with spic_acpi
|
|
|
|
file dev/acpi/spic_acpi.c spic_acpi
|
|
|
|
|
2007-12-21 18:15:19 +03:00
|
|
|
# IBM/Lenovo Thinkpad hotkey device
|
|
|
|
device thinkpad
|
|
|
|
attach thinkpad at acpinodebus
|
|
|
|
file dev/acpi/thinkpad_acpi.c thinkpad
|
2008-05-19 02:05:59 +04:00
|
|
|
|
|
|
|
# Direct Application Launch Buttons
|
|
|
|
device acpidalb
|
|
|
|
attach acpidalb at acpinodebus
|
|
|
|
file dev/acpi/dalb_acpi.c acpidalb
|
2009-10-01 00:44:49 +04:00
|
|
|
|
|
|
|
# Winbond Integrated Media Reader
|
|
|
|
attach wb at acpinodebus with wb_acpi
|
|
|
|
file dev/acpi/wb_acpi.c wb_acpi
|
2009-10-02 20:47:52 +04:00
|
|
|
|
2010-02-09 06:19:50 +03:00
|
|
|
# ASUSTeK AI Booster ATK0110
|
|
|
|
device aibs: sysmon_envsys
|
|
|
|
attach aibs at acpinodebus
|
|
|
|
file dev/acpi/atk0110.c aibs
|
|
|
|
|
2010-02-06 23:10:18 +03:00
|
|
|
# ACPI SMBus controller
|
|
|
|
device acpismbus: i2cbus
|
|
|
|
attach acpismbus at acpinodebus
|
|
|
|
file dev/acpi/smbus_acpi.c acpismbus
|
2010-04-08 13:36:03 +04:00
|
|
|
|
2010-11-05 13:28:20 +03:00
|
|
|
# Fujitsu Brightness, Pointer and Hotkeys
|
|
|
|
device fujbp
|
|
|
|
attach fujbp at acpinodebus
|
|
|
|
device fujhk: sysmon_power
|
|
|
|
attach fujhk at acpinodebus
|
|
|
|
file dev/acpi/fujitsu_acpi.c fujbp|fujhk
|
|
|
|
|
2010-04-08 13:36:03 +04:00
|
|
|
include "dev/acpi/wmi/files.wmi"
|