~aglenyoung/+junk/kvm-guest-drivers-windows

« back to all changes in this revision

Viewing changes to VirtIO/VirtIOPCI.c

  • Committer: Vadim Rozenfeld
  • Date: 2010-10-01 11:04:00 UTC
  • Revision ID: git-v1:0f7574bdc663aba3ae7f2a8addb2b3a4f34fdd76
[virtio] From: Yan Vugenfirer <yvugenfi@redhat.com> Revert published indexes

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
        return !!(ulValue & (1 << uFeature));
98
98
}
99
99
 
100
 
bool VirtIODeviceHasFeature(unsigned uFeature)
101
 
{
102
 
        if (uFeature == VIRTIO_F_PUBLISH_INDICES) return TRUE;
103
 
        return FALSE;
104
 
}
105
 
 
106
100
/////////////////////////////////////////////////////////////////////////////////////
107
101
//
108
102
// Reset device
206
200
ULONG VirtIODeviceISR(VirtIODevice * pVirtIODevice)
207
201
{
208
202
        ULONG status;
209
 
        DPrintf(6, ("%s\n", __FUNCTION__));
 
203
        DPrintf(4, ("%s\n", __FUNCTION__));
210
204
 
211
205
        status = ReadVirtIODeviceByte(pVirtIODevice->addr + VIRTIO_PCI_ISR);
212
206
 
334
328
        struct virtio_pci_vq_info *info = vq->priv;
335
329
        return info->num;
336
330
}
 
331
 
 
332
void* VirtIODeviceDetachUnusedBuf(struct virtqueue *vq)
 
333
{
 
334
    return vring_detach_unused_buf(vq);
 
335
}