openbsd
16 years agoremove the #if 0'ed NFS_ATTRTIMEO() macro since it was
thib [Sun, 31 Aug 2008 16:58:01 +0000 (16:58 +0000)]
remove the #if 0'ed NFS_ATTRTIMEO() macro since it was
replaced by a function long ago..

ok blambert@

16 years agosync
deraadt [Sun, 31 Aug 2008 15:16:48 +0000 (15:16 +0000)]
sync

16 years agono need for .Pp before or after .Sh;
jmc [Sun, 31 Aug 2008 14:19:09 +0000 (14:19 +0000)]
no need for .Pp before or after .Sh;

16 years agoremove http links to dead domain.
jsg [Sun, 31 Aug 2008 09:54:32 +0000 (09:54 +0000)]
remove http links to dead domain.

16 years agoremove http links to dead/changed domains.
jsg [Sun, 31 Aug 2008 09:50:12 +0000 (09:50 +0000)]
remove http links to dead/changed domains.

16 years agoremove http links to dead domains.
jsg [Sun, 31 Aug 2008 09:40:56 +0000 (09:40 +0000)]
remove http links to dead domains.

16 years agoFix AS check in parse_community() -- well-known communities have the AS
claudio [Sun, 31 Aug 2008 08:29:35 +0000 (08:29 +0000)]
Fix AS check in parse_community() -- well-known communities have the AS
part set to COMMUNITY_WELLKNOWN which is the same as USHRT_MAX.
Figured out by Greg Skinner

16 years agoreplace TRUNC_PAGE by trunc_page and ROUND_PAGE by round_page
martin [Sat, 30 Aug 2008 20:45:31 +0000 (20:45 +0000)]
replace TRUNC_PAGE by trunc_page and ROUND_PAGE by round_page
plus cast to vaddr_t where necassary

from Miod's todo list

ok miod@

16 years agoCode refactorization and state structure changes in preparation of asynchronous
miod [Sat, 30 Aug 2008 20:13:03 +0000 (20:13 +0000)]
Code refactorization and state structure changes in preparation of asynchronous
abort commands, needed to eventually support command timeouts for non-polled
commands... no functional change.

16 years agono need to include uvm/uvm.h twice
martin [Sat, 30 Aug 2008 18:58:24 +0000 (18:58 +0000)]
no need to include uvm/uvm.h twice

16 years agouse a bitmap to store the features. simplify the code a bit and allow for
fgsch [Sat, 30 Aug 2008 10:41:38 +0000 (10:41 +0000)]
use a bitmap to store the features. simplify the code a bit and allow for
future work.  ok av@ a similar diff.

16 years agoMove the link state check back up to the top of the various status
brad [Sat, 30 Aug 2008 08:16:13 +0000 (08:16 +0000)]
Move the link state check back up to the top of the various status
functions right after reading the BMSR as it was before the addition
of the fiber support and simplify brgphy_fiber_status() a bit.

ok dlg@

16 years agogarbage collect the no longer used GEM_IS_APPLE macro.
brad [Sat, 30 Aug 2008 07:41:51 +0000 (07:41 +0000)]
garbage collect the no longer used GEM_IS_APPLE macro.

16 years agoFix an issue initially reported by drahn@ with gem(4) where these
brad [Sat, 30 Aug 2008 07:39:12 +0000 (07:39 +0000)]
Fix an issue initially reported by drahn@ with gem(4) where these
drivers can report 2-3x times the number of actual packets being
transmitted by only incrementing the counter for descriptors with
buffers being freed.

ok kettenis@

16 years agoregen
brad [Sat, 30 Aug 2008 07:25:11 +0000 (07:25 +0000)]
regen

16 years agoAdd PCI ids for Intel E1000 82576 based boards.
brad [Sat, 30 Aug 2008 07:24:32 +0000 (07:24 +0000)]
Add PCI ids for Intel E1000 82576 based boards.

From FreeBSD

16 years agoregen
brad [Sat, 30 Aug 2008 04:51:45 +0000 (04:51 +0000)]
regen

16 years agoAdd the vendor ID for Techsan Electronics and PCI ids for their
brad [Sat, 30 Aug 2008 04:50:50 +0000 (04:50 +0000)]
Add the vendor ID for Techsan Electronics and PCI ids for their
Sky2PC DVB cards.

From jbg@

16 years agoRemove the header that exposed the old wdt ioctl interface to userland,
jsg [Sat, 30 Aug 2008 02:46:56 +0000 (02:46 +0000)]
Remove the header that exposed the old wdt ioctl interface to userland,
wdt was converted to use the common watchdog code some time ago so this
is no longer needed.

"yes, we should remove it" mbalmer@

16 years ago- Remove passing a redundant --no-split flag on the command line
brad [Sat, 30 Aug 2008 01:16:30 +0000 (01:16 +0000)]
- Remove passing a redundant --no-split flag on the command line
  for makeinfo.
- Remove some white space.

ok beck@ biorn@

16 years agoMention Family 11h in the comment.
brad [Sat, 30 Aug 2008 01:10:13 +0000 (01:10 +0000)]
Mention Family 11h in the comment.

16 years agoCorrect the last commit. There is no such thing as the K11
brad [Sat, 30 Aug 2008 01:09:08 +0000 (01:09 +0000)]
Correct the last commit. There is no such thing as the K11
microarchitecture (yet). Family 11h (Griffin) is a K8
microarchitectre CPU with some bits from K10 such as power
management and sensor interface.

16 years agoDisable the use of Jumbo frames on the first generation chips (82542).
brad [Fri, 29 Aug 2008 23:28:34 +0000 (23:28 +0000)]
Disable the use of Jumbo frames on the first generation chips (82542).
The exact details are unknown (possibly hw errata?) but the Windows
and Linux drivers have never supported Jumbos on this chipset and since
it is so old and rare it is not that big of a deal.

From FreeBSD

ok dlg@ awhile ago.

16 years agoTake the PHY out of power down while attaching just before probing for
brad [Fri, 29 Aug 2008 22:59:56 +0000 (22:59 +0000)]
Take the PHY out of power down while attaching just before probing for
PHY. This helps with systems dual booting Windows XP/Vista where the
Windows drivers will put the PHY in power down mode when rebooting.

From FreeBSD

16 years agoBuild with mtrr support on amd64. This really should have gone in in
oga [Fri, 29 Aug 2008 15:14:59 +0000 (15:14 +0000)]
Build with mtrr support on amd64. This really should have gone in in
edmonton, but I forgot.

ok and extra testing phessler@.

16 years agoDon't memcpy too far whem drm_realloc() is called with a smaller size.
oga [Fri, 29 Aug 2008 13:44:23 +0000 (13:44 +0000)]
Don't memcpy too far whem drm_realloc() is called with a smaller size.
This was never noticed since it's always used with a larger size.

Noticed by Stephane Marchesin.

16 years agoFix nvi's cscope support in the case that someone provided a filename
oga [Fri, 29 Aug 2008 13:07:13 +0000 (13:07 +0000)]
Fix nvi's cscope support in the case that someone provided a filename
without a directory (e.g. :cscope add cscope.out). Found and fixed by
Paul Irofti, with help from me; Thanks!

upstream nvi also has this fix.

ok otto@.

16 years agomove code to support Frequency-Hopping spread spectrum (FHSS) PHYs
damien [Fri, 29 Aug 2008 12:14:53 +0000 (12:14 +0000)]
move code to support Frequency-Hopping spread spectrum (FHSS) PHYs
to the Attic.  nothing uses it in the tree and it is very unlikely
that something will use it one day.
the only driver supporting FHSS PHYs in the tree is ray(4) and it
does not use net80211.

16 years agoremove BIND's delegation-only from default config files.
jakob [Fri, 29 Aug 2008 11:47:49 +0000 (11:47 +0000)]
remove BIND's delegation-only from default config files.
ok djm@ millert@

16 years agoadd support for software crypto to allow WPA/WPA2/RSN. it is disabled
reyk [Fri, 29 Aug 2008 11:15:32 +0000 (11:15 +0000)]
add support for software crypto to allow WPA/WPA2/RSN.  it is disabled
for now because it needs more testing, but basic WPA/WPA2 and WEP
seems to work.  to enable it, set the compiled-in ath_softcrypto
variable to 1.

this is based on a previous diff from damien@ with some changes to
disable the hardware crypto engine if softcrypto is enabled and to
keeps the hardware crypto code in place to allow later work on
hardware WPA/WPA2.

16 years agoacx(4) supports Host AP mode too and does not handle PS STAs properly
damien [Fri, 29 Aug 2008 10:52:41 +0000 (10:52 +0000)]
acx(4) supports Host AP mode too and does not handle PS STAs properly
(since it uses net80211 and does not manage dynamic parts of beacons).

spotted by jmc@

16 years agoadd a HAL function to force disabling the hardware crypto engine
reyk [Fri, 29 Aug 2008 10:05:00 +0000 (10:05 +0000)]
add a HAL function to force disabling the hardware crypto engine

16 years agoPre-commit checks (CVSROOT/commitinfo) are run before log message is
tobias [Fri, 29 Aug 2008 09:54:22 +0000 (09:54 +0000)]
Pre-commit checks (CVSROOT/commitinfo) are run before log message is
requested. Do this for GNU cvs compatibility, too.

ok joris

16 years agoSupport for variable expansion in trigger files added.
tobias [Fri, 29 Aug 2008 09:51:21 +0000 (09:51 +0000)]
Support for variable expansion in trigger files added.

ok joris

16 years agoIf parsing of a command in one of the trigger files fails, treat this as an
tobias [Fri, 29 Aug 2008 09:46:10 +0000 (09:46 +0000)]
If parsing of a command in one of the trigger files fails, treat this as an
error instead of ignoring it.

ok joris

16 years agonew sentence, new line.
damien [Fri, 29 Aug 2008 09:44:16 +0000 (09:44 +0000)]
new sentence, new line.

16 years agothe atw(4) man page says:
damien [Fri, 29 Aug 2008 09:30:23 +0000 (09:30 +0000)]
the atw(4) man page says:

   "The driver lets you change to Host AP mode, but it does not work
    and it probably never will."

so just remove the HOSTAP capability bit in the code and remove this
sentence.

16 years agoadd the following paragraph from the wi(4) manual page to the
damien [Fri, 29 Aug 2008 09:03:48 +0000 (09:03 +0000)]
add the following paragraph from the wi(4) manual page to the
CAVEATS section of all drivers claiming HostAP support:

"Host AP mode doesn't support power saving.  Clients attempting to
 use power saving mode may experience significant packet loss
 (disabling power saving on the client will fix this)."

unfortunately (or not?), more and more clients are using PS mode by
default and will not work properly with an AP running OpenBSD.

proper handling of STAs in PS mode will come in net80211 but is is
very unlikely that all drivers will be ported.

16 years agofix comment: we use a pool for namei, so malloc considerations do not
otto [Fri, 29 Aug 2008 08:57:28 +0000 (08:57 +0000)]
fix comment: we use a pool for namei, so malloc considerations do not
apply; ok jsg@

16 years agogarbage collect unused capabilities and configurations flags.
damien [Fri, 29 Aug 2008 08:40:53 +0000 (08:40 +0000)]
garbage collect unused capabilities and configurations flags.
add two capabilities flags: IEEE80211_C_HT for HT STAs (802.11n)
and IEEE80211_C_APPMGT which indicates the capability for an AP
to buffer unicast and multicast traffic for STAs in PS mode.
all drivers claiming HostAP support should support that but the
truth is that none of them do.
most of them are still at the 802.11b-only era and do not update
dynamic parts of beacons or process frames from ic_pwrsaveq.

16 years ago- prevent sysmerge from installing a virgin master.passwd and group
ajacoutot [Fri, 29 Aug 2008 08:17:28 +0000 (08:17 +0000)]
- prevent sysmerge from installing a virgin passwd and group
files (only allow delete or merge+install); requested by nick@

no objections from laurent@ krw@ oga@
ok sthen@ nick@

16 years agoMSIZE and MCLBYTES are now defined in sys/param.h; from Jordan Gordeev
jmc [Fri, 29 Aug 2008 08:13:08 +0000 (08:13 +0000)]
MSIZE and MCLBYTES are now defined in sys/param.h; from Jordan Gordeev
ok thib

16 years agosupport AMD Family 11h (Turion X2 Ultra et al); discussed with jsg@ and jmc@
cnst [Fri, 29 Aug 2008 03:38:31 +0000 (03:38 +0000)]
support AMD Family 11h (Turion X2 Ultra et al);  discussed with jsg@ and jmc@

16 years agoIgnore xserver provided mmio address. We already have it. From git.
oga [Thu, 28 Aug 2008 18:29:08 +0000 (18:29 +0000)]
Ignore xserver provided mmio address. We already have it. From git.

16 years agounbreak IEEE80211_DEBUG
damien [Thu, 28 Aug 2008 17:56:24 +0000 (17:56 +0000)]
unbreak IEEE80211_DEBUG

16 years agoRewrite the multicast/promiscuous handling and in the process merge into
brad [Thu, 28 Aug 2008 17:51:09 +0000 (17:51 +0000)]
Rewrite the multicast/promiscuous handling and in the process merge into
one function. Also fix reception of multicast packets when in promisuous
mode. The Realtek chips are a little different than most others in that
they will not receive multicast packets by enabling promiscuous mode
alone.

Tested by naddy@ and sthen@
ok naddy@

16 years agoindent IF_PURGE. pointed out by brad@
damien [Thu, 28 Aug 2008 16:02:14 +0000 (16:02 +0000)]
indent IF_PURGE.  pointed out by brad@

no binary changes.

16 years ago#undef IPW_DEBUG
damien [Thu, 28 Aug 2008 16:00:21 +0000 (16:00 +0000)]
#undef IPW_DEBUG
fix a comment while i'm here.

pointed out by brad@

16 years ago80 cols.
damien [Thu, 28 Aug 2008 15:55:37 +0000 (15:55 +0000)]
80 cols.

no binary changes.

16 years agoWPA support for iwi(4).
damien [Thu, 28 Aug 2008 15:52:20 +0000 (15:52 +0000)]
WPA support for iwi(4).
some initial WMM bits too.
use license.template while i'm here.

16 years agoDo not try to attach to rev 2 BCM4311/BCM4312 chipsets as they
brad [Thu, 28 Aug 2008 15:19:03 +0000 (15:19 +0000)]
Do not try to attach to rev 2 BCM4311/BCM4312 chipsets as they
require v4 firmware and the driver currently uses v3 firmware.

ok mglocker@

16 years agoi've lost the IF_PURGE() bits in the process...
damien [Thu, 28 Aug 2008 15:08:38 +0000 (15:08 +0000)]
i've lost the IF_PURGE() bits in the process...
use license.template while i'm here.

16 years agoWPA support for ipw(4).
damien [Thu, 28 Aug 2008 14:40:44 +0000 (14:40 +0000)]
WPA support for ipw(4).
Did a lot of cleanup while I was there.

16 years agosome style fixes.
brad [Thu, 28 Aug 2008 13:19:38 +0000 (13:19 +0000)]
some style fixes.

16 years agoFix a typo in the naming of the PPPoE input queues, ppoe -> pppoe.
brad [Thu, 28 Aug 2008 13:10:54 +0000 (13:10 +0000)]
Fix a typo in the naming of the PPPoE input queues, ppoe -> pppoe.

ok canacar@

16 years agosome auacer(4) bits;
jmc [Thu, 28 Aug 2008 13:09:02 +0000 (13:09 +0000)]
some auacer(4) bits;

16 years agoencode the speed and link state in the local port key.
reyk [Thu, 28 Aug 2008 11:10:25 +0000 (11:10 +0000)]
encode the speed and link state in the local port key.

ok brad@

16 years agoman page for the auacer(4) driver.
mikeb [Thu, 28 Aug 2008 10:29:35 +0000 (10:29 +0000)]
man page for the auacer(4) driver.

16 years agoDriver for Acer Labs M5455 integrated sound found on recent Ultra workstations.
mikeb [Thu, 28 Aug 2008 10:21:22 +0000 (10:21 +0000)]
Driver for Acer Labs M5455 integrated sound found on recent Ultra workstations.
Suggestions and corrections by kettenis, ratchov, jakemsr.  Thanks a lot!
Recording doesn't work at the moment.

ok kettenis ratchov

16 years agotypo; from hyjial
jmc [Thu, 28 Aug 2008 08:39:44 +0000 (08:39 +0000)]
typo; from hyjial
ok otto

16 years ago- enable uvideo on sgi, it's working for me with a quickcam e 3500 plus
jasper [Thu, 28 Aug 2008 05:18:26 +0000 (05:18 +0000)]
- enable uvideo on sgi, it's working for me with a quickcam e 3500 plus

ok mglocker@

16 years agoIgnore userland provided batchbuffer start parameter, we can determine
oga [Thu, 28 Aug 2008 02:26:16 +0000 (02:26 +0000)]
Ignore userland provided batchbuffer start parameter, we can determine
it ourselves.

From drm git.

16 years agoset sarea_priv to NULL to prevent possible access on next open/close.
oga [Thu, 28 Aug 2008 01:51:52 +0000 (01:51 +0000)]
set sarea_priv to NULL to prevent possible access on next open/close.

From Robert Noland via drm git.

16 years agoKill the ifdefed out ttm interface stuff. The intel driver has
oga [Thu, 28 Aug 2008 01:34:18 +0000 (01:34 +0000)]
Kill the ifdefed out ttm interface stuff. The intel driver has
definitively gone for GEM so this will not be needed.

No binary change.

16 years agoAdd some more E1000 PCI ids.
brad [Thu, 28 Aug 2008 01:17:29 +0000 (01:17 +0000)]
Add some more E1000 PCI ids.

From FreeBSD

16 years agoThis file was meant to be removed with the last commit, it's now empty
oga [Thu, 28 Aug 2008 00:44:31 +0000 (00:44 +0000)]
This file was meant to be removed with the last commit, it's now empty
and unused.

16 years agoreplace usage of drm_memrange with extent(9). No functional change, but
oga [Thu, 28 Aug 2008 00:19:27 +0000 (00:19 +0000)]
replace usage of drm_memrange with extent(9). No functional change, but
should shrink the kernel somewhat. For some strange reason I was unaware
of this api when I pulled in these changes.

tested by myself and Paul de Weerd, thanks!

16 years agodocument \user; from Kristaps D?onsons, originally from Mengzhu Wang
jmc [Wed, 27 Aug 2008 20:39:32 +0000 (20:39 +0000)]
document \user; from Kristaps D?onsons, originally from Mengzhu Wang
document comma separated entries; from millert
reorganise the page a bit to read better

ok millert

16 years agoRemove a redundant define for RL_CFG2 and remove an incorrect comment.
brad [Wed, 27 Aug 2008 20:38:59 +0000 (20:38 +0000)]
Remove a redundant define for RL_CFG2 and remove an incorrect comment.

16 years agocorrect man sections; from Tobias Sarnowski
jmc [Wed, 27 Aug 2008 20:20:13 +0000 (20:20 +0000)]
correct man sections; from Tobias Sarnowski
ok millert

16 years agoadd an Xr to usb, now that we have usb on sgi
jasper [Wed, 27 Aug 2008 20:12:00 +0000 (20:12 +0000)]
add an Xr to usb, now that we have usb on sgi

16 years agosync
deraadt [Wed, 27 Aug 2008 17:33:32 +0000 (17:33 +0000)]
sync

16 years agoanother ups
deraadt [Wed, 27 Aug 2008 17:33:30 +0000 (17:33 +0000)]
another ups

16 years agoSome __packed cleanup; Remove another obsolete pack from a none-hardware
mglocker [Wed, 27 Aug 2008 17:31:48 +0000 (17:31 +0000)]
Some __packed cleanup;  Remove another obsolete pack from a none-hardware
struct and pack all other hardware structs which have been forgotten.

16 years agomove definitions of channels attributes away from ieee80211.h such
damien [Wed, 27 Aug 2008 10:58:01 +0000 (10:58 +0000)]
move definitions of channels attributes away from ieee80211.h such
that ieee80211.h contains only definitions that are part of the
802.11 standard and not constants used internally by net80211.
because channels attributes are exported to userland through the
radiotap BPF interface, add the definitions to ieee80211_radiotap.h
too (which must be kept in sync with what is used in net80211).
also, do not export combinations of channel attributes to userland
so that noone get stupid ideas.

16 years agopass FCS to radiotap.
damien [Wed, 27 Aug 2008 10:34:24 +0000 (10:34 +0000)]
pass FCS to radiotap.

16 years agofix IEEE80211_RADIOTAP_F_SHORTPRE
damien [Wed, 27 Aug 2008 10:29:53 +0000 (10:29 +0000)]
fix IEEE80211_RADIOTAP_F_SHORTPRE

16 years agoanother IEEE80211_RADIOTAP_F_FCS candidate.
damien [Wed, 27 Aug 2008 10:03:47 +0000 (10:03 +0000)]
another IEEE80211_RADIOTAP_F_FCS candidate.

16 years agoadd IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.
damien [Wed, 27 Aug 2008 10:01:18 +0000 (10:01 +0000)]
add IEEE80211_RADIOTAP_F_FCS radiotap flag from NetBSD.

use it in drivers that leave the 802.11 FCS in frames
passed to radiotap BPF.  otherwise, userland has no way
to know if FCS is included or not as it depends on drivers.
this is required by some ports (aircrack).

requested by dhill@

16 years agohardware may pass us ACK or CTS frames in some cases, so use
damien [Wed, 27 Aug 2008 09:49:32 +0000 (09:49 +0000)]
hardware may pass us ACK or CTS frames in some cases, so use
IEEE80211_ACK_LEN instead of IEEE80211_MIN_LEN for ZYD_MIN_RXBUFSZ
and ZYD_MIN_FRAGSZ.
silence some warnings while i'm there.
change ZYD_FILTER_BSS to use the same value as the vendor's driver
that contains some magic (undocumented) bits.

16 years agothe firmware is responsible for sending management frames, but
damien [Wed, 27 Aug 2008 09:28:38 +0000 (09:28 +0000)]
the firmware is responsible for sending management frames, but
since we pass received management frames to net80211, net80211
may send replies (like deauth/disassoc), so we just call
IF_PURGE(&ic->ic_mgtq) in {ipw,iwi}_start just to be on the
safe side of things (so we don't leak mbufs).

16 years agooverride net80211's ic_node_alloc function to allocate a full
damien [Wed, 27 Aug 2008 09:14:36 +0000 (09:14 +0000)]
override net80211's ic_node_alloc function to allocate a full
bwi_node structure (containing the rate control state).
because bwi(4) does not support HostAP or IBSS modes there is
no need to maintain a per-node rate control state, so we could
as well store it in bwi_softc but that will allow for future
improvements.

pointed out by Taylor R Campbell (campbell AT mumble DOT net)
on tech@

16 years agointroduce new IEEE80211_STA_ONLY kernel option that can be set to
damien [Wed, 27 Aug 2008 09:05:03 +0000 (09:05 +0000)]
introduce new IEEE80211_STA_ONLY kernel option that can be set to
remove IBSS and HostAP support from net80211 and 802.11 drivers.
it can be used to shrink RAMDISK kernels for instance (like what
was done for wi(4)).
it also has the benefit of highlighting what is specific to IBSS
and HostAP modes in the code.
the cost is that we now have two code paths to maintain.

16 years agoFix length check when parsing PPPoE discovery phase packets.
brad [Wed, 27 Aug 2008 08:41:46 +0000 (08:41 +0000)]
Fix length check when parsing PPPoE discovery phase packets.

Malicious PPPoE discovery packets could cause the kernel to
crash.

From canacar@ and inspired by the original fix from NetBSD.
ok canacar@

16 years agoadd a C-c target, so we can use it as a prefix for keybindings.
kjell [Wed, 27 Aug 2008 04:11:52 +0000 (04:11 +0000)]
add a C-c target, so we can use it as a prefix for keybindings.
Now you can do something like:
  global-set-key "\^c\^c" compile
in your ~/.mg

16 years agoexposed too much, only expose prototype outside ifdef
martynas [Wed, 27 Aug 2008 02:08:34 +0000 (02:08 +0000)]
exposed too much, only expose prototype outside ifdef

16 years agodelete unused pragma ident junk
deraadt [Wed, 27 Aug 2008 01:37:16 +0000 (01:37 +0000)]
delete unused pragma ident junk

16 years agocomment fixes
martynas [Wed, 27 Aug 2008 00:40:38 +0000 (00:40 +0000)]
comment fixes

16 years agofix 128-bit division. gcc mangled arguments when passing to the
martynas [Wed, 27 Aug 2008 00:31:01 +0000 (00:31 +0000)]
fix 128-bit division.  gcc mangled arguments when passing to the
__udivti3, because MUST_PASS_IN_STACK always returned 1 on amd64;
pr#5780
reported by Simon Kuhnle
tested by Simon Kuhnle, sthen@, brad@
double-checked & tweak from miod@
ok sthen@, brad@

16 years agoFix an if (); typo. ok beck@
jsg [Tue, 26 Aug 2008 22:49:09 +0000 (22:49 +0000)]
Fix an if (); typo. ok beck@

16 years agoanother ups to knock out of being a uhid
deraadt [Tue, 26 Aug 2008 22:25:20 +0000 (22:25 +0000)]
another ups to knock out of being a uhid

16 years agosync
deraadt [Tue, 26 Aug 2008 22:25:08 +0000 (22:25 +0000)]
sync

16 years agonew devs
deraadt [Tue, 26 Aug 2008 22:24:30 +0000 (22:24 +0000)]
new devs

16 years agoFix alignment panic on sparc64 by removing a wrong __packed. While
mglocker [Tue, 26 Aug 2008 21:52:48 +0000 (21:52 +0000)]
Fix alignment panic on sparc64 by removing a wrong __packed.  While
there reorder fields in the struct to make it shorter on 64 bit archs.

panic reported by jasper@
thanks to miod@ for helping me debug this down

16 years agoFix a couple of problems that may make gem(4) get stuck:
kettenis [Tue, 26 Aug 2008 21:06:29 +0000 (21:06 +0000)]
Fix a couple of problems that may make gem(4) get stuck:

1. If bus_dmamap_load_mbuf() fails because there are not enough
   segments in the map, defrag the mbuf.

2. If there are not enough free (hardware ring) descriptors, set
   IFF_OACTIVE and keep the packet on the queue.

3. If there is some other resource starvation that makes
   bus_dmamap_load_mbuf() or defragmentation fail, drop the packet.
   Don't set IFF_OACTIVE, since the Tx ring could be empty and we'd be
   stuck.

4. Only pass packets that are actually handed off to the hardware to
   BPF.  Do so before handing them off to the hardware to make sure
   the packet isn't freed behind our back.

ok dlg@

16 years agoStylus pressure sensor is active low, so invert the logic converting it
miod [Tue, 26 Aug 2008 19:46:23 +0000 (19:46 +0000)]
Stylus pressure sensor is active low, so invert the logic converting it
to button #5.

16 years agoBetter strategy to single out onboard bge(4)'s on sparc64 machines.
kettenis [Tue, 26 Aug 2008 19:43:05 +0000 (19:43 +0000)]
Better strategy to single out onboard bge(4)'s on sparc64 machines.

ok deraadt@

16 years agoWhen using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.
miod [Tue, 26 Aug 2008 18:36:21 +0000 (18:36 +0000)]
When using the not-documented-but-ought-to 'boot sd(...)file' syntax (e.g.
when mopbooting the bootblocks because one trashed the ones on disk by
accident), be sure to use the proper BDEV_SDx rpb device type value,
depending on the type of onboard controller. Crank version.

16 years ago- add F
martynas [Tue, 26 Aug 2008 18:29:12 +0000 (18:29 +0000)]
- add F
- make inf INF nan NAN comply to standards (eEfFgG)
- extend man page bits
ok millert@.  w/ a man page tweak and ok jmc@

16 years agodon't zero-pad special values. ok millert@
martynas [Tue, 26 Aug 2008 17:56:30 +0000 (17:56 +0000)]
don't zero-pad special values.  ok millert@