summaryrefslogtreecommitdiffstats
path: root/sys/i386/bios
Commit message (Collapse)AuthorAgeFilesLines
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-062-2/+2
|
* Remove local hacks to set flags now that the device probe does this for us.njl2004-10-141-9/+1
| | | | | | | Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also. MFC after: 2 weeks
* Clarify SDT feature word bits.mdodd2004-08-311-4/+5
| | | | Obtained from: NetBSD
* Fix checksum calculation.mdodd2004-08-311-12/+7
| | | | Submitted by: Jean Delvare <khali@linux-fr.org>
* o Return ai_batteries as 0xffffffff instead of -1. This is a nop change, butimp2004-06-162-2/+3
| | | | | | | | | placates gcc which seems to like to complain about -1 being assigned to an unsigned value. It is well defined and intended, but since signess bugs are being hunted just change to 0xffffffff. o Mask the lower 8 bits, not the lower 4 bits for the ai_capabilities word. All 8 bits are defined and the 0xf was almost certainly a typo. o Define APM_UNKNOWN to 0xff for emulation layer.
* Do the dreaded s/dev_t/struct cdev */phk2004-06-162-7/+7
| | | | Bump __FreeBSD_version accordingly.
* Remove atdevbase and replace it's remaining uses with direct references tojhb2004-06-104-0/+4
| | | | KERNBASE instead.
* Add missing #include <sys/module.h>phk2004-05-301-0/+1
|
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-173-12/+9
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Device megapatch 4/6:phk2004-02-212-1/+4
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-212-3/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* - 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.
OpenPOWER on IntegriCloud