chs
cbab9cadce
split device_t/softc for all remaining drivers.
...
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
matt
1d7f24ead8
Change old-style function defintions to C89 prototypes.
...
Approved by releng.
2012-02-12 16:34:06 +00:00
para
89c9828deb
converting extent(9) from malloc(9) to kmem(9)
...
preceding kmem-vmem-pool-uvm patch
releng@ acknowledged
2012-01-27 18:52:47 +00:00
tsutsui
c22ffc3803
Split device_t/softc of i82586. No crash on TME emulating sun2.
2011-06-03 16:28:40 +00:00
chuck
e7c4ab004c
udpate license clauses on my code to match the new-style BSD licenses.
...
remove no-longer-valid wustl email address for me.
based on diff that rmind@ sent me.
no functional change with this commit.
2011-02-01 19:36:24 +00:00
matt
2242c3b6b9
Use device_private
2010-12-11 18:12:45 +00:00
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