Philip Paeps
4b0eb6a716
Make sure status variable is always initialized. Why didn't this show up in
...
my testing? *grmbl*
2005-03-21 18:11:50 +00:00
Philip Paeps
d8e0b9e1c0
Simplify sysctl handling by consolidating various get/set functions into
...
generic functions, use a table for hooking up sysctls nodes rather than doing
it manually. While here, clean up some style bugs.
Glanced at by: njl
2005-03-20 23:36:36 +00:00
Philip Paeps
9a8b554fc2
Add acpi_fujitsu for handling acpi-controlled buttons on Fujitsu laptops.
...
Submitted by: Anish Mistry <mistry.7 -at- osu.edu>
Reviewed by: njl
X-MFC after: 5.4-RELEASE
2005-03-18 08:48:10 +00:00
David E. O'Brien
dad97fee58
Fix SCM ID's.
2005-03-02 09:22:34 +00:00
Nate Lawson
276cd9216d
Unify ACPI_DEBUG support for all OEM drivers under ACPI_OEM. Since more than
...
one will never be supported on the same platform, this does not hurt
debugging.
MFC after: 3 days
2004-12-13 23:31:46 +00:00
Scott Long
82d4da0f73
Allow the acpi_ibm module to be built with ACPI_DEBUG.
2004-12-13 03:22:11 +00:00
Takanori Watanabe
06064893b3
Add IBM Laptop extra device driver.
...
This depends on ACPI and RTC registers.
Reviewed by: njl
2004-12-09 13:54:29 +00:00
Warner Losh
669f5ef94f
Attach the device at acpi_sony instead of acpi_snc. Rename some
...
internal variables as well to reflect the change.
2004-11-29 16:40:30 +00:00
Warner Losh
2451114ab1
Remove more debugging
2004-11-15 20:08:44 +00:00
Warner Losh
b42dda8abf
Merge 1.3 from acpi_snc.c: don't use return_VALUE() macro
...
Improve style(9) compliance.
2004-11-15 05:12:17 +00:00
Warner Losh
f454a309d3
Kill ACPI_FUNCTION_TRACE. It is killing the tinderbox build, and it
...
isn't worth adding to the modules lists that we have to hard code for
this to work. Since we print PID right away, we have a trace point
already.
Minor knf while I'm here.
2004-11-13 23:39:56 +00:00
Philip Paeps
078080c965
o Change the strcmp() to a strncmp() to allow us to attach to 'E'
...
models of laptops, which are essentially the same as the normal
ones, as far as acpi_asus is concerned[1]
o Use the above as an excuse to reshuffle the mess I made of the
probe function when I originally wrote it.
Reported by: Soeren Larsen <soeren@whiteswan.dk>
2004-11-12 23:21:19 +00:00
Philip Paeps
03cbfbc51a
Minor whitespace nitpicking to reduce my diffs of Real Changes[tm]
2004-11-12 23:06:13 +00:00
Warner Losh
dbacb6c44d
Commit takawata-san's Sony Notebook Controller driver, integrated into
...
the tree. Small tweaks were made by myself to eliminate unnecessary
includes and some other minor issues. Last time I asked takawata-san
about this driver, he suggested I commit it.
Submitted by: takawata
2004-11-11 22:54:58 +00:00
Philip Paeps
9923cf221b
Add support for gadgets on Asus L4R and M6R notebooks.
2004-11-08 16:54:26 +00:00
Nate Lawson
f3118682aa
Add power profile support so that the LCD changes brightness levels based
...
on the AC line state.
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
MFC after: 1 week
2004-11-07 23:18:23 +00:00
Philip Paeps
706bd68cca
Fix support for the Asus-compatible gadgets in Samsung P30/P35 laptops.
...
PR: 73380
Submitted by: Sebastian Schulze Struchtrup <seb@struchtrup.com>
2004-11-05 07:24:11 +00:00
Philip Paeps
17520557d3
Add support for Asus M6N laptops
...
Submitted by: Andreas Dieling <snow@quantentunnel.de>
2004-11-02 13:02:22 +00:00
Nate Lawson
9f65aa0340
Be sure to always unlock the sx lock when exiting the sysctl function.
...
MFC after: 3 days
2004-08-24 17:53:25 +00:00
Nate Lawson
8781a7852f
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler
* Assert that the sx lock is held in any functions they call.
* Note that recursively calling to re-enable the hotkeys is sub-optimal.
2004-08-13 06:22:35 +00:00
Nate Lawson
e8a162f4f3
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler
* Assert that the sx lock is held in any functions they call.
2004-08-13 06:22:31 +00:00
Nate Lawson
1051a7c2da
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler.
2004-08-13 06:22:29 +00:00
Philip Paeps
09003ac33f
Unbreak LINT by making sure that method is always defined.
...
Submitted by: roam
Pointy hat to: philip
2004-08-04 14:29:22 +00:00
Philip Paeps
f5296c9302
Further cleanup: merge the three led toggling functions
...
into a single general function to handle all leds.
Approved by: njl
2004-08-03 22:37:09 +00:00
Nate Lawson
8390cfe8a6
Use the acpi_{Get,Set}Integer functions instead of rolling custom ones.
...
Clean up return path of each function to have a single exit point. This
reduces diffs against the MPSAFE tree.
2004-08-03 21:17:36 +00:00
Nate Lawson
be22348065
Whitespace cleanup and move static variables together.
2004-07-24 20:40:02 +00:00
Nate Lawson
b4cb140233
Remove unneeded parens and fix whitespace.
2004-07-24 20:39:25 +00:00
Yoshihiro Takahashi
ee6020c993
Add the ACPI Panasonic extras driver.
...
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org> and nyan
2004-07-21 14:47:54 +00:00
Nate Lawson
3ed1dfa11d
Update for acpi_id_probe()
2004-06-29 19:05:20 +00:00
Poul-Henning Kamp
89c9c53da0
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
Nate Lawson
591b993b83
s/device_get_handle/acpi_get_handle
...
Submitted by: Hiroyuki Aizu
2004-06-15 16:49:20 +00:00
Nate Lawson
f6c8318b0f
Catch one more use of acpi_MatchHid and update for new API.
2004-06-15 02:17:23 +00:00
Nate Lawson
7a15653c9c
Use the new API for acpi_MatchHid(). The difference between ACPI_HANDLE
...
and device_t isn't caught by the compiler.
2004-06-14 03:40:56 +00:00
Poul-Henning Kamp
77409fe148
Add missing #include <sys/module.h>
2004-05-30 20:34:58 +00:00
Philip Paeps
647e5349ec
Enable the led-toggling magic. Compiling files which are in the kernel into
...
modules is a very nice way to produce hard-to-find panics. Who would look for
a bug in a Makefile anyway?
Has anyone seen the pointy hat? :-o
Approved by: njl (mentor)
2004-04-23 17:41:05 +00:00
Philip Paeps
9a1fc77e3a
Add the ACPI Asus extras driver. Provides support for cool ACPI-controled
...
gadgets (hotkeys, lcd, ...) on Asus laptops. I aim to closely track the
acpi4asus project which implements these features in the Linux kernel.
If this breaks your laptop, please let me know how it does it :-)
Approved by: njl (mentor)
2004-04-22 21:29:02 +00:00
Nate Lawson
96d340f27d
Use METHOD_VIDEO instead of the method string itself.
...
Pointed out by: Andrew Thompson
2004-04-14 03:32:01 +00:00
Nate Lawson
0287be96bf
Add support for video output switching. It appears no systems use HCI to
...
change the video output but use a separate device with a DSSX method
and a HID of "TOS6201" instead. We use a pseudo-driver to get the handle
for this object and pass it to the acpi_toshiba driver.
This is untested but seems to match the Linux Toshiba driver.
2004-04-14 00:23:58 +00:00
Nate Lawson
a4ecd54325
Unify on version 1 to be similar to the rest of the tree. After 5-stable
...
branches, increment version on any API change visible to other modules.
2004-04-08 16:45:12 +00:00
Nate Lawson
3184cf5a6b
Add support for quirks for acpi tables. Key off OEM vendor and revision.
...
Sort acpi debug values. Change "disable" to "disabled" to match rest of
the kernel. Remove debugging from acpi_toshiba since it was only used for
probe/attach.
2004-03-03 03:02:17 +00:00
Nate Lawson
b9585d5e60
Only remove the handler if we installed it.
2004-01-12 19:35:31 +00:00
Nate Lawson
1114c59266
Clean up the probe message and sort the function table according to
...
the function order in the file.
2004-01-12 06:55:50 +00:00
Nate Lawson
65c0f49140
Add the ACPI Toshiba extras driver (hotkeys, LCD backlight, video output,
...
forced fan control, and CPU throttling).
PR:
Submitted by: Hiroyuki Aizu <aizu@navi.org>
Reviewed by:
Approved by:
Obtained from:
MFC after:
2004-01-11 19:18:39 +00:00