Up to [cvs.NetBSD.org] / src / sys / dev / ic
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: netbsd-5-base
Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 23 21:00:06 2008 UTC (15 years, 5 months ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-5-base,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-1-RELEASE,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20091211,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Branch point for: nick-hppapmap,
netbsd-5-0,
netbsd-5,
matt-nb5-mips64
Changes since 1.18: +82 -59
lines
Diff to previous 1.18 (colored)
Change mfi_mgmt() to take a mfi_ccb and scsipi_xfer as argument, as mfi_scsi_io does. Do not tsleep in mfi_mgmt waiting for completion; let the caller handle it. If mfi_mgmt() is called with a non-NULL scsipi_xfer have mfi_mgmt_done() wake it up, else wake up the mfi_ccb. mfi_poll()/mfi_post() is up to the caller. mfi_scsipi_request(): handle SCSI_SYNCHRONIZE_CACHE_10 as we do for other commmands: have mfi_mgmt() fill in the ccb, queue of poll the ccb and return. Introduce mfi_mgmt_internal() which behaves like mfi_mgmt() did (tsleep waiting for completion). Use it for internal and ioctl management requests. Fix kern/39297 from Greg Oster (mfi calls tsleep() from mfi_intr()), tested by Mark Davies.