Commit Graph

26341 Commits

Author SHA1 Message Date
msaitoh
bb5dfe40ba Fix the bug that unaligned access occurs on amd64. It also fixes the bug
that error bits aren't cleard because these bits are W2C (in other word, W1C).

Reported by Michael van Elst.
2010-02-01 05:38:36 +00:00
martin
2a2c96609a Fix an outdated comment, noticed by Paul Goyette. 2010-01-31 22:53:56 +00:00
martin
889f82dd49 Add a convenience function to find the maximum value currently reported
by a set (selected via a passed callback predicate) of sensors.
This provides an easy way to query the current temperature of a thermal
zone, for example, from within the kernel - assuming the caller knows
the topology.
2010-01-31 21:36:38 +00:00
jruoho
b00d9a31ae Verify the object type before using variables from it.
In addition, use CTASSERT(9) instead of KASSERT(9).
2010-01-31 20:38:11 +00:00
jruoho
d9203cb513 Add a detachment routine. 2010-01-31 19:49:29 +00:00
jruoho
166db9da2a Also remove the ACPI notify handler upon detach. 2010-01-31 18:51:33 +00:00
dyoung
bcfb222fd8 Add the missing newline to a verbose autoconf message. 2010-01-31 18:12:51 +00:00
jruoho
2554187b97 Add a detachment routine. While here, clarify the initialization of sensors. 2010-01-31 17:53:31 +00:00
mlelstv
d2fd323d98 Properly register blocksize with disk(9) framework. 2010-01-31 15:40:08 +00:00
jruoho
4cd0ccf8ab Add dynamic debug options for ACPI_DEBUG kernels.
ok jmcneill@, pooka@, pgoyette@
2010-01-31 11:26:20 +00:00
jruoho
d9ca089d6e Simplify and clean:
* Semantics.
        * Remove ACPI_ACAD_DEBUG.
        * Reduce the amount of error reporting.
        * Remove the internal bookkeeping flags and variables;
          instead operate only with a single state variable.
        * Trust that the notify handler is doing its job;
          remove the refresh routine from the sensor.
        * Queue a status check upon resume; we want to know
          if the status has changed when in suspend (and it
          is unclear if a notify is sent to us).
2010-01-31 11:16:18 +00:00
jruoho
6c41d7d7a2 Add detachment routine. 2010-01-31 07:34:10 +00:00
jruoho
baf97f9356 Allocate the sensor structures dynamically. 2010-01-31 06:45:09 +00:00
jruoho
1aca5372db Add detachment routines. 2010-01-31 06:10:53 +00:00
pooka
fdca8d1743 print newline after timer expiry message 2010-01-31 02:54:56 +00:00
hubertf
af120bb199 Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.
2010-01-31 00:43:37 +00:00
pooka
f510198e1c Make swwdog use no-needs-count. As the manpage says, there can be only one. 2010-01-30 21:55:28 +00:00
jakllsch
43f0caffdd regen. 2010-01-30 20:50:19 +00:00
jakllsch
8216c57cdb Add Qumranet vendor and Virtio device IDs.
Also, sort some vendor entries.
2010-01-30 20:47:57 +00:00
jruoho
a86a868599 Add the _COMPONENT definition for ACPI_DEBUG. 2010-01-30 18:35:48 +00:00
jruoho
d569343003 Add the _COMPONENT definition for ACPI_DEBUG. 2010-01-30 18:07:06 +00:00
jakllsch
e1d2d1d9ed Sprinkle __KERNEL_RCSID() into siisata(4).
Slightly adjust some comment styling.
2010-01-30 16:16:35 +00:00
pgoyette
aaabf34dde Validate limit-based monitoring in one place, so we can apply the
constraints to both driver-requested and user-requested monitoring.

While here, clean up some of the debugging DPRINTFs.
2010-01-30 02:46:52 +00:00
macallan
565f3dd6cd avoid using PAGE_SIZE directly so sparc/GENERIC builds again 2010-01-29 23:50:01 +00:00
jruoho
b875c5c314 If we failed to obtain the brightness level during suspend, do not try to
restore it with a possible garbage value during resume.
2010-01-29 12:22:00 +00:00
jruoho
ab77a1af1f Replace all AcpiEvaluateObject() calls with acpi_eval_set_integer().
(As the return buffers are not used for anything, no need to make
unnecessary temporary allocations.)

Compile tested only.

ok jmcneill@
2010-01-29 11:57:37 +00:00
jruoho
545590ff33 Fix a memory leak in the resume handler. 2010-01-29 11:23:25 +00:00
drochner
25fb8de00b -rename the "KS_GROUP_Ascii" key symbol category to "Plain" because
this is what it meant all the time -- it includes characters >127
-delegate translation of all key symbols >127 to the terminal emulation
 layer -- formerly everything non-special was passed to the tty subsystem
 directly, involving truncation to a "char", which effectively meant
 some ISO-1 assumption
2010-01-28 22:36:19 +00:00
pooka
b89c02f1d2 Adjust some comments which were written when this was still a part of puffs. 2010-01-28 18:12:55 +00:00
msaitoh
a029a96bdd ANSI C, KNF and tabify 2010-01-28 07:34:12 +00:00
msaitoh
40e808f7b7 - Introduce IPMI and ASF related code from FreeBSD. It fixes some problems
which occured in netboot on sparc64 and PR#32767
- move the code of disabling host interrput in bge_stop() like linux tg3
  driver.
- fix the return value of bge_eeprom_getbyte().
- remove an unused structure.
- KNF
2010-01-28 03:09:13 +00:00
msaitoh
95c0acfe22 Add some register definitions. 2010-01-28 02:55:31 +00:00
drochner
30d27f4f07 the "Battery Present Rate" is only required to be valid if the battery
is discharging; it might make sense when charging, but it doesn't
make sense if neither is the case -- remove a wrong assertion and
arrange the code to make this obvious
(actually, the ACPI spec says that the requirement is only for
rechargeable batteries)
2010-01-27 22:17:28 +00:00
macallan
31d6295bdf round the space we bus_space_map() up to PAGE_SIZE alignment 2010-01-27 21:02:22 +00:00
macallan
5f203032ca tcx doesn't use bt_dac 2010-01-27 21:01:33 +00:00
pgoyette
af4bab2a6f Move the limits out of the event structure and into the main sensor.
Use the limits_flags only for calls to the {get,set}_limits() callbacks
and merge the results into upropset, rather than trying to maintain both
values (error prone).
2010-01-26 14:22:00 +00:00
mlelstv
ff9a9860d6 GPTs are defined in terms of physical blocks.
- Fix reading of GPT for devices with non-512byte sectors
- Fix bounds check to use DEV_BSIZE units.
2010-01-25 14:51:03 +00:00
martin
f6610e39b4 Back out part of my device property change: the mac-address part was already
done better in another place which I overlooked when merging local
changes.
2010-01-25 10:25:30 +00:00
jakllsch
0da2c5fc0b Add some more elements to struct ataparams.
These mostly concern the new Long Physical Sectors
and Long Logical Sectors feature sets.

Information from a draft of ACS-2, with some additional
in-between members and bits being borrowed from OpenBSD.

There's lots more in ACS-2 we could add, but for the most
part it would be superfluous.

XXX: Some elements marked as reserved no longer are,
and some elements we still reference are now obsolete.
2010-01-25 00:39:51 +00:00
martin
3f563da1bf Do not try to read the EEPROM if we already know we don't have one. 2010-01-24 23:27:39 +00:00
martin
808ceeabba Add support for device properties to override the mac address and set
the BGE_NO_EEPROM flag if we have an onboard device w/o SEEPROM.
2010-01-24 23:09:26 +00:00
msaitoh
fcf9d8f520 Fix a printf() message in debug code reported by Bert Kiers. 2010-01-24 17:56:54 +00:00
msaitoh
b7f2eb1a7e Add support for BCM5461,BCM5784 and BCM5761.
Enable brgphy_jumbo_settings().
Enable the Ethernet@Wirespeed function.
2010-01-24 16:26:09 +00:00
msaitoh
e12ed2e395 regen. 2010-01-24 16:23:16 +00:00
msaitoh
c1c40d3128 Add BCM5461,BCM5784 and BCM5761. 2010-01-24 16:22:40 +00:00
msaitoh
6d4f69ebbb Many changes from FreeBSD and OpenBSD:
- Add support for BCM5705F,BCM5714,SBCM5715S,BCM5717,BCM5718,BCM5720,BCM5723,
   BCM5724,BCM5751F,BCM5753F,BCM5756,BCM5761,BCM5761E,BCM5761S,BCM5761SE,
   BCM5764,BCM5781,BCM5784M,BCM5903M,BCM57760,BCM57761,BCM57765,BCM57780,
   BCM57781,BCM57785,BCM57788,BCM57790,BCM57791 and BCM57795. Fixes PR#41694.
 - Fix misunderstanding the capability for TSO4 on some chips.
 - Many other bugfixes.
 - Use proplib for no EEPROM systems (e.g. sparc64 with onboard bge).
 - Add debug function to show some flags.
2010-01-24 16:21:09 +00:00
msaitoh
e7e99141e3 regen. 2010-01-24 15:53:59 +00:00
msaitoh
7ca751745f Add BCM5717,5718,5723,5724,5787F,5761,5761E,5764,5761S,5761SE,5760,57788,
57780,57790,5784M,5785F,5785G,57761,57781,57791,57765,57785 and 57795.
2010-01-24 15:53:29 +00:00
msaitoh
39c974917d Fix the bug that both BGE_PCIE and BGE_PCIX are set on PCI-Express devices. 2010-01-24 15:29:10 +00:00
msaitoh
b95c5336e3 KNF & fix typo in comment.
No functional change.
2010-01-24 14:10:00 +00:00