summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2010-02-03 21:45:09 +0000
committermav <mav@FreeBSD.org>2010-02-03 21:45:09 +0000
commitd9e272e1f97fc8d4c3178cf2b78b09165ec68b3a (patch)
treeefa636a681a7b4fde3f78c4ebae577c192e984a1
parent98d8ec0d166676047ef3a7b28510b7edc798e2d4 (diff)
downloadFreeBSD-src-d9e272e1f97fc8d4c3178cf2b78b09165ec68b3a.zip
FreeBSD-src-d9e272e1f97fc8d4c3178cf2b78b09165ec68b3a.tar.gz
Implement poll method for atapicam.
It is not perfect, but better then nothing.
-rw-r--r--sys/dev/ata/atapi-cam.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c
index 2ed54e7..e5b002a8 100644
--- a/sys/dev/ata/atapi-cam.c
+++ b/sys/dev/ata/atapi-cam.c
@@ -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
OpenPOWER on IntegriCloud