martin
f11c121338
Remove sparc specific code, use device properties instead.
2010-01-22 16:12:41 +00:00
cegger
7cf2991222
struct device * -> device_t, no functional changes intended.
2009-05-12 14:38:26 +00:00
cegger
d16a259fe3
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 13:15:24 +00:00
tsutsui
d779b85d3e
Remove extra whitespace added by a stupid tool.
...
XXX: more in src/sys/arch
2009-04-18 14:58:02 +00:00
cegger
e2cb85904d
bcopy -> memcpy
2009-03-18 17:06:41 +00:00
cegger
c363a9cb62
bzero -> memset
2009-03-18 16:00:08 +00:00
cegger
df7f595ecd
Ansify function definitions w/o arguments. Generated with sed.
2009-03-18 10:22:21 +00:00
dsl
82357f6d42
ANSIfy another 1261 function definitions.
...
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8
Change about 4500 of the K&R function definitions to ANSI ones.
...
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
yamt
70de973662
g/c BUFQ_FOO() macros and use bufq_foo() directly.
2009-01-13 13:33:58 +00:00
cegger
da1cef7418
cast to char to printf DISKPART
2009-01-12 08:16:27 +00:00
cegger
f51c42b9f0
make this compile
2008-12-17 19:09:56 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
tsutsui
bc6f8d1486
Split device_t/softc with misc cosmetic changes.
2008-07-06 13:29:50 +00:00
drochner
1a9e64b4a7
mechanical changes to use device_private() or device_lookup_private()
...
to get softcs, makes the code compile under the stricter type checking
introduced earlier today
2008-06-11 21:25:31 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
2ebebb8472
make this compile
2008-04-05 18:16:56 +00:00
cegger
1344fa8b25
use aprint_*_dev and device_xname
2008-04-05 16:06:12 +00:00
tsutsui
5147571380
Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes.
2008-04-04 16:00:57 +00:00
elad
08a754e331
It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.
...
Noted by dogcow@, thanks!
2008-02-06 12:13:47 +00:00
elad
6f361f7379
- There is no XYCMD_WRP -- forgot to remove it along with the XYCMD_RDP :)
...
- Add missing '}'
Noted by dogcow@, thanks!
2008-02-06 12:08:34 +00:00
elad
38012644ad
Properly classify kauth PASSTHRU requests.
...
Done with much help from chuck@, thanks!
2008-02-04 21:08:13 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
ad
2af68666da
Merge disk init changes from the vmlocking branch. These seperate init /
...
destroy of 'struct disk' from attach / detach.
2007-10-08 16:41:05 +00:00
ad
66fefd117b
It's not a good idea for device drivers to modify b_flags, as they don't
...
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +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
mrg
a4960a24c9
fix fall out from caddr_t changes.
2007-03-04 22:12:43 +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
cube
c262fb16a5
vmegeneric never saw the light of the source tree. After 7 years, I guess
...
nobody missed it.
2007-01-09 23:51:30 +00:00
elad
d5ebb97b46
Consistent usage of KAUTH_GENERIC_ISSUSER.
2007-01-04 18:44:45 +00:00
christos
06869f0ad3
don't call variables errno! including from userland breaks things!
2006-08-27 19:18:08 +00:00
ad
3029ac48c7
- Use the LWP cached credentials where sane.
...
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
yamt
66d08528ca
- include kauth.h for kauth_authorize_generic.
...
- wrap a long line.
2006-05-15 20:40:55 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
skrll
a9f4c28a3d
Fix a bunch of cast lvalues.
2006-05-10 06:24:02 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1
Use device_unit().
2006-03-28 17:38:24 +00:00
thorpej
dbf31290b3
Use device_parent().
2006-03-25 23:25:24 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
yamt
aec75b1cc6
- change the way to specify a bufq strategy. (by string rather than by number)
...
- rather than embedding bufq_state in driver softc,
have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
from sys/bufq.h to sys/bufq_impl.h.
(is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c. (not tested)
2005-10-15 17:29:10 +00:00
drochner
46ed4b50c4
s/locdesc_t/int/g
2005-08-26 12:42:11 +00:00
tsutsui
36ad8ac27a
Add const and fix for -Wshadow.
2005-06-03 22:01:01 +00:00
tsutsui
77ba4e3671
Add const.
2005-06-03 21:57:16 +00:00
perry
f31bd063e9
nuke trailing whitespace
2005-02-27 00:26:58 +00:00
perry
18db93c7f6
de-__P
2005-02-04 02:10:35 +00:00
yamt
05f25dcc2a
move buffer queue related stuffs from buf.h to their own header, bufq.h.
2004-10-28 07:07:35 +00:00
drochner
0e76692948
fix a botched function header,
...
should fix build problem reported by Tom Javen
2004-09-15 09:01:53 +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
drochner
f0a8ebbee2
avoid a questionable pointer type cast
2004-08-02 13:04:58 +00:00