MFC r203449:

Implement poll method for atapicam.
It is not perfect, but better then nothing.
This commit is contained in:
Alexander Motin 2010-02-14 19:56:42 +00:00
parent 34cbb135e7
commit ee22e37df5

View file

@ -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