aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/apm_bios.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/ Similar commit in current: (cherry picked from commit 71625ec9ad2a)
* Move identical copies of apm_bios.h to sys/x86/include, replace them withJung-uk Kim2010-11-111-261/+3
| | | | | | | | | stubs, and adjust PC98 stub accordingly. Reviewed by: imp, nyan Notes: svn path=/head/; revision=215140
* Copy apm(4) emulation from sys/i386/acpica/acpi_machdep.c andJung-uk Kim2009-09-271-6/+6
| | | | | | | install apm(8) and apm_bios.h on amd64. Notes: svn path=/head/; revision=197536
* Move pc98 specific parts to the pc98 specific file.Warner Losh2005-04-031-13/+0
| | | | Notes: svn path=/head/; revision=144611
* /* -> /*- for copyright notices, minor format tweaks as necessaryWarner Losh2005-01-061-1/+1
| | | | Notes: svn path=/head/; revision=139790
* Remove __P.Alfred Perlstein2002-03-201-1/+1
| | | | Notes: svn path=/head/; revision=92761
* Add output of per battery information to apm(1).Hajimu UMEMOTO2000-08-131-1/+24
| | | | | | | | | New ioctl APMIO_GETPWSTATUS is introduced. Reviewed by: -mobile and -current folks (no objection) Notes: svn path=/head/; revision=64615
* Cleanup debug messages and Add some enhancements from linux onMitsuru IWASAKI2000-08-041-0/+1
| | | | | | | | | | | | | | | | | display control by apm -d. - Remove APM_DEBUG to avoid re-build kernel with such a unspported optioin. - Introduce new denug flag `debug.apm_debug' which can be controlled by sysctl interface and loader by setting like "debug.apm_debug=1", you will get debug messages from APM driver. - Add some enhancements from linux on display control by apm -d. I'm expecting that we can see some improvements on some laptops where apm -d doesn't work correctly so far. Reviewed by: -mobile and -current folks (no objection) Suggested by: Susumu WAKABAYASHI <susumu@wakabaya.net> Notes: svn path=/head/; revision=64251
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-3/+3
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Reenable the APMIO_BIOS ioctl and translate arguments into the new formatMike Smith1999-07-301-1/+11
| | | | | | | | | (which is more like the old than I thought). Requested-by: imp Notes: svn path=/head/; revision=49292
* Remove all vestiges of APMIO_BIOSMike Smith1999-07-301-2/+1
| | | | | | | Submitted by: N. Dudorov <nnd@mail.nsk.ru> Notes: svn path=/head/; revision=49248
* Major update to the kernel's BIOS-calling ability.Mike Smith1999-07-291-19/+5
| | | | | | | | | | | | - Add support for calling 32-bit code in other segments - Add support for calling 16-bit protected mode code Update APM to use this facility. Submitted by: jlemon Notes: svn path=/head/; revision=49197
* Add apmd support code.Mitsuru IWASAKI1999-07-101-1/+10
| | | | Notes: svn path=/head/; revision=48735
* Add the ability to specify where on the at_shutdown queue a handler isMike Smith1998-10-301-2/+1
| | | | | | | | | | | | installed. Remove cpu_power_down, and replace it with an entry at the end of the SHUTDOWN_FINAL queue in the only place it's used (APM). Submitted by: Some ideas from Bruce Walter <walter@fortean.com> Notes: svn path=/head/; revision=40751
* Add the ability to suspend as well as hibernate to the system. ThisWarner Losh1998-07-061-8/+16
| | | | | | | | | | is the kernel part of my commits, the userlevel stuff will be done in a separate commit. Add the ability to suspend as well as hibernate to syscons. Create a new virtual key like hibernate for suspend. Update apm_bios.h to define more apm bios goodies. Notes: svn path=/head/; revision=37414
* Expand the APMIO_GETINFO ioctl to return the estimated remainingJohn Polstra1997-11-121-3/+26
| | | | | | | | | | | battery time. For backward compatibility with old binaries, I assigned a new ioctl number for this call, and retained the old one as APMIO_GETINFO_OLD. I also added eight words of padding and a version field, so that future enhancements won't require jumping through this hoop again. Notes: svn path=/head/; revision=31126
* When APM is configured, turn off the power when halting for good.Garrett Wollman1997-06-151-1/+2
| | | | Notes: svn path=/head/; revision=26657
* Sanitize APM a bit. Convert various #ifdef to id_flags instead.Poul-Henning Kamp1997-03-291-1/+11
| | | | | | | | You may want to add "flags 0x31" to apm0 if you have a lousy implementation. Read LINT. Notes: svn path=/head/; revision=24372
* Added PC-98 specific function to get battery status.KATO Takenori1997-03-091-1/+9
| | | | | | | Submitted by: URATA Shuichiro <s-urata@nmit.tmg.nec.co.jp> Notes: svn path=/head/; revision=23580
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* - Cleanup up the driver (remove un-needed parameters, white-space,Nate Williams1997-01-061-2/+2
| | | | | | | | | | | etc..), plus add a better display suspend function. - Changed the Copyright's to reflect the new 'jp.FreeBSD.org' email address. Submitted by: nate & HOSOKAWA, Tatsumi <hosokawa@jp.FreeBSD.org> Notes: svn path=/head/; revision=21362
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:Bruce Evans1996-09-211-4/+9
| | | | | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers. Notes: svn path=/head/; revision=18444
* Another round of merge/update.Satoshi Asami1996-09-121-1/+6
| | | | | | | | | | | | (1) Add PC98 support to apm_bios.h and ns16550.h, remove pc98/pc98/ic (2) Move PC98 specific code out of cpufunc.h (to pc98.h) (3) Let the boot subtrees look more alike Submitted by: The FreeBSD(98) Development Team <freebsd98-hackers@jp.freebsd.org> Notes: svn path=/head/; revision=18265
* Adds the APM hooks into the generic pccard kernel files. With this codeNate Williams1996-04-231-3/+1
| | | | | | | | | | | | in place device drivers can now register power-down/power-up routines so that we can use common routines to power-up/power-down cards for insert/removals, suspend/resume, etc.. Reviewed by: phk Submitted by: the 'Nomads' Notes: svn path=/head/; revision=15360
* Return the status of the APM support (enabled/disabled) with theNate Williams1996-03-131-3/+2
| | | | | | | APM_GETINFO ioctl. Notes: svn path=/head/; revision=14608
* Bring in some prototypes that shouldn't have been dependant onNate Williams1996-03-121-5/+1
| | | | | | | APM_SLOWSTART, which are generic APM functions. Notes: svn path=/head/; revision=14579
* Fixed staticizing. Some functions aren't static but depend onBruce Evans1995-12-251-1/+7
| | | | | | | the undocumented previously unLINTed option `APM_SLOWSTART'. Notes: svn path=/head/; revision=13013
* Completed function declarations and/or added prototypes.Bruce Evans1995-11-211-2/+2
| | | | Notes: svn path=/head/; revision=12453
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8876
* This is the latest version of the APM stuff from HOSOKAWA, I have lookedPoul-Henning Kamp1995-02-171-21/+26
| | | | | | | | | | | | | | | | briefly over it, and see some serious architectural issues in this stuff. On the other hand, I doubt that we will have any solution to these issues before 2.1, so we might as well leave this in. Most of the stuff is bracketed by #ifdef's so it shouldn't matter too much in the normal case. Reviewed by: phk Submitted by: HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp> Notes: svn path=/head/; revision=6512
* apm_bios.h: removed the equiv-stuff. Not needed now that the kernel modulePoul-Henning Kamp1994-10-021-10/+1
| | | | | | | | | works correctly. clock.h & reg.h: prototypes. Notes: svn path=/head/; revision=3307
* Added $Id$David Greenman1994-10-011-0/+2
| | | | Notes: svn path=/head/; revision=3264
* Woops, missed these two files; part of HOSOKAWA Tatsumi's APM support.David Greenman1994-10-011-0/+193
Notes: svn path=/head/; revision=3263