summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include/apmvar.h
AgeCommit message (Collapse)Author
2019-01-22flense more trailing whitespacePeter Hessler
2019-01-22remove trailing whitespace in the Laptop Package part of the license text.Peter Hessler
no words or punctation were modified.
2015-02-06Handle hibernate button in the same way as suspend does: send anDavid Coppa
APM_USER_HIBERNATE_REQ event so apmd(8) can get it if it's running. ok mlarkin@, deraadt@, miod@
2012-07-08apm_kqfilter() is gonePhilip Guenthe
ok nicm@
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2011-03-23Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.Paul Irofti
Discussed and okay drahn@. Okay deraadt@.
2009-02-26Add a two new ioctls to the apm(4) interface.Owain Ainsworth
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-14on some sony vaios (con dios) battery life is reportedMichael Shalayeff
in big endian order, swap if flags was given. reported by: Hans-Joerg Hoexer <Hans-Joerg.Hoexer@yerbouti.franken.de>
2001-08-18make apm use kqueue for transferring events to luse listener.Michael Shalayeff
apparently i thought i comitted this already before apmd. tested by me, art@ and jason@ .
2001-06-24wrong place for coldMichael Shalayeff
2001-06-24move cold to .hFederico G. Schwindt
2000-06-07look into config flags for version enforcement and other flagsMichael Shalayeff
2000-01-29bring in some mods for apm1.2 proto;Michael Shalayeff
account for 16bit and 32bit code segments at different bases; leave interrupts enabled when calling apm bios; a few more debugging printfs (ifdef'ed appropriately).
1999-02-15more definitions from apm 1.2Michael Shalayeff
1998-07-27oops, remove bugus trailing spacesMarco S Hyman
1998-07-27Fix BATT_REMAINING macro so it returns values in minutes (as documented)Marco S Hyman
not seconds
1998-07-18add ioctl to apm to set message display to one of three states:Marco S Hyman
1) default: print out all messages. I made this the default so there would be no visable change to people who are used to what they have. 2) disable all messages. This mode is set by apmd when it starts up. I think it is reasonable for apmd to disable the driver display because it is collecting the data and syslogging it. Don't need to see it three and 4 times. 3) print percentage changes. For those who have a _noisy_ machine such as me but don't want to see lots and lots of messages I added a mode where the messages will only be displayed if the estimated battery percenge changes.
1997-09-29apm0 at bios0Michael Shalayeff
configs will be updated
1997-09-21support new bootsMichael Shalayeff
add to your config: bios0 at mainbus0 apm0 at mainbus0 # (if you are using APM)
1997-09-16no need to include sys/ioccom.h; guy@netapp.comTheo de Raadt
1996-04-29Pull in John Kohl's [jtk@netbsd.org] most recent (15Apr96) APM and PCMCIA workhvozda
(original PCMCIA framework by Stefan Grefen [grefen@convex.com]).