svn commit: r203900 - stable/8/sys/dev/ata
Alexander Motin
mav at FreeBSD.org
Sun Feb 14 19:56:43 UTC 2010
Author: mav
Date: Sun Feb 14 19:56:42 2010
New Revision: 203900
URL: http://svn.freebsd.org/changeset/base/203900
Log:
MFC r203449:
Implement poll method for atapicam.
It is not perfect, but better then nothing.
Modified:
stable/8/sys/dev/ata/atapi-cam.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/netinet/ (props changed)
Modified: stable/8/sys/dev/ata/atapi-cam.c
==============================================================================
--- stable/8/sys/dev/ata/atapi-cam.c Sun Feb 14 19:56:05 2010 (r203899)
+++ stable/8/sys/dev/ata/atapi-cam.c Sun Feb 14 19:56:42 2010 (r203900)
@@ -682,8 +682,12 @@ action_invalid:
static void
atapi_poll(struct cam_sim *sim)
{
- /* do nothing - we do not actually service any interrupts */
- printf("atapi_poll called!\n");
+ struct atapi_xpt_softc *softc =
+ (struct atapi_xpt_softc*)cam_sim_softc(sim);
+
+ mtx_unlock(&softc->state_lock);
+ ata_interrupt(softc->ata_ch);
+ mtx_lock(&softc->state_lock);
}
static void
More information about the svn-src-stable-8
mailing list