Commit Graph

806 Commits

Author SHA1 Message Date
jakllsch
e1ec199332 Add valz(4), a simple driver to handle the backlight keys on some
Toshiba laptops.  As of yet only tested on a Satellite A135-S4527.
2010-04-11 22:42:30 +00:00
jruoho
1863635681 Document "how-to override the DSDT" in the manual page instead of code. 2010-04-11 08:58:43 +00:00
jruoho
403b8820f1 Remove unnecessary casts. 2010-04-10 18:32:13 +00:00
jruoho
039f34b662 Move vald(4) to sys/dev/acpi. This is MI and should work also on amd64.
ok jmcneill@

XXX:    This is broken: it calls methods with absolute pathnames (almost
        guaranteed not to be portable across models), it accesses methods
        that are in the domain of other drivers, it walks the namespace on
        its own, it contains plenty of magic constants, it does not
        integrate with existing KPIs, etc. Summa summarum: this should be
        rewritten as a more generic toshiba_acpi(4).
2010-04-10 17:55:24 +00:00
jruoho
a0fefff3ae Add NSC1100. From ThinkPad T43p. 2010-04-10 16:45:51 +00:00
jruoho
2caf94afd1 Update a comment. 2010-04-10 06:56:30 +00:00
jruoho
cbd7048dde Regen 2010-04-10 06:10:13 +00:00
jruoho
1ad22d8495 Add ITE8708. From Dell Studio XPS 16. 2010-04-10 06:09:24 +00:00
jruoho
86fe3bdd61 Regen. 2010-04-09 16:33:06 +00:00
jruoho
ac1d74b59d Add SYN013B. Observed from the dmesg of cegger@'s HP Pavilion dv9700. 2010-04-09 16:32:17 +00:00
jruoho
468cbba563 Use ACPI_DEBUG_PRINT instead of a local DPRINTF. 2010-04-09 15:45:59 +00:00
jruoho
a57241d4f0 Fix a potential NULL pointer dereference. 2010-04-09 04:48:23 +00:00
jruoho
5a858cc492 Add WMI mappings for HP laptops. Requested by cegger@.
Thanks to apb@ and cegger@ for initial testing.

XXX: This conflicts with hpqlb(4). Someone with the suitable hardware needs
     to complete the list of hotkeys before -- and if -- this can replace
     hpqlb(4). For now, the driver was left uncommented in the GENERICs.
2010-04-08 17:32:30 +00:00
jruoho
7a8e952232 Semantics. 2010-04-08 12:36:21 +00:00
jruoho
a913ee750d Move acpiwmi(4) to the "sys/dev/acpi/wmi" -subdirectory. 2010-04-08 12:14:19 +00:00
jruoho
ab88ce45ea Add a dummy acpi_wmi_event_deregister() to match existing conventions. 2010-04-08 10:33:13 +00:00
jruoho
d49fb742ce Include 'files.wmi'. 2010-04-08 09:36:03 +00:00
jruoho
d97f534eb9 Add WMI mappings for Dell laptops. Requested and tested by mrg@. 2010-04-08 09:35:15 +00:00
jruoho
230c5ee4c7 ACPICA 20091112:
Implemented a post-order callback to AcpiWalkNamespace. The existing
        interface only has a pre-order callback. This change adds an
        additional parameter for a post-order callback which will be more
        useful for bus scans.  ACPICA BZ 779. Lin Ming. Updated the ACPICA
        Programmer Reference.

We will use the old "pre-order callback" for the time being.
2010-04-08 04:40:51 +00:00
jruoho
7fe08819d5 Update the limits when a change from absent to present is detected. 2010-04-03 16:29:22 +00:00
dyoung
0841103645 Attach acpiecdt with acpibus_attach_args. Sverre Froyen reports that
this helps his Thinkpad boot again.
2010-03-29 16:35:59 +00:00
pgoyette
0a999d0c06 Update acpiapm_get_powstat() to adjust for the recent changes to
acpi_bat(4).  (The warn_cap and low_cap sensors were removed, and the
values are now stored as the alarm limits of the charge sensor.)
2010-03-28 13:11:23 +00:00
pooka
54be9a9f62 Catch up with cosmetic changes to output from config(1) 2010-03-26 15:51:55 +00:00
pooka
929e108067 Convert to config_init/fini_component.
tested by jruoho
2010-03-26 05:59:26 +00:00
pgoyette
0c7008e9c3 Set the SME_INIT_REFRESH flag so that the sensors' values (including
charge's max_value) are available when the event monitors are created.
2010-03-24 12:18:54 +00:00
pgoyette
c998024539 Only set the APM_BATT_FLAG_NO_SYSTEM_BATTERY if _all_ batteries are
not_present.
2010-03-24 01:45:37 +00:00
dyoung
f52f7d91ef Do not use unitialized bus_space_tag_t's. Use the tag(s) from the
attachment arguments.
2010-03-24 01:13:30 +00:00
jruoho
dfc3a8d66a Fix the previous commit properly: we need to set all sensor-flags during the
initialization of sysmon_envsys(9), otherwise, if _STA does not return true
during the attachment of the driver, it is possible that a flag is never
set. This flaw has always been present, but it only got exposed after the
conversion to use the sysmon-limits.
2010-03-22 15:08:35 +00:00
jruoho
998dd58875 Regen. 2010-03-22 11:16:02 +00:00
jruoho
0a2027602e Add IFX0102 and PNP0C15. Fix INT0800.
Observed from the dmesg of njoly@'s Sony VAIO VGN-BZ12VN.
2010-03-22 11:13:23 +00:00
jruoho
72763cb4e7 Set the capacity flags already in the acpibat_get_info(),
instead of acpibat_get_status().
2010-03-22 09:31:24 +00:00
pooka
f3beefdb45 Convert acpibat to use ioconf instead of homerolled config glue.
Note, config whines about things like:
files.acpi:30: attaching undefined device `apm'

I intentionally was a lazy boy and didn't include a ton of dirt to
keep the hot napalm and riot blasts in the config thread rolling ;)

tested by jruoho (thanks!)
2010-03-21 07:09:56 +00:00
cnst
deaf16ef51 Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html

Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
jruoho
2786f7261b Silence errors from the integer evaluations in case the objects are not found.
(This was too verbose even for ACPI_DEBUG.) Also fit the status messages to
one line during boot by using aprint_verbose() for extra information.
2010-03-17 20:29:32 +00:00
jruoho
ef2b6dd20b Print also the so-called "granularity" values when the _BIF is evaluated.
These refer to the smallest increment in capacity that the battery is
capable of measuring.
2010-03-17 11:07:59 +00:00
jruoho
dce0020d0c Remove the technology "sensor" (a fixed constant). Report this information
in an improved output when the battery information changes (i.e. device
attachment or battery removal/insertion).
2010-03-17 09:21:50 +00:00
jruoho
febc76c6be Remove the timer-based check in the sensor refresh routine. We henceforth
trust that the sysmon_envsys(9)'s polling is functioning properly. Discussed
with drochner@, jmcneill@, and pgoyette@.
2010-03-17 08:07:27 +00:00
jruoho
88e4bfe590 Fix the testing of temporarily unknown values. 2010-03-17 07:48:18 +00:00
jruoho
73b3b3d393 Move the low and warning capacity sensors to the limits framework provided
by sysmon_envsys(9).
2010-03-17 07:40:34 +00:00
jruoho
b32f00af46 Remove the call to AcpiGetType() in acpi_make_devnode(). This is the same
information as ACPI_DEVICE_INFO::Type, obtained later by AcpiGetObjectInfo().
2010-03-16 08:02:01 +00:00
jruoho
dd980e2a52 Remove unused headers. 2010-03-16 07:18:55 +00:00
jruoho
881fa5618a With the intent of making 'struct acpi_devnode' as the central place for
information related to ACPI device nodes: (a) introduce a generic scan
function for ACPI device driver "capabilities", and (b) eliminate local data
structures from ACPI wake-devices. Discussed with jmcneill@.
2010-03-16 05:48:42 +00:00
pgoyette
89bf6ebb9f Remove setting of edata->monitor since that member no longer exists. 2010-03-14 18:05:07 +00:00
jruoho
2aba95133a Move the ACPI_ACTIVATE_DEV block to one place. While there, provide missing
prototype for a function, try to make the code more simple, guard against a
potential NULL pointer dereference, and improve printing.

No functional change intended.
2010-03-10 09:42:46 +00:00
jruoho
f26ee18df3 Some pretty printing for ACPIVERBOSE. 2010-03-10 08:12:44 +00:00
jruoho
320e1e3fb8 Remove the namespace scopes.
These are neither used nor useful beyond the parser and interpreter.

ok jmcneill@, joerg@
2010-03-09 18:15:21 +00:00
jruoho
cc5a93f703 Add missing (FreeBSD) license. Ok jmcneill@. 2010-03-08 12:35:08 +00:00
cnst
a129d2bf19 register aibs(4) with pmf(9) to quiet the latter down; reported Dieter Roelants 2010-03-08 11:54:35 +00:00
jruoho
aa4b9b510c Use the predefined ACPI_STA_BATTERY_PRESENT instead of defining a local one. 2010-03-08 11:45:45 +00:00
jruoho
10690c8c4f Remove unused struct sysctllog from the softc. 2010-03-08 11:39:42 +00:00