svn commit: r203449 - head/sys/dev/ata

Alexander Motin mav at FreeBSD.org
Wed Feb 3 21:45:09 UTC 2010


Author: mav
Date: Wed Feb  3 21:45:09 2010
New Revision: 203449
URL: http://svn.freebsd.org/changeset/base/203449

Log:
  Implement poll method for atapicam.
  It is not perfect, but better then nothing.

Modified:
  head/sys/dev/ata/atapi-cam.c

Modified: head/sys/dev/ata/atapi-cam.c
==============================================================================
--- head/sys/dev/ata/atapi-cam.c	Wed Feb  3 21:41:42 2010	(r203448)
+++ head/sys/dev/ata/atapi-cam.c	Wed Feb  3 21:45:09 2010	(r203449)
@@ -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-all mailing list