Implement poll method for atapicam.

It is not perfect, but better then nothing.
This commit is contained in:
Alexander Motin 2010-02-03 21:45:09 +00:00
parent fff784a8da
commit 8c38cd7ceb

View File

@ -682,8 +682,12 @@ atapi_action(struct cam_sim *sim, union ccb *ccb)
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