ad
610bc1e5aa
Don't pass a buffer to physio(), let it be allocated dynamically.
...
This leaves only scsipi and atapi doing the same.
2009-05-18 20:41:57 +00:00
cegger
529e91fca1
struct device * -> device_t, no functional changes intended.
2009-05-12 14:16:35 +00:00
cegger
32c4940900
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 12:10:29 +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
b0e5b3dc77
- use device_lookup to get device_t
...
- use device_lookup_private to get softc
- ansify
2008-06-12 21:45:39 +00:00
cegger
3e484e6172
- use device_lookup_private to get softc
...
- ansify
2008-06-11 18:46:24 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
1b044f414a
use aprint_*_dev and device_xname
2008-04-08 07:35:35 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
ad
c97e9c4ea7
brelse() stragglers.
2007-10-08 20:12:05 +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
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
d14a7576fc
Fix spllowersoftclock() fallout.
2007-02-16 13:42:29 +00:00
reinoud
43061c75ae
Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
...
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.
OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
cube
22974bb68b
Complete initializers, teach drivers that we moved from struct proc to
...
struct lwp, sprinkle some needed const qualifiers.
2007-01-13 18:46:37 +00:00
cube
8307daf6e0
Make it compile.
2007-01-10 21:18:44 +00:00
elad
2867b68bc3
integrate kauth.
2006-05-14 21:42:26 +00:00
blymn
3c0adb7d99
Make i/o statistics collection more generic, include tape drives and
...
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
thorpej
92c7bba3df
Use device_private().
2006-03-29 06:28:38 +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
246504f91c
Use device_parent().
2006-03-25 22:55:55 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +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
nathanw
fcb8b1675d
Add a final newline.
2005-03-11 23:41:02 +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
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
thorpej
8657dbc0c8
Remove the last vestiges of COMPAT_NOLABEL. It's been 10 years; label
...
your disks already.
2004-08-28 17:45:24 +00:00
wiz
3f9411f688
Spell removable with only two es. Inspired by jmc@openbsd.
2004-04-19 12:44:09 +00:00
wiz
f05e6f1a3a
occured -> occurred. From Peter Postma.
2004-02-24 15:12:51 +00:00
wiz
d88f7b1d62
boundary, not boundry. Inspired by Tom Cosgrove.
2003-11-02 10:31:06 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem
a62911e9d9
add missing __KERNEL_RCSID() and RCSID comment
2003-07-14 15:40:04 +00:00
gmcgarry
473eb46745
Port hp300 driver for HPIB/GPIB disks to MI gpib framework.
2003-06-02 03:53:02 +00:00
gmcgarry
0f9683761f
Port hp300 driver for magnetic tapes to MI gpib framework.
2003-06-02 03:52:24 +00:00
gmcgarry
c7fc491b48
Port hp300 driver for cartridge-style tapes to MI gpib framework.
2003-06-02 03:51:52 +00:00
gmcgarry
ff33565165
Support block devices speaking CS80/SS80 protocol over gpib.
2003-06-02 03:51:04 +00:00
gmcgarry
5c3ec26c1a
First-go at hil-over-gpib. Doesn't do much.
2003-06-02 03:48:25 +00:00
gmcgarry
cb93fa6aac
Port the hp300 ppi driver to the MI gpib framework.
2003-06-02 03:47:09 +00:00
gmcgarry
12379e3ba8
GPIB framework.
2003-06-02 03:45:41 +00:00