cegger
99747a8099
struct device * -> device_t, no functional changes intended.
2009-05-12 14:28:22 +00:00
cegger
d16a259fe3
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 13:15:24 +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
dsl
02cdf4d2c8
Remove all the __P() from sys (excluding sys/dist)
...
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
jnemeth
7a16c23c62
add a comment explaining how to regenerate mcadevs.h and mcadevs_data.h
2009-01-21 14:24:52 +00:00
christos
ea2d6ba697
Fix obvious errors in conversion to device_t from Wojciech Galazka
...
Please compile-test at least!
2009-01-20 20:49:51 +00:00
yamt
70de973662
g/c BUFQ_FOO() macros and use bufq_foo() directly.
2009-01-13 13:33:58 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
apb
96230fab84
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
...
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
christos
91ca465c78
device_t changes, pmf, minor knf.
2008-08-27 05:33:47 +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
martin
592397db3f
Move to standard TNF 2 clause license
2008-05-04 12:59:38 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
tsutsui
78a1d236b6
Split device_t/softc for MI ncr53c9x and some related devices,
...
with various cleanup.
2008-04-13 04:55:52 +00:00
tsutsui
7c06c0a3e8
Split device_t/softc for MI mb86960, with misc cosmetics.
2008-04-12 06:27:01 +00:00
cegger
1ef783cb7b
use aprint_*_dev and device_xname
2008-04-08 20:40:42 +00:00
tsutsui
d9941582bf
Split device_t/softc for le(4) and variants and misc cosmetic changes.
2008-04-04 12:25:06 +00:00
cube
607ead0ef4
Split device_t and softc for all com(4) devices (well, everything that
...
uses a com_softc backend). Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
cube
cf80f73d17
Split device_t and softc for the NE2000 Ethernet chip and all its variants
...
and attachments. Use device_t accessors, correct types, and ANSIfy when
appropriate.
2008-03-12 14:31:11 +00:00
dyoung
e4f3892584
Use pmf_device_register1() instead of shutdownhook_establish() to
...
register com_cleanup() as the shutdown hook.
Add a generic suspend routine. Suspend and resume com@isa.
Protect against dereferencing a NULL softc in comioctl().
Destroy both a mutex and a callout in com_detach().
Cosmetic: use aprint_*_dev(). Use PMF_FN_ARGS, PMF_FN_PROTO.
2008-02-29 07:02:04 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +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
eb171eaaa7
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:50:17 +00:00
ad
b5a9ff06f1
Replace some uses of lockmgr().
2007-07-21 19:51:47 +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
garbled
fa0b399b5b
regen
2007-04-12 18:00:17 +00:00
garbled
7917c11a42
Add the product defines for the cards I intend to write support for. It
...
seems like we should just add the product defines to all of them.
2007-04-12 18:00:05 +00:00
garbled
d3f6afef69
Remove the define of MCA_MAX_SLOTS from mcareg.h, and include
...
mca_machdep.h, because the maximum number of slots is inherently MD.
2007-04-11 18:32:19 +00:00
garbled
29fbd02006
Regen
2007-04-11 18:11:34 +00:00
garbled
6256d37223
Add a bunch of adapters from my rs6000 to this file
2007-04-11 18:11:15 +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
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
dogcow
2023789a40
More -Wunused fallout. sprinkle __unused when possible; otherwise, use the
...
do { if (&x) {} } while (/* CONSTCOND */ 0);
construct as suggested by uwe in <20061012224845.GA9449@snark.ptc.spbu.ru>.
2006-10-13 16:53:35 +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
514b3fccd7
fix initializer
2006-08-30 17:00:15 +00:00
christos
9d7a9c4079
fix initializers
2006-08-30 16:59:34 +00:00
christos
e9198d13b8
fix initializer.
2006-08-30 16:38:23 +00:00
gdamore
34537908ab
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
...
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.
Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.
This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.
Approved by core@. Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
thorpej
838ee1e0d9
Use device_private().
2006-03-29 06:51:47 +00:00
lukem
a1f606d3fd
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
...
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
perry
93124077ae
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:27:29 +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
49a3609892
kill some more simple submatch() functions, use config_stdsubmatch()
2005-08-26 11:20:33 +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
1cf5f6f64d
add const to a cast.
2005-05-30 04:30:56 +00:00
lukem
5e4045c6bb
add __KERNEL_RCSID
2005-05-24 05:14:37 +00:00