summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2009-06-23Ignore the PCT if the PSS has zero entries, only becameGordon Willem Klok
a problem after we started striking entires for containing junk and /* should never happen */ happened. Fixes PR 6175 confirmed by submiter: nick templeton nick @ nicktempleton.com ok marco@
2009-06-19Always report 0 as the minimal brightness level to wscons. This results inMark Kettenis
more reasonable brightness level reporting. In particular we won't report 0% if the lowest level supported by the hardware doesn't completely turn the backlight off. ok marco@, pirofti@
2009-06-10Re introduce the _PDC code backed out before 4.5, in addition to evaluating theGordon Willem Klok
PDC (which tells the ACPI code what we as OSPM are capable of) we also evaluate the OSC method on the acpicpu device. Original cause of problems that resulted in this getting backed out appear to be fixed by the mp_setperf change, so hopefully the third time is the charm. Tested by many. ok marco@
2009-06-07Shave surplus space from format string.Michael Knudsen
2009-06-04Even more KNF.Paul Irofti
2009-06-04Add myself to the copyright, suggested by marco@.Paul Irofti
2009-06-04KNF dammitMiod Vallat
2009-06-04Some output devices have only brightness support (or only output switching).Paul Irofti
Handle the case where only brightness is supported. This makes brightness work on some Sony Vaio's. Okay mlarkin@ deraadt@.
2009-06-04only one : in a line. the seperation is:Theo de Raadt
deviceX at busX reason-why-we-attached-it: device prints it's junk here
2009-06-03Make sure that the brightness value sent to acpi is one of the valuesMatthieu Herrb
in the BCL array. Also add a missing acpivout_get_brightness() call in acpivout_brightness_cycle(). ok and suggestions from pirofti@, ok miod@ deraadt@ marco@.
2009-06-03Import acpi power resource driver. This is needed for suspend/resume logic.Paul Irofti
Okay jordan@ and marco@.
2009-06-03Don't disable dock devices if dock isn't initially attachedJordan Hargrave
ok marco@
2009-06-03More KNFJordan Hargrave
ok marco@
2009-06-03Add acpivideo support. This adds brightness support for all laptopsPaul Irofti
except thinkpads, they will use the acpithinkpad driver. The driver is also hooked into wsconsole. So brightness can be adjusted via: $ wsconsctl display.brightness=<percentage> This is very helpfull on some laptops that have a nasty bios and get two steps instead of one when pressing the brightness button. Tested on various dell, fujitsu, acer, samsung and other laptops. Okay marco@, miod@. Suggestions from kettenis@. Lots of reviews and help from miod@, thanks!
2009-06-03Added ejectable bay for IDE cdromsJordan Hargrave
ok marco@
2009-06-02KNF cleanup and denoiseJordan Hargrave
ok marco@
2009-06-02Added changes for docking station, must eject all children devicesJordan Hargrave
ok marco@, mlarkin@
2009-06-01Remove dead/unused codeJordan Hargrave
ok marco@
2009-05-30Added error handler for missing AML nameref; fixes PR6103Jordan Hargrave
ok marco@
2009-05-30Fixed parsing rules for Scope opcode, fixes panic on some HP systemsJordan Hargrave
Create default scope names ok marco@
2009-04-30Oga changed apm ioctls and forgot to grep. Temporary work around by hittingMarco Peereboom
the sleep button when we get any request. This interface will chnage at some point. ok oga
2009-04-27Remove unnecessary aml_xconvert arg, code cleanupJordan Hargrave
ok marco@
2009-04-26.desc field of the sensor struct shall not duplicate .type and .numt; ok jordanConstantine A. Murenin
2009-04-26in ca_attach() there is no need to set .value and .flags of sensors to 0,Constantine A. Murenin
since autoconf(9) allocates softc with M_ZERO; ok deraadt
2009-04-19zero temperature in acpi refers to -273,2degC -- convert to uK ↵Constantine A. Murenin
appropriately; ok deraadt marco
2009-04-19Call acpi_sleep_walk() when powering down just like when enteringKenneth R Westerback
any other sleep state. This tells acpi wake devices to not wake up the box until manual powering up resets their status. Makes my Dell GX520 stay powered off in response to 'halt -p'. In snaps for a while. ok marco@ (several times) deraadt@
2009-04-19Count number of cpus found (potentially not attached) and store thatTheo de Raadt
in sysctl hw.ncpufound; ok miod kettenis
2009-04-17Add device ranking support for future sleep/wake developments.Paul Irofti
okay marco@
2009-04-11Add PnP ID for PCIe host bridge.Mark Kettenis
2009-04-10Fix for PR6099, read/write of non-byte aligned IndexFieldJordan Hargrave
ok marco@
2009-04-10gasio was killed so kill protoMarco Peereboom
2009-04-09Fixed argtype for Increment/Decrement. Field args were being evaluated asJordan Hargrave
integers instead remaining a reference. ok marco@
2009-03-31Backout previous change; it breaks more machines than it fixes.Mark Kettenis
2009-03-21Always re-route interrupts, even when doing so appears to be a no-op. SomeMark Kettenis
BIOSen flat out lie to us when we ask for the current routing. ok marco@
2009-03-13tabs; stupid emacsMarco Peereboom
2009-03-13Fixup in acpidock for aml_evalintegerJordan Hargrave
Reported by guenther ok marco@
2009-03-13Fixed potential aml_freevalue on uninitialized stack , reported by krwJordan Hargrave
Fixup in acpidock for aml_evalinteger ok @marco
2009-03-11More aml_evalinteger fixupJordan Hargrave
ok marco@
2009-03-11Remove noisy printf debugJordan Hargrave
2009-03-11Cleanup.. use aml_evalinteger instead of aml_evalnameJordan Hargrave
ok marco@
2009-03-10Added sensor devices for Thinkpad (temp+fan)Jordan Hargrave
Exported aml_evalinteger method ok marco@
2009-03-10Fix cut/paste error.. call _BFS not _PTSJordan Hargrave
ok marco@
2009-03-07Misc cleanups, remove dead codeJordan Hargrave
Normalized api for conversion/concatenation ok marco@
2009-03-05Rip out old fieldio code (no longer used)Jordan Hargrave
ok marco@
2009-03-05New ACPI fieldio routinesJordan Hargrave
Fix for PR6017, tested extensively on @tech ok marco@
2009-02-24back out est.c 1.8 and bring acpicpu.c all the way back to 1.47 because ofTheo de Raadt
hanging machines. backed out correctly this time, as pointed out by tedu.
2009-02-24Backout a backout because noone knows what the hell the backout is aTheo de Raadt
backout of. COME ON. Be exact in your commit messages.
2009-02-21overzealous cut/paste; found by Vladimir Kirillov <proger@uaoug.org.ua>Marco Peereboom
2009-02-20Oops didn't mean for Debugger() to remain there.Marco Peereboom
2009-02-19suspend/resume bits so that we can develop this in tree. This is disabled.Marco Peereboom
code from mlarkin and me help from art,toby,jordan and several others ok jordan, go for it deraadt