* virtio.c
* - Core
*/
-#define DEBUG 1
+#define DEBUG 0
#define VERSION 0x100
#include <acess.h>
#include <modules.h>
// Register IRQ Handler
IRQ_AddHandler(IRQ, VirtIO_IRQHandler, ret);
- Uint8 isr = inb(IOBase + VIRTIO_REG_ISRSTS);
- LOG("isr = %x", isr);
+ LOG("isr = %x", inb(IOBase + VIRTIO_REG_ISRSTS));
// Start
outb(IOBase + VIRTIO_REG_DEVSTS, VIRTIO_DEVSTS_DRIVER_OK);
if( !Queue->NoAutoRel )
{
+ LOG("Releasing");
// Return the buffer to the avaliable pool
VirtIO_ReleaseBuffer(&Queue->Buffers[qent]);
if(Queue->NextUsedPop == UsedIdx)
queue->LastSeenUsed ++;
VirtIO_int_ProcessUsedList(Dev, queue, idx);
}
+ LOG("- Done");
}
}