static inline uint16_t vring_avail_idx(VirtQueue *vq)

{

    hwaddr pa;

    pa = vq->vring.avail + offsetof(VRingAvail, idx);

    return virtio_lduw_phys(vq->vdev, pa);

}

static inline uint16_t vring_avail_idx(VirtQueue *vq)

{

    hwaddr pa;

    pa = vq->vring.avail + offsetof(VRingAvail, idx);

    return virtio_lduw_phys(vq->vdev, pa);

}

static inline uint16_t FUNC_0(VirtQueue *vq)

{

    hwaddr pa;

    pa = vq->vring.avail + offsetof(VRingAvail, idx);

    return virtio_lduw_phys(vq->vdev, pa);

}

static inline uint16_t FUNC_0(VirtQueue *vq)
{ hwaddr pa; pa = vq->vring.avail + offsetof(VRingAvail, idx); return virtio_lduw_phys(vq->vdev, pa); }