njl
8881707b65
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
njl
5e14731c01
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
njl
86267b0197
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
njl
8fcef8f766
MPSAFE locking
...
* Serialize access to the sysctl routines and the notify handler.
2004-08-13 06:22:29 +00:00
philip
b2d488a77d
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
11953c7462
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
njl
f9477f2ed8
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
njl
a24969480f
Whitespace cleanup and move static variables together.
2004-07-24 20:40:02 +00:00
njl
a247fc5f3a
Remove unneeded parens and fix whitespace.
2004-07-24 20:39:25 +00:00
nyan
3c92d13fb3
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
njl
338dc29a06
Update for acpi_id_probe()
2004-06-29 19:05:20 +00:00
phk
dfd1f7fd50
Do the dreaded s/dev_t/struct cdev */
...
Bump __FreeBSD_version accordingly.
2004-06-16 09:47:26 +00:00
njl
def38ca92f
s/device_get_handle/acpi_get_handle
...
Submitted by: Hiroyuki Aizu
2004-06-15 16:49:20 +00:00
njl
1bbd7dc3ea
Catch one more use of acpi_MatchHid and update for new API.
2004-06-15 02:17:23 +00:00
njl
6e8eadb40d
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
phk
30a7ac8468
Add missing #include <sys/module.h>
2004-05-30 20:34:58 +00:00
philip
ea8607cc65
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
46d76e027d
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
njl
2829e3ec62
Use METHOD_VIDEO instead of the method string itself.
...
Pointed out by: Andrew Thompson
2004-04-14 03:32:01 +00:00
njl
36be62a85e
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
njl
9898fa8613
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
njl
3baf2d6bee
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
njl
eead54ba87
Only remove the handler if we installed it.
2004-01-12 19:35:31 +00:00
njl
9a9dc0c362
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
njl
7c9c2b48f7
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