mhitch
f60765db47
Use the physical address from the bus_dmamap_load() map, not the one from
...
the bus_dmamem_alloc(). Fixes iop(4) on alpha, and possibly sparc64 as
described in the thread
http://mail-index.netbsd.org/port-sparc64/2008/06/04/msg000413.html .
2008-09-14 18:12:16 +00:00
gmcgarry
0de5da9678
Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
...
preprocessor macros.
2008-09-08 23:36:53 +00:00
tsutsui
1f459d82b5
Replace device_lookup() with device_lookup_private() on getting softc
...
for future device_t/softc spilt.
2008-06-08 12:43:51 +00:00
ad
536e41c542
Fix up bus_dmamap_sync calls.
2008-06-08 11:58:50 +00:00
ad
e071d39c84
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
...
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
2008-05-05 17:11:16 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
0e50a9464d
use aprint_*_dev and device_xname
2008-04-06 20:25:59 +00:00
ad
598ab03ad0
Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written
...
for Solaris.
2007-12-05 07:06:50 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
ad
88ab7da936
Merge some of the less invasive changes from the vmlocking branch:
...
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
ad
e5bca80a53
- Merge changes from the vmlocking branch.
...
- Eliminate opt_i2o.h, since I2OVERBOSE is gone.
2007-06-16 12:32:12 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
ad
9abeea588a
Replace some uses of lockmgr() / simplelocks.
2007-02-15 15:40:50 +00:00
elad
432c309931
Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
...
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.
Discussed on tech-security@ and tech-kern@. Okay tls@.
2006-12-02 03:10:42 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
elad
87d047b739
Replace securelevel checks with kauth(9) calls.
2006-11-08 00:17:09 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
christos
1f689bbab1
fix empty if.
2006-10-04 15:52:35 +00:00
christos
e6aa223b06
- fix initializers
...
- comment out dead code.
2006-08-30 17:07:33 +00:00
christos
f0f1731b24
Acting as Elad's keyboard:
...
Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.
input and okay ad@
2006-08-23 15:44:29 +00:00
christos
31535ad130
Coverity CID 1081: Avoid NULL deref.
2006-04-14 20:16:02 +00:00
thorpej
8fc3572573
Use device_private().
2006-03-29 06:41:24 +00:00
thorpej
39cd836ee1
Use device_unit().
2006-03-28 17:38:24 +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
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
drochner
e6a178f21f
kill a number of autoconf submatch functions which follow the
...
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
then fail
else
ask device match function
This is handled by config_stdsubmatch() now.
2005-08-25 22:33:18 +00:00
drochner
fa3cb84d62
replace the "locdesc_t" structure carrying the number of locators
...
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
2005-08-25 18:35:38 +00:00
christos
06059a46a3
avoid variable shadowing.
2005-05-30 04:36:52 +00:00
perry
f31bd063e9
nuke trailing whitespace
2005-02-27 00:26:58 +00:00
drochner
5f7699c047
oops, another typo, should fix report by taya
2004-09-15 15:49:10 +00:00
drochner
f3872a35ff
actually pass the locators,
...
should fix panic reported by Shin'ichiro TAYA
2004-09-15 09:10:42 +00:00
drochner
96b589fc18
a round of autoconf cleanup:
...
-convert submatch() style functions (passed to config_search() or
config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
on "locators.h"
2004-09-13 12:55:47 +00:00
itojun
aca4c091d3
sprintf -> snprintf
2004-04-22 00:17:10 +00:00
ad
ee5a33f5aa
Match Promise controllers.
2003-12-09 19:43:53 +00:00
simonb
b6abb6ab1d
Remove some assigned-to but otherwise unused variables.
2003-10-30 01:58:17 +00:00
mycroft
4f4b36f2f3
Fix the previous differently.
2003-10-25 20:26:25 +00:00
christos
8bfd5e3292
Fix uninitialized variable warnings
2003-10-25 18:34:14 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
wiz
1ffa7b76c4
DMA, not dma nor Dma.
2003-05-03 18:10:37 +00:00
simonb
6af195bf29
Remove variable that is only assigned too but not referenced.
2003-01-20 04:25:46 +00:00
thorpej
41978f782e
Merge the nathanw_sa branch.
2003-01-18 21:21:28 +00:00
thorpej
72a7af27b0
Use aprint_normal() in cfprint routines.
2003-01-01 00:10:15 +00:00
ad
42c8a17c80
Fix typo.
2002-12-11 13:02:31 +00:00
ad
57d787eeac
- Handle DPT ioctls from native NetBSD binaries.
...
- SCSI targets could disapper mid-way through autoconfig if the board
notifed us of a changed LCT at the wrong time. Fix that.
2002-12-06 11:22:25 +00:00
ad
122b0bd68f
Cosmetic changes.
2002-11-15 13:51:29 +00:00
msaitoh
f321ab1a02
Add support for Adaptec 200[05]S
...
reviewed by Andrew Doran
2002-11-08 05:47:35 +00:00
jdolecek
e0cc03a09b
merge kqueue branch into -current
...
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
ad
0d6011b266
PR 18760: don't issue I2O_EXEC_IOP_CLEAR to AMI boards, since some
...
firmware revisions can't handle it.
2002-10-22 13:42:33 +00:00
thorpej
6c88de3b53
Introduce a new routine, config_match(), which invokes the
...
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00