Commit Graph

26325 Commits

Author SHA1 Message Date
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
mbalmer
26bb6ca79d Unfold, bump copyright. 2010-01-24 12:25:20 +00:00
jruoho
e6056a8df3 * Reintroduce a state variable. From njoly@.
* Always mark the charge state sensor as valid.
2010-01-24 11:32:13 +00:00
bouyer
59405fd732 struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
2010-01-23 18:54:53 +00:00
bouyer
5d530cfdab struct buf::b_iodone is not called at splbio() any more.
Make sure non-MPsafe iodone callbacks raise the SPL as appropriate.
Fix buffer corruption issue I noticed in dk(4), and probable similar
issues in vnd(4) and cgd(4).
2010-01-23 18:31:04 +00:00
cegger
3b84dd90dd essattach: printf -> aprint_* 2010-01-23 17:22:04 +00:00
jruoho
3f1f18b1bd Cleanup:
* Remove ACPI_BAT_DEBUG.
  * Reduce the amount of error reporting.
  * Remove the internal bookkeeping flags.
  * Remove the debugging functions used to print status and information
    changes. This information is fully conveyed in the output of envstat(8).
  * Always evaluate _STA. If it fails or the battery is not present, mark
    all remaining sensors as invalid. This will eliminate the convoluted
    update routine.
  * Semantics.

Over 200 LOC was eliminated, but functional change should again be minimal.

ok jmcneill@, pgoyette@
2010-01-23 15:06:47 +00:00
jruoho
2327840926 Correct the type also in the WMI write method. 2010-01-23 13:32:45 +00:00
jruoho
f55e7ab193 * Fix the type of the input buffer in the WMI method call.
* Do not error out if the flags field is is 0x00. Observed by cegger@.
2010-01-23 12:48:19 +00:00
martin
f11c121338 Remove sparc specific code, use device properties instead. 2010-01-22 16:12:41 +00:00
jdc
5fd95f0bc6 Remove port-specific code for determining MAC address, and use device
properties instead (c.f. gem(4) and hme(4)).
2010-01-22 14:34:34 +00:00
martin
f9e1815aaf Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.
2010-01-22 08:56:04 +00:00
hubertf
73699ad19c regen - thanks for the reminder @ veego 2010-01-22 08:01:49 +00:00
jakllsch
6b47b91e08 Correct an error in previous commit. 2010-01-22 01:22:00 +00:00
jakllsch
6f6dd47b49 Convert to C99 types. Make whitespace more consistent. 2010-01-21 23:26:58 +00:00
hubertf
3c3fb74cfa add/improve a few devices 2010-01-21 23:23:44 +00:00
macallan
f716aea43a get rid of architecture-specific firmware calls to determine the MAC address
on sparc(64) and macppc - use device properties instead
tested by myself on macppc and martin on sparc64
2010-01-21 17:40:09 +00:00