summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2008-05-15Handle Alias named objects, return original objectJordan Hargrave
Clear out result before evaluating
2008-05-14only compile aml_dump() if option ACPI_DEBUG.Miod Vallat
2008-05-14Let this build and link if SMALL_KERNEL.Miod Vallat
2008-05-14Removed debugging printfsJordan Hargrave
2008-05-14Clean up a bit.Brad Smith
ok jordan@
2008-05-14Adding new ACPI Parser codeJordan Hargrave
Old guts of code still exists, needs to be torn out next ok marco@ ok brad@
2008-05-14recognize some more eventsjoshua stein
hook up the volume keys to actually do stuff; from Stefan Kempf use aml_freevalue to properly free memory in all cases; prodded by deanna
2008-05-13Adding changes for new parserJordan Hargrave
ok marco@
2008-04-27add acpithinkpad(4), an acpi support driver for ibm/lenovojoshua stein
thinkpads. provides functionality that the bios did on older, non-acpi thinkpads like respond to screen brightness keys and toggle the bluetooth device on and off. ok deraadt@ and marco@
2008-04-24Introduce acpiasus(4), a driver for the ACPI based hotkeys found in manyJoel Sing
ASUS laptops (including the ASUS EeePC) - largely based on NetBSD's asus(4) driver. On the ASUS EeePC this allows us to enable/disable wireless, change screen brightness and use the volume keys. ok jsg@, weingart@
2008-04-12Get rid of acpi_s5 global variables; simply send SIGUSR2 instead of SUGUSR1Mark Kettenis
to tell init(8) to power down the machine. ok krw@
2008-02-07unbreak build: aml_showvalue() is only available on !SMALL_KERNELPeter Valchev
2008-02-07unbreak SMALL_KERNEL kernels, with miodHenning Brauer
2008-02-06Replace magic values with appropriate symbolic constants.Mark Kettenis
2008-02-05Added change for debugging setbufintJordan Hargrave
ok marco@
2008-01-22Added change to parseop to support return value; removes 1/2 stack depth forJordan Hargrave
parseint ok marco@
2008-01-21Check against RESET_REG_SUP in FADT before doing the acpi reset danceJonathan Gray
after all, not doing so appears to break more machines than it fixes. ok marco@
2008-01-08Don't free res twice.Marco Peereboom
ok jordan
2008-01-06Add a more robust gettempreading that debounces the value (idea from FreeBSD)Marco Peereboom
Add a macro to convert from K to C Redo notify and sprinkle some debug Tested on D810 T60 & Q2010 and tested by several others.
2008-01-06re-add _PPC.Marco Peereboom
ok gwk@
2008-01-05Never attach more acpicpu(4) devices than cpu(4) devices. Always attachMark Kettenis
the first acpicpu(4) device on non-MULTIPROCESSOR kernels, regardless of its ACPI processor ID. ok mikeb@
2007-12-29Remove debug message. Found by Mike Belopuhov, tsk tsk deraadt.Marco Peereboom
2007-12-27Undo previous commit after debating a few corner cases with gwk. ThisMarco Peereboom
needs to be redone in another way.
2007-12-27Add _PPC support. Tested by several people.Marco Peereboom
2007-12-27KNF, no functional changeMarco Peereboom
2007-12-07do not call aml_searchname and aml_evalnode afterwards, just useFederico G. Schwindt
aml_evalname. marco@ ok.
2007-12-05Add a check for pss len == 0. This is a temporary work around for whenMarco Peereboom
there is no pss available. The real fix will include using both pss and duty cycle methods. ok deraadt
2007-12-05Hang acpi(4) below bios(4) instead of mainbus(4). This lets us move acpi(4)Theo de Raadt
before pcibios(4), and then.... if acpi(4) attaches, skip pcibios(4) since it messes the machines up. Fixes claudio's HP dl320 G5, and almost assuredly others. ok kettenis
2007-12-05repair acpiopen/acpiclose and friends to handle the /dev/apmctl interface,Theo de Raadt
so that apmd(8) can actually work correctly against acpi(4), and thus, even do the fancy -C/-A stuff; also tested by jmc
2007-12-03set the value before freeing the result; marco@ ok.Federico G. Schwindt
2007-12-02Added AMLOP_BREAKOPINT function handler for X40 systemsJordan Hargrave
ok marco@
2007-12-02fix the trailing space for real now.Federico G. Schwindt
2007-12-02avoid trailing spaces on output; marco@ ok.Federico G. Schwindt
2007-11-27Fix off-by-one that made us attach acpicpu0 and acpicpu1 on GENERIC kernels.Mark Kettenis
ok marco@
2007-11-25When available and ACPI is enabled use the ACPI reset methodJonathan Gray
to reboot. This is required for some quirky sis machines and likely others to reboot. Tested by many. 'commit early commit often' deraadt@
2007-11-19sigh, amd64 still uses that stupid acpi_enabled variable...Theo de Raadt
2007-11-19softc's come initialized to 0, you know...Theo de Raadt
2007-11-19store revision; from jsgTheo de Raadt
2007-11-19supply a place to store acpi version; from jsgTheo de Raadt
2007-11-19Initialize sc_facs earlier.Mark Kettenis
ok deraadt@, beck@, canacar@
2007-11-18Don't add identity mappings for ISA interrupts for which we have an override.Mark Kettenis
Tested by many; seems to fix ian@'s evil Compaq, at least with GENERIC.MP.
2007-11-18Fix for PR 5642 & 5643. Report and testing Martijn RijkeboerMarco Peereboom
<martijn at bunix dot org> ok deraadt kettenis
2007-11-17Print the type that's wrong.Mark Kettenis
2007-11-17Buffers are not necessarily NUL-terminated, so use memcpy instead of strlcpyMark Kettenis
to convert a buffer into a string. ok canacar@, marco@
2007-11-16Fix dmesg output. From form@.Mike Belopuhov
ok deraadt
2007-11-16the cpu_feature/cpu_id stuff here is bullshit, XXX it so that it gets fixed ↵Theo de Raadt
one day soon
2007-11-16fix the bus_space #define nightmare, so that amd64 and i386 are much moreTheo de Raadt
uniform. as a result shared code like acpi needs less #ifdef's ok marco kettenis
2007-11-16quotes around model name tooTheo de Raadt
2007-11-15remove the #ifdef ACPI_ENABLE. the EC codepath is either safe enough (andTheo de Raadt
will be improved), or it is unsafe because AML assumes it must be there ok almost everyone
2007-11-15Make acpicpu(4) attach to the existing CPUs only.Mike Belopuhov
Problem reported by form@. Fix idea by kettenis@. Lots of help from deraadt@. Tested by deraadt@, form@ and me. ok deraadt marco