Commit Graph

145229 Commits

Author SHA1 Message Date
thorpej
11c16d3717 Use opb_instance instead of dv->dv_unit when checking if we should set
the mac-addr property.
2006-03-28 17:22:15 +00:00
shige
2295adc429 Don't configure the aurtc device. 2006-03-28 16:56:50 +00:00
gdamore
203fcf4dc2 Use todr_attach. 2006-03-28 16:52:35 +00:00
gdamore
a3102ea4c1 Use todr_attach. 2006-03-28 16:37:44 +00:00
gdamore
8a4593e3a3 Duplicate RTC registration should be a warning, not a panic. 2006-03-28 16:35:51 +00:00
tron
0b2d4e954a Use sigaction(2) to setup automatic disposal of child processes after
daemonizing. This is more portable and avoids zombie "rpc.statd"
processes after an NFS client running e.g. Mac OS X shuts down.

Reviewed by christos@.
2006-03-28 15:21:00 +00:00
shige
58c31114a4 Add the following devices:
- Au1550 Programmable Serial Controller
 - SMBus protocol (on Au1550 PSC)
 - RICOH R2025S RTC (on SMBus)
 - ATMEL AT24C04 EEPROM (on SMbus)
2006-03-28 15:12:01 +00:00
tnozaki
307ce80709 add kk_KZ.PT154 locale and iconv support for PTCP154. 2006-03-28 14:44:00 +00:00
joerg
3e3d6f89bd Query kernel for maximum argument size instead of using ARG_MAX. 2006-03-28 14:27:41 +00:00
tsutsui
5df31a030b Fix isaportoffset for SHARP_TRIPAD and VADEM_CLIO_C.
Patch from Matthew Orgass on port-hpcmips, as part of PR port-hpcmips/28228.
2006-03-28 14:26:56 +00:00
tsutsui
2cfc946fc5 Add keymap for Clio C-1000 and C-1050.
Patch from Matthew Orgass in PR port-hpcmips/28383.
2006-03-28 14:13:12 +00:00
tron
cfc3b142db Add "distrib/sets/lists" to the list of directories covered by the
"peter-altq" branch.
2006-03-28 13:11:43 +00:00
shige
1af8f5f857 Add a missing todr_attach() function. 2006-03-28 12:02:36 +00:00
yamt
f65df05e9a mention values of each signals as errno(2) does. 2006-03-28 09:45:26 +00:00
gdamore
d375c80e7f Rework evbmips clock architecture to use common clock_subr.h routines.
Additionally, do not fail if no RTC is present, as not all boards have one.

Malta now uses the common dev/ic/mc146818.c code as much as possible, reducing
local "custom" code.  These malta changes are *untested*, as I do not have
a Malta board to test with.  If someone would please test them and get back to
me, I'd appreciate it!
2006-03-28 03:43:57 +00:00
perseant
afc725a1c7 Don't let the pagedaemon wait for pages, since that is just asking for
a deadlock.
2006-03-28 01:29:55 +00:00
dyoung
b307a01ecd Revamp ieee80211_get_rate. Now it does not use the rateset in the
ic->ic_bss, but it uses the rateset in its new ieee80211_node
argument, instead.  If the rate is fixed by ic->ic_fixed_rate, but
the fixed rate is not in the node's rateset, choose a reasonable
default: prefer the lowest basic rate or, if there is no basic
rate, prefer the lowest rate, period.

Change a printf complaint to a debug message.

Adapt drivers to suit new ieee80211_get_rate calling convention.

XXX I really need to replace ieee80211_get_rate with a bitrate
XXX adaptation algorithm.  Soon, soon....
2006-03-28 00:48:10 +00:00
dyoung
0ea2ddfdd9 For eventual re-use, extract the sub-band struct from struct
ieee80211_country_ie and call it ieee80211_band.
2006-03-28 00:13:56 +00:00
jmcneill
913f185f8f Implement a handful of missing smbus protocol functions. Proposed on
tech-kern: http://mail-index.netbsd.org/tech-kern/2006/03/16/0029.html
2006-03-27 23:59:38 +00:00
agc
f02decf866 Add changes to make the NetBSD iSCSI target compile and run on Solaris 9
Ultrasparc.
2006-03-27 22:26:28 +00:00
dyoung
facc99b314 Set the channel frequency and flags in the radiotap headers in
rtw_tune instead of in rtw_start, rtw_intr_rx.
2006-03-27 22:03:36 +00:00
dyoung
3168e87b4f Remove unused argument ifflagsp from rtw_dmamap_load_txbuf. 2006-03-27 22:02:02 +00:00
bouyer
7837fbef28 A device that has just been detached can't be reconfigured. Coverity ID 2674.
Note: this was not a problem right now because there's no drivers with both
a detach and a ii_reconfig callback.
2006-03-27 21:50:45 +00:00
dyoung
bf0b9fa559 Fix my typo in ath(4)'s radiotap presence field (receive direction)
so that the signal and noise are in dB, not dBm.  Since dBm signal
and noise come before the antenna field, the capture fields were
in the wrong order.  That made for some astonishing (and wrong)
radiotap captures.  dB signal and noise come after the antenna
field, so everything is in the right order, now.
2006-03-27 21:41:23 +00:00
dyoung
448664e102 Use __arraycount(). 2006-03-27 21:27:02 +00:00
bouyer
5aee9837e8 Add a comment saying why p can't be NULL here. Coverity ID 764. 2006-03-27 21:25:21 +00:00
dyoung
321a3122bb Per discussion on source-changes@, add __arraycount(array) for
counting the number of elements in a static array, using the idiom,
sizeof(array)/sizeof(array[0]).

XXX This may move in the future, but this is a safe place to put
XXX it for use in the kernel.
2006-03-27 21:18:33 +00:00
bouyer
03999c340c For unknown CPU, if family >= CPU_MAXFAMILY set family to CPU_MINFAMILY instead
of CPU_MAXFAMILY. This effectively causes to downgrade to i386 class
instead of a nonexistant class, and overrunning  classnames[] by one.
Coverity ID 1472.
2006-03-27 20:59:35 +00:00
martin
d6d75eaf5d KASSERT that the returned file id length from VPTOFH is <= the
maximum allowed value (_VFS_MAXFIDSZ).
2006-03-27 20:20:45 +00:00
aymeric
1adab2b4e3 as far as control registers are concerned, the A1200 behaves the same as the
A4000.  This allows the use of ATAPI drives on the A1200.
Idesc can really rest in peace now.
2006-03-27 19:35:33 +00:00
shige
ff41ffc530 Add waits after bus_space_write. 2006-03-27 19:03:50 +00:00
bouyer
be6fc949c1 MCLAIM() mbufs allocated here. 2006-03-27 18:45:03 +00:00
he
50ea083318 The -Wno-packed switch is a gcc3+ thing, so place it where it won't
be picked up by gcc 2.95.3.  Fixes build problem for vax.
2006-03-27 11:50:08 +00:00
ghen
5f73509dc3 Document the defaultroute6 rc.conf variable and the /etc/mygate6 file in
/etc/defaults/rc.conf, /etc/mtree/special, and rc.conf(5).  Ok with wiz.
2006-03-27 10:07:07 +00:00
tron
7a28db2210 Fix build problem caused by last commit. 2006-03-27 10:02:37 +00:00
christos
7dc4aac2d8 Fix memory leak. 2006-03-27 01:09:11 +00:00
agc
6e1f35f92e minor cleanup in preparation for porting the NetBSD iSCSI target to Solaris 9. 2006-03-26 23:34:06 +00:00
christos
fbe98ede0f Coverity CID 2763: Add more checks for value==NULL. 2006-03-26 23:12:48 +00:00
christos
48ce3c5d75 Coverity CID 2764: Avoid null reference 2006-03-26 23:10:26 +00:00
christos
3c0ef79b7f Coverity CID 2766: Don't leak memory. 2006-03-26 23:06:45 +00:00
christos
072667be1c Coverity CID 114: If we did not find any symbol table entries, return an
error.
2006-03-26 23:00:35 +00:00
christos
9a25d0519d Coverity CID 115: Don't leak memory 2006-03-26 22:58:44 +00:00
christos
d4aabd7a1f Coverity CID 1202: Always return on EOF, otherwise we would try to use
ctab[-1].
2006-03-26 22:50:48 +00:00
christos
2edd64ae3e Coverity CID 927: Check for NULL before de-referencing. 2006-03-26 22:35:07 +00:00
christos
ea28a203cf Coverity CID 2361: Avoid possible NULL deref. 2006-03-26 22:20:04 +00:00
christos
600a182b2f Coverity CID 2607: Although use after free is impossible here, clarify code. 2006-03-26 22:15:21 +00:00
christos
d20b033359 Coverity CID 1362: Allocate one more element to appease coverity. 2006-03-26 22:08:59 +00:00
bouyer
f2b8c717e8 Adapt to xenbus changes; add a proper autoconf detach callback and
handle state change to Closing. We can now dynamically attach/detach
block devices.
2006-03-26 22:05:06 +00:00
christos
f3acb4a69b Coverity CID 1757: Don't leak memory 2006-03-26 22:04:14 +00:00
christos
4820f3f28c Coverity CID 1758: Unconfuse coverity about memory leak. 2006-03-26 22:02:59 +00:00