summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios
Commit message (Collapse)AuthorAgeFilesLines
* - Implement selwakeuppri() which allows raising the priority of atanimura2003-11-091-1/+1
| | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current
* The present defaults for the open and close for device drivers whichphk2003-09-271-2/+0
| | | | | | | | | | | | | | provide no methods does not make any sense, and is not used by any driver. It is a pretty hard to come up with even a theoretical concept of a device driver which would always fail open and close with ENODEV. Change the defaults to be nullopen() and nullclose() which simply does nothing. Remove explicit initializations to these from the drivers which already used them.
* - Use the new resource_disabled() helper function to see if devices arejhb2003-07-021-10/+5
| | | | | | | | | | | | disabled. - Change the apm driver to match the acpi driver's behavior by checking to see if the device is disabled in the identify routine instead of in the probe routine. This way if the device is disabled it is never created. Note that a few places (ips(4), Alpha SMP) used "disable" instead of "disabled" for their hint names, and these hints must be changed to "disabled". If this is a big problem, resource_disabled() can always be changed to honor both names.
* Implement a loader tunable/sysctl to allow the user to request thatmdodd2003-06-221-0/+8
| | | | | | | the APM driver byte-swap battery time values. (For broken laptops.) PR: i386/42439 Submitted by: Bruce M Simpson <bms@spc.org>
* Despite my best efforts the Linux way of doing this is the onlymdodd2003-06-132-38/+20
| | | | | | | way that works correctly. - Remove unused function. - Move declaration of variables to .S file.
* Use __FBSDID().obrien2003-06-026-11/+17
|
* Merge PC98 support.mdodd2003-03-252-0/+122
|
* Correct a mis-merge.mdodd2003-03-241-2/+2
| | | | Noticed by: johan
* - Consolidate smapi driver.mdodd2003-03-243-361/+218
| | | | | - Attach to nexus. - Use null{open,close}() instead of rolling our own.
* Add the 'vpd' and 'smbios' drivers. The 'smbios' driver is just amdodd2003-03-242-0/+559
| | | | stub right now.
* Use repo-copied files in sys/i386/bios.mdodd2003-03-242-2/+2
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-032-27/+13
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* - Removed unecesary code.mdodd2003-01-183-55/+48
| | | | | - Correct smapi32_new() asm (still doesn't work.) - Attach to mainboard not isa.
* A driver for the System Management Application Programmdodd2003-01-174-0/+546
| | | | | | | | Interface (SMAPI) BIOS, which is present on some IBM Thinkpad models (560, 600, 770 to name a few.) The SMAPI BIOS provides access to System Information, System Configuration, and Power Management.
* Be consistent about functions being static.phk2002-10-161-1/+1
| | | | Spotted by: FlexeLint.
* use __packed.alfred2002-09-231-1/+1
|
* Hang apm off of the legacy device instead of the nexus.jhb2002-09-231-1/+1
|
* Use a function instead of embedding non-portable asm() constructsmarkm2002-09-211-1/+2
| | | | in C code.
* Sort includes.markm2002-09-211-13/+14
|
* Remove __P.alfred2002-03-201-4/+4
|
* Add generalized power profile code.iwasaki2002-03-041-0/+20
| | | | | | | | | | | | | This makes other power-management system (APM for now) to be able to generate power profile change events (ie. AC-line status changes), and other kernel components, not only the ACPI components, can be notified the events. - move subroutines in acpi_powerprofile.c (removed) to kern/subr_power.c - call power_profile_set_state() also from APM driver when AC-line status changes - add call-back function for Crusoe LongRun controlling on power profile changes for a example
* Some fix for the recent apm module changes.iwasaki2001-11-011-2/+96
| | | | | | | | | | | | | | - Now that apm loadable module can inform its existence to other kernel components (e.g. i386/isa/clock.c:startrtclock()'s TCS hack). - Exchange priority of SI_SUB_CPU and SI_SUB_KLD for above purpose. - Add simple arbitration mechanism for APM vs. ACPI. This prevents the kernel enables both of them. - Remove obsolete `#ifdef DEV_APM' related code. - Add abstracted interface for Powermanagement operations. Public apm(4) functions, such as apm_suspend(), should be replaced new interfaces. Currently only power_pm_suspend (successor of apm_suspend) is implemented. Reviewed by: peter, arch@ and audit@
* KSE Milestone 2julian2001-09-121-5/+5
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* Commit some tweaks I have had laying around my tree for over a year now.peter2001-03-131-6/+7
| | | | Always set the APM "device" description. Some minor style tweaks.
* select() DKI is now in <sys/selinfo.h>.wollman2001-01-091-1/+1
|
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* Add Timer device driver for power management events.iwasaki2000-09-142-80/+7
| | | | | | | | | | | | | | | | The code for suspend/resume is derived from APM device driver. Some people suggested the original code is somewhat buggy, but I'd like to just move it from apm.c without any major changes for the initial version. This code should be refined later. To use pmtimer to adjust time at resume time, add device pmtimer in your kernel config file, and add hint.pmtimer.0.at="isa" in your device.hints Reviewed by: -current, bde
* Add output of per battery information to apm(1).ume2000-08-131-14/+44
| | | | | | New ioctl APMIO_GETPWSTATUS is introduced. Reviewed by: -mobile and -current folks (no objection)
* Cleanup debug messages and Add some enhancements from linux oniwasaki2000-08-041-63/+52
| | | | | | | | | | | | | | 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>
* Except for the information gathering IOCTLs, require apm device beimp2000-07-191-0/+16
| | | | opened for write. This should make the apm device read only safe.
* Correctly handle suspend and resume in APM.n_hibma2000-02-061-14/+13
| | | | | | | | | | | | | | Up to now, errors from DEVICE_SUSPEND(root_bus) were ignored. The fix for this problem (the introduction of defaults for device methods) has been committed months ago by Doug Rabson. Second, the suspended devices were not always properly resumed on error. Third, swapped the order for calling restore hooks and restore methods, to be in line with the cases above. Reviewed by: Doug Rabson Approved by: jhk
* Remove a bunch of unused (NO-OP) #if NFOO > 0 type includes and somepeter2000-01-291-4/+0
| | | | #include "foo.h" headers.
* Correctly test CF.mdodd2000-01-131-1/+1
|
* Remove code to select APM version with flags to the apm0 device. Thisjlemon1999-12-021-21/+4
| | | | | | code has been disabled for the last 4 months. Prodded into action by: n_hibma
* Use DRIVER_MODULE(), apm.c already takes care of it's devices withpeter1999-11-081-1/+1
| | | | make_dev().
* i8254_restore is called from apm_default_resume() to reloadiwasaki1999-10-301-0/+1
| | | | | | | | | | | | the countdown register. this should not be necessary but there are broken laptops that do not restore the countdown register on resume. when it happnes, it messes up the hardclock interval and system clock, which leads to the infamous "calcru: negative time" problem. Submitted by: kjc, iwasaki Reviewed by: Steve O'Hara-Smith <steveo@eircom.net> and committers. Obtained from: PAO3
* Fix APM's make_devs:nsayer1999-10-121-1/+2
| | | | | | 1. chown root:operator, chmod 660 2. Add /dev/apmctl as well as /dev/apm
* Prepare for the apm_saver screen saver module.nsayer1999-10-022-25/+50
| | | | | | | | 1. Break out the definition of the soft state structure into an include file. 2. un-static the soft state and apm_display(), and group them under a comment that notes the dependency.
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* Return immediately from apm_suspend() when APM BIOS wasn't initialized.iwasaki1999-09-201-0/+3
| | | | | | | Pressing Alt-Pause key will cause machine to reboot with apm disabled. PR: i386/13817 Submitted by: yokota
* Handle CAPABILITIESCHANGE event.iwasaki1999-09-111-0/+3
| | | | Document USERSTANDBYREQ and CAPABILITIESCHANGE events to apmd manpage.
* Handle UserStandbyRequests as well as the other 3 members of thensayer1999-09-111-0/+8
| | | | {,USER}{STANDBY,SUSPEND}REQ matrix.
* SYSINIT() needs sys/kernel.h. Include it.mdodd1999-09-031-2/+3
|
* This adds the i386 specific support for systems with a MicroChannelmdodd1999-09-032-0/+192
| | | | | | Architecture bus. Reviewed by: msmith
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-13/+2
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* Add an identify method to allow apm to attach itself to the nexuspeter1999-08-221-1/+15
| | | | without hooks in there.
* Fix `key release event prevent suspend' problem. We don't neediwasaki1999-08-221-24/+89
| | | | | | | | `sleep 1; zzz' trick now. - APM BIOS Call for suspend/standby now should be issued with delay. - Delay for suspend/standby can be adjusted by using sysctl(8) interface (eg. sysctl -w machdep.apm_suspend_delay=3).
* Implement a new generic mechanism for attaching handler functions tomsmith1999-08-211-3/+5
| | | | | | | | | | | | | events, in order to pave the way for removing a number of the ad-hoc implementations currently in use. Retire the at_shutdown family of functions and replace them with new event handler lists. Rework kern_shutdown.c to take greater advantage of the use of event handlers. Reviewed by: green
OpenPOWER on IntegriCloud