Date: Wed, 3 Feb 2010 21:45:09 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r203449 - head/sys/dev/ata Message-ID: <201002032145.o13Lj9jC016938@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002032145.o13Lj9jC016938>