dyoung
cd6e1fbf91
Expand PMF_FN_* macros.
2010-01-08 19:53:10 +00:00
haad
f5b48500f1
Add support for DIOCGDISKINFO to disk like device drivers. Change
...
partutil.c::getdiskinfo to use it to get disk geometry info.
Use DIOCGWEDGEINFO ioctl to get information about partition size, if disk
driver doesn't support it use old DIOCGDINFO. This patch adds support for
wedge like devices(lvm logical volumes, ZFS zvol partitions) to newfs and
other tools.
No objections on tech-userlevel@.
2009-06-05 21:52:31 +00:00
cegger
8a46564d1d
struct cfdata * -> cfdata_t, no functional changes intended.
2009-05-12 08:44:19 +00:00
yamt
70de973662
g/c BUFQ_FOO() macros and use bufq_foo() directly.
2009-01-13 13:33:58 +00:00
mlelstv
0f2eef0070
fdcintr1 requires the mutex to be held.
2008-12-29 12:16:52 +00:00
tsutsui
3cf9bfd3aa
Set all default geometry parameters (not only secpercyl and secsize)
...
before readdisklabel(9) on DIOCGDINFO so that we can get correct
media size via the ioctl. (usually floppy doesn't have a real disklabel)
Tested on i386 with 1.44M floppy.
2008-12-24 16:56:28 +00:00
christos
9a5d3f2817
replace bitmask_snprintf(9) with snprintb(3)
2008-12-16 22:35:21 +00:00
plunky
fcf1772a80
after the "struct disk" is finished with, it should be
...
destroyed with disk_destroy(9) to stave off LOCKDEBUG
panics.
2008-05-03 08:23:41 +00:00
ad
39f45b13ce
- If x86, trust the nvram and elminate long probe delays.
...
- Update for amd64.
2008-04-30 23:02:43 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
cegger
09b1b08c50
make this build with FD_DEBUG
2008-04-11 19:16:44 +00:00
mlelstv
23aa31d043
PPC systems predating prep and running the mvmeppc port
...
have compatible hardware.
2008-03-29 09:01:35 +00:00
cube
bb192d4cfd
Split device_t and softc for the ... wait for it ... [air quotes] MI
...
variant of fdc(4)/fd(4). Other cosmetic changes as appropriate.
2008-03-16 00:58:56 +00:00
dyoung
212fa79969
Suspend, resume, detach.
...
Use mutex(9) and condvar(9) instead of splbio(9)/splx(9) and
tsleep(9)/wakeup(9).
Use device_t and accessors. Use aprint_*_dev().
2008-02-22 23:40:49 +00:00
dyoung
3d8a594471
Let the compiler decide: inline -> static, register -> .
2008-01-31 18:45:45 +00:00
dyoung
8c145c8134
Cosmetic: constify, KNF, use device_t and accessors, use
...
aprint_normal_dev() instead of printf("%s: ...", dv->dv_xname).
2008-01-31 18:32:51 +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
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
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
jnemeth
f587e8e88c
add support for devctl properties
2007-03-08 23:23:45 +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
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
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +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
37fbc95466
add missing initializer
2006-08-30 01:27:56 +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
39cd836ee1
Use device_unit().
2006-03-28 17:38:24 +00:00
thorpej
6e53f1366a
Use device_parent().
2006-03-25 23:14:58 +00:00
yamt
7b826aac85
initialize necessary members of struct buf. PR/32462 from Reinoud Zandijk.
2006-01-06 09:21:44 +00:00
yamt
690d424f28
- add simple functions to allocate/free a buffer for i/o.
...
- make bufpool static.
2006-01-04 10:13:05 +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
christos
2709ce754e
Fix compilation with FD_DEBUG.
2005-07-30 14:49:35 +00:00
christos
57fa3798ac
sprinkle const.
2005-05-29 22:12:37 +00:00
perry
18db93c7f6
de-__P
2005-02-04 02:10:35 +00:00
drochner
12ff682534
Whitespace police. The rest remains crap.
2005-02-01 20:33:58 +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
yamt
22399b45d0
change some members of struct buf from long to int.
...
ride on 2.0H.
2004-09-18 16:40:11 +00:00
drochner
edb77e2a6d
include "locators.h" explicitely where it is needed, so that
...
it can be removed in the isavar.h header eventually
2004-09-14 17:38:30 +00:00
thorpej
6c0c39322a
Wrap a noisy probe message in FD_DEBUG.
2004-06-04 01:12:04 +00:00
keihan
b8702f530b
netbsd.org -> NetBSD.org
...
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean". Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
mycroft
c82b47f9bc
Fix a non-fatal race condition.
2003-09-27 15:56:03 +00:00
mycroft
864b96269c
Modify the fdcattach() interface again, splitting it into two parts, so that
...
DRQ allocation is done earlier.
2003-09-25 19:06:19 +00:00
mycroft
516d857707
Do fd probing after interrupts are enabled, and use tsleep() for delays.
...
Also try to accept a recalibrate interrupt to terminate the delay -- but that
doesn't seem to work reliably, so do a 2s timeout as well.
2003-09-25 01:05:06 +00:00
mycroft
df8e298ddb
Small changes -- if your controller clears DRV_BUSY when recalibrate completes,
...
you get lucky and the probe is faster. A more complete fix will require making
the probe use interrupts, since there is no reliable way to poll.
2003-09-23 21:36:07 +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
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