summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
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
2007-11-15Nicer dmesg output.Mike Belopuhov
From Oleg Safiullin (form@) ok deraadt
2007-11-15don't waste our time telling the aml that we are OpenBSD; it will neverTheo de Raadt
make a good decision based on that; ok kettenis canacar
2007-11-14shrink floppy build by knocking out some unused bits of code; seen by canacarTheo de Raadt
2007-11-14spacingTheo de Raadt
2007-11-14Fix handling of local AML variables for type conversion:Can Erkin Acar
Check whether a variable is local before and after dereferencing. Improve the check to make sure that the variable is in local in current scope. Tested by many, thanks a lot. ok marco@
2007-11-12spacingTheo de Raadt
2007-11-12no need to print acpi name on attachTheo de Raadt
2007-11-12a little less excitement (every printf does not need to end in !)Theo de Raadt
2007-11-12correct : vs , in attach-time messagesTheo de Raadt
2007-11-12spacingTheo de Raadt
2007-11-12only print bif info that is completeTheo de Raadt
2007-11-12missing :Theo de Raadt
2007-11-10do not check malloc return value against NULL, as M_WAITOK is usedCharles Longeau
ok marco@
2007-11-08Pass correct pointers to memcpy when concatanating strings/buffersCan Erkin Acar
ok weingart@, marco@
2007-11-08convert the value to a string instead of using aml_val2str()Can Erkin Acar
which returns invalid pointers if the value is not a string, causing acpibat to panic, as reported by mbalmer@ and Alexey Suslikov. tested by Alexey Suslikov, ok marco@