summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2009-09-14simplify code in preparation for other things. tested by many.Federico G. Schwindt
2009-09-04Add common framework for storing device listsJordan Hargrave
Useful for acpitz, acpipwrres, etc.
2009-09-02Invoke malloc() with the correct sizeof value in acpipwrres_foundcons().Miod Vallat
This was harmless but eating too much memory. ok pirofti@
2009-08-29typos in commentsMiod Vallat
2009-08-21Remove unused codeJordan Hargrave
2009-08-12Add wake support to acpihpet(4).Paul Irofti
Patch initially from mlarkin@. KNF and refactoring by me. Okay deraadt@.
2009-07-23New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitoring,Constantine A. Murenin
with sensor state support through limits provided by the ACPI. Tested on several ASUS motherboards kindly networked by Sam Fourman Jr. ok deraadt marco jordan
2009-07-20KNF fixesJordan Hargrave
2009-07-17Cleaned up parsing of While loops; iterative If statementJordan Hargrave
ok marco@
2009-07-15missing va_end in aml_seterror; ok marco@Martynas Venckus
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@