summaryrefslogtreecommitdiffstats
path: root/sys/i386/apm
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix embarrasing typo that survived because I applied the wrong patch-phk1997-03-301-3/+3
| | | | | file. Noticed by: Eric Jones <ejon@psa.pencom.com>
* Sanitize APM a bit. Convert various #ifdef to id_flags instead.phk1997-03-293-43/+78
| | | | | You may want to add "flags 0x31" to apm0 if you have a lousy implementation. Read LINT.
* Try to talk to the APM BIOS with version 1.2 if possible.phk1997-03-281-3/+7
|
* Makefile generates boths IBM-PC and PC-98 version of object code inkato1997-03-092-11/+97
| | | | | | | apm_init.inc. The PC-98 version of object is included in `#ifdef PC98'. Pointed-out by: URATA Shuichiro <s-urata@nmit.tmg.nec.co.jp>
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2210-10/+10
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1410-10/+10
| | | | | | | | 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.
* > The extra include of <sys/time.h> is because apm uses microtime() and mynate1997-01-071-11/+2
| | | | | | | | | > <sys/param.h> doesn't include <sys/time.h> > > I removed the NAPM check since it's wasteful to check twice. apmprobe() > checks the unit number, and that's the right check. Submitted by: bde
* - Cleanup up the driver (remove un-needed parameters, white-space,nate1997-01-065-90/+83
| | | | | | | | 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>
* APM_DSVALUE_BUS is no longer with the addition of the correct fix tonate1996-09-071-18/+1
| | | | machdep.c. We no longer walk on the data segment the BIOS sets up.
* Remove devconf, it never grew up to be of any use.phk1996-09-061-31/+1
|
* Use (full) <> paths instead of ambiguous "" paths for headers not inbde1996-08-281-3/+3
| | | | the current directory.
* Add some comments explaining what APM_DSVALUE_BUG does no that I knownate1996-07-111-3/+10
| | | | | | | what it does and why it's needed. Now I have to figure out how to fix the bug. :) [ No functional changes ]
* Whee. Fix two bugs which ended up cancelling each other out.nate1996-07-102-6/+6
| | | | | | | | | | apm_setup.s was storing apm_cs16_base and apm_cs32_base addresses in each others slots, and apm.c was reversing the result so the bugs cancelled out, but the code looked wrong. No functional differences unfortunately. Submitted by: dave edmondson <davided@sco.com>
* Removed unused #includes of <i386/isa/icu.h> and <i386/isa/icu.h>. icu.hbde1996-06-181-3/+1
| | | | | | | is only used by the icu support modules and by a few drivers that know too much about the icu (most only use it to convert `n' to `IRQn'). isa.h is only used by ioconf.c and by a few drivers that know too much about isa addresses (a few have to, because config is deficient).
* Freudian slip. Change M_DEVBUG -> M_DEVBUF.nate1996-06-041-2/+2
| | | | Submitted by: "Stephen F. Combs" <combssf@salem.ge.com>
* Fix typo. in the APM_DSVALUE_BUG code that I missed.nate1996-06-041-2/+2
| | | | Obtained from: Someone on the mailing list (sorry, I forgot who)
* - This code adds some backwards compatability hacks for buggy APM BIOSnate1996-04-231-1/+25
| | | | | | | | | implementations, and synchronizes us with the Nomad's latest code. This code is based on the Nomad code, but heavily hacked by me. Reviewed by: phk Submitted by: the 'Nomads'
* Adds the APM hooks into the generic pccard kernel files. With this codenate1996-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'
* - add apm to the GENERIC kernel (disabled by default), and add some commentsnate1996-04-221-1/+4
| | | | | | | | | | | regarding apm to LINT - Disabled the statistics clock on machines which have an APM BIOS and have the options "APM_BROKEN_STATCLOCK" enabled (which is default in GENERIC now) - move around some of the code in clock.c dealing with the rtc to make it more obvios the effects of disabling the statistics clock Reviewed by: bde
* - Save/restore the FS data segment.nate1996-04-182-39/+39
| | | | Reviewed by: bde
* - Addition of my name to the APM Copyrightnate1996-04-181-50/+33
| | | | | | | | | - More code cleanups - #ifdef DEBUG debugging code - More consistant printfs - Better handling of the apm_int() assembly code (mostly from Bruce Evans) Reviewed by: bde
* Switched from using devfs_add_sw() to using devfs_add_swf()scrappy1996-03-281-3/+5
| | | | Reviewed by: julian@freebsd.org
* Add some comments on the APM specs, and make the APM 'idle/busy'nate1996-03-191-19/+25
| | | | functions follow them.
* Call apm_int() instead of doing direct assembly calls even when we don'tnate1996-03-191-3/+11
| | | | care about the return value for consistency.
* Added kernel compile time failure if more than one APM device isnate1996-03-191-1/+5
| | | | configured.
* Always enable interrupts before calling the APM idle/busy routines.nate1996-03-191-2/+2
| | | | Suggested by: phk@FreeBSD.org
* Minor bugfixes from the recent PC-CARD release.nate1996-03-181-3/+9
| | | | Submitted by: hosokawa@mt.cs.keio.ac.jp and the rest of the Nomads
* Grr, let's actually include <sys/devconf.h> so that DEVCONF support actuallynate1996-03-181-1/+2
| | | | works.
* Whoops, forgot the line that sets the default state in devfs.nate1996-03-181-1/+3
|
* Devfs support.nate1996-03-181-35/+34
| | | | | | Submitted by: hosokawa@mt.cs.keio.ac.jp and the rest of the Nomads Cleanup.
* Removed support for multiple APM devices.nate1996-03-181-39/+28
|
* Return the status of the APM support (enabled/disabled) with thenate1996-03-131-1/+3
| | | | APM_GETINFO ioctl.
* Removed more APM_SLOWSTART code and re-enabled some functions whichnate1996-03-121-29/+1
| | | | didn't require APM_SLOWSTART to be defined.
* Fix some minor typo's in the comments.nate1996-03-121-4/+4
|
* Always initialize master_softc. This avoids panics in the idle loop duenate1996-03-121-2/+7
| | | | | to unitialized data if the APM support is compiled in and the probe fails.
* Do a APM BIOS dis-connect before attempting to do a 32-bit connectionnate1996-03-112-41/+52
| | | | | | | | | | just in case a connection already existed. Also, a minor optimization in the code which determins if a APM BIOS exists. Reviewed by: phk This is based on the APM-0.5 patch for Linux, but written entirely by me.
* Removed conditionals on BDE_DEBUGGER around the loading for the IDTnate1996-03-111-7/+3
| | | | | | | since it's necessary for interrupt processing to be enabled. Modify comment to reflect this condition. Submitted by: bde
* Bring in most of Bruce's prot_to_real() changes into the APM BIOSnate1996-03-114-69/+54
| | | | | | startup code. Reviewed by: bde
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-301-2/+2
| | | | a bunch of system include files.
* Finished removing MACH_KERNEL stuff.bde1995-12-271-6/+1
|
* Fixed staticizing. Some functions aren't static but depend onbde1995-12-251-4/+10
| | | | the undocumented previously unLINTed option `APM_SLOWSTART'.
* Cleanup.phk1995-12-221-146/+11
|
* Pass 3 of the great devsw changesjulian1995-12-081-32/+30
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
* Untangled the vm.h include file spaghetti.dg1995-12-071-1/+3
|
* If you're going to mechanically replicate something in 50 filesjulian1995-11-291-2/+2
| | | | it's best to not have a (compiles cleanly) typo in it! (sigh)
* OK, that's it..julian1995-11-291-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* oops forgot one..julian1995-11-281-1/+35
|
* Fixed the types of apm_default_resume() and apm_default_suspend().bde1995-11-181-3/+7
| | | | Added prototypes.
* Remove unused functions and variables, make things static, and other cleanups.phk1995-10-281-5/+2
|
* Don't include <sys/tty.h> in drivers that aren't tty drivers or in generalbde1995-07-161-2/+1
| | | | files that don't depend on the internals of <sys/tty.h>
OpenPOWER on IntegriCloud