Commit Graph

190716 Commits

Author SHA1 Message Date
joerg b6b2d9476a \\ -> \e 2010-05-13 21:03:33 +00:00
nonaka 12cd5caed9 Added touchpad driver for WS003SH. 2010-05-13 21:01:59 +00:00
joerg da269724b9 Reflect canonical order by majority rule. The local version in share/man
already got this chance a while ago.
2010-05-13 20:30:01 +00:00
joerg 41e6d3828c Reorder prologue 2010-05-13 19:29:01 +00:00
jruoho f05bdd5ecd Remove the note about the standard recommending fgets(3);
should be clear enough from the big warning to "NEVER use gets()".
2010-05-13 18:38:24 +00:00
kiyohara 35af00ec31 Use COM_REGMAP instead of hd64461uart_{read,write}_1(). 2010-05-13 18:21:32 +00:00
christos 798c8ea20e PR/19069: SUENAGA Hiroki: Original fix was defective because on big endian
the expression is not truncated to 16 bits, thus sending to port 65536 makes
the == 0 test fail and the packet ends up being sent.
2010-05-13 18:19:18 +00:00
joerg 3fc43397e7 Drop trailing white space. Use .Oo / .Oc explicitly to annotate that the
empty content is intended.
2010-05-13 18:10:16 +00:00
dholland ac52caa6eb typo in comment 2010-05-13 18:08:37 +00:00
kiyohara 19163bd05e Standby AFE Clock, if use_afeck is 0. Don't stop AFE Clock, if PERSONA boots
on serial console.
2010-05-13 18:07:40 +00:00
jruoho b2368e5383 Move the structure inside the body text. Some additional markup improvements. 2010-05-13 18:04:58 +00:00
tnozaki 50eb6aadde cast isblank(3)'s argument to unsigned char. 2010-05-13 17:52:11 +00:00
jruoho 08cdc5df90 Build links for syslogp(3), syslogp_r(3), vsyslogp(3), and vsyslogp_r(3).
From Takahiro Kambe in PR lib/43301.
2010-05-13 17:48:50 +00:00
jruoho a903bfbf13 Hook kthread_join(9) to the build. 2010-05-13 13:08:08 +00:00
jruoho a5d24f20a8 In order to widen the paragraphs, move the newly added list of flags below
the list of function parameters. Add two small sentences to give few more
clues about KTHREAD_JOINABLE. Add a missing prototype for kthread_join().
Also: newpl -> newlp.
2010-05-13 13:04:56 +00:00
phx 3303c86cf9 Patches by Toru Nishimura:
- set up DBATs for 80000000-8fffffff and fc000000-ffffffff
- honour DHCP's filename field, use 'netbsd' when unspecified
- PCI-fixups for KuroBox
- determine PCIIDE programming mode for BAR assignment
2010-05-13 10:40:02 +00:00
wiz cf025cace8 Put flags into a list. Bug fixes to kthread_join docs. 2010-05-13 09:56:12 +00:00
christos 58f9040724 implement fullcmd mode. Now we need to modernize the machine specific code
to handle displays > 80 columns to make this work effectively.
2010-05-12 22:09:36 +00:00
mbalmer 8e64e5f559 Fix grammar in a line of output.
From Hywel Mallett via FreeBSD.
2010-05-12 21:21:59 +00:00
macallan 2b22cbf04c set RI_NO_AUTO then attaching early, clear it otherwise 2010-05-12 20:58:52 +00:00
kefren c890d3f5e0 Update also keywords.{c,h} generator in order to reflect latest changes. 2010-05-12 19:26:33 +00:00
plunky ba2b0dff29 hid_get_data() does not work if the size of data is less than
a byte and crosses a byte boundary, and it always returns a
sign-extended value.

fix this by using the algorithm from libusbhid to read bytes,
and provide a hid_get_udata() function to return unsigned data
values.

while here, const args
2010-05-12 18:44:48 +00:00
plunky 38cd0f0b2e note const from actual API 2010-05-12 18:37:56 +00:00
phx d29b6bdad1 Typo: DHB should be DMB (most significant bye, not high byte). 2010-05-12 18:33:09 +00:00
plunky 7a1cb70b5e hid_get_data() will read an extra byte if the data being read ends on
a byte boundary. This byte is subsequently discarded, but it could be
a byte from memory after the end of the report being parsed.

Fix this by rounding up and ending the loop one earlier.
2010-05-12 18:28:20 +00:00
kiyohara 067d0c7013 Style. 2010-05-12 18:22:36 +00:00
kiyohara 222c1ad032 Suply clock SAFECKE_[IO]ST, if platid is PERSONA.
tested on HPW-50PA.
2010-05-12 18:16:53 +00:00
christos c69676936c PR/40455: Mihai Chelaru: Add noreject noblackhole options 2010-05-12 17:56:13 +00:00
phx 5bc4943cb2 Rewrote most of the code to make the 8245 I2C module finally work.
Tested with a RICOH RS5C372 RTC on a Synology DS-101g+ and Kurobox.
Reviewed by <nisimura>.
2010-05-12 17:20:24 +00:00
jruoho 2731b5ff2f Print a warning if AcpiOsSleep() is called with a value larger than two
seconds. It is known that there are systems in the field that pass bogus AML
values to the Sleep() operation code, possibly requesting delays that could
be measured in days.

Discussed with jmcneill@.

XXX: While the used mstohz(9) is documented to round to one second if the
     passed value is larger than 131072 ms, we may still need to force a
     sensible upper limit if this warning starts to appear.
2010-05-12 17:03:11 +00:00
pooka dc34f07022 fix inversion: advance clock on cpu0, not the complement of cpu0 2010-05-12 16:48:21 +00:00
kiyohara 6ff2092a57 Fix arg of intr_establish().
comintr() expects struct com_softc* for arg.
2010-05-12 16:41:08 +00:00
jruoho 881c3c1e3f When scanning the device "capabilities" (power, wake-up, etc.),
include all device nodes, regardless of the status of the device.

XXX: It is known that some systems implement the _STA method incorrectly.
     If needed in the future, attachment based on the values from this
     method may need revisiting. Same goes for ACPI_ACTIVATE_DEV.
2010-05-12 16:11:05 +00:00
jruoho a24d118616 Initial pass for issues observed by dyoung@ on HP Pavilion N3270. In this
laptop there is a PNP0C0B ("ACPI fan") with the following properties:

        _PSC : Power state for D3 (alone).
        _PR0 : Power resources for D0.
        _PSx : Power state switch for D0 and D3.

Thus, it is impossible to get or set the D3 power state via power resources
alone; there is only a single PowerResource() and it is for D0.

To tackle this:

  1. Evaluate the direct _PSC control method if and only if there is no
     given _PRx. The order is important; it is known that some other
     systems implement the _PSC method (like _STA) incorrectly.

  2. If no _PRx is available (and thus no _ON or _OFF), do not error out.
     Instead, if we have AE_NOT_FOUND, continue to evaluate the power state
     switch method, _PSx, which (on this laptop) should alone suffice for
     the D0 -> D3 transition.
2010-05-12 15:59:52 +00:00
haad f4b66b2506 Document kthread_join in kthread(9). 2010-05-12 15:54:47 +00:00
haad 6b319cec0e Fix bogus KASSERT, typo and KNFize my previous patch. 2010-05-12 15:53:20 +00:00
matt 43d0731fa4 Add PSL_HIGHIPL for recent subr.S change 2010-05-12 14:43:48 +00:00
lukem 6311ba0ef5 move MKDEBUG entries for libs from md.shark to ad.arm to match ../base/ad.arm 2010-05-12 13:15:00 +00:00
christos 520ec8892c regen 2010-05-12 12:27:07 +00:00
christos 6eb8e73a91 Use device names from the OpenBSD iwn driver, adding and modifying device
names as needed. From Sverre Froyen
2010-05-12 12:26:16 +00:00
nakayama 84149c9088 Remove obsolete comment about a data corruption on IDE controllers
in Blade 100/Netra X1.

Workaround for a data corruption was commited as rev. 1.16 of
src/sys/dev/pci/aceride.c in 2005.
2010-05-12 12:25:59 +00:00
martin 1205a48106 Use callout_halt() instead of callout_stop() - otherwise gem_detach() might
be too fast and run callout_destroy() while another cpu is still busy
in the callout.
2010-05-12 10:25:23 +00:00
rmind 70f6a0718b pool_{cache_}get: improve previous diagnostic by checking for panicstr,
so it wont trigger the assert while trying to dump core on crash.
2010-05-12 08:11:16 +00:00
macallan 085d3a8922 make this work again 2010-05-12 06:11:31 +00:00
snj 965a29d74a Fix gimplish. 2010-05-12 04:30:18 +00:00
rmind b3d53a5f95 - Sprinkle asserts to catch calls from interrupt context on IPL_NONE pools.
- Add diagnostic drain attempt.
2010-05-12 03:43:46 +00:00
rmind 6bf9a07036 execve1: move few PNBUF_PUT() outside the lock paths. 2010-05-12 03:40:38 +00:00
matt 677688bd7f Make sure the softint lwp runs at IPL_HIGH. 2010-05-12 01:58:22 +00:00
haad 6af3749398 Add support for kthread_join in our kernel thread implementation. This is used
by zfs but I think that it can be generaly usefull. Thread need to be created
with KTHREAD_JOINABLE flag and can be joined only once.
When joinable thread was created it will not e automatically reaped from system
and kthread_join must be called on it to reap it.

Ok by ad@.
2010-05-11 22:26:00 +00:00
pooka 1616addc6a Actually, push defining _RUMPKERNEL down to libkern, since it's
not needed elsewhere.
2010-05-11 22:21:05 +00:00