Print this page
3644 Add virtio-net support into the Illumos
Reviewed by: Alexey Zaytsev, alexey.zaytsev@gmail.com
Reviewed by: Yuri Pankov, yuri.pankov@nexenta.com
Reviewed by: David Hoppner, 0xffea@gmail.com

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/virtio/virtiovar.h
          +++ new/usr/src/uts/common/io/virtio/virtiovar.h
↓ open down ↓ 176 lines elided ↑ open up ↑
 177  177                  unsigned int index, uint64_t value);
 178  178  
 179  179  struct virtqueue *virtio_alloc_vq(struct virtio_softc *sc,
 180  180                  unsigned int index, unsigned int size,
 181  181                  unsigned int indirect_num, const char *name);
 182  182  void virtio_free_vq(struct virtqueue *);
 183  183  void virtio_reset(struct virtio_softc *);
 184  184  struct vq_entry *vq_alloc_entry(struct virtqueue *vq);
 185  185  void vq_free_entry(struct virtqueue *vq, struct vq_entry *qe);
 186  186  uint_t vq_num_used(struct virtqueue *vq);
      187 +unsigned int virtio_ve_indirect_available(struct vq_entry *qe);
 187  188  
 188  189  void virtio_stop_vq_intr(struct virtqueue *);
 189  190  void virtio_start_vq_intr(struct virtqueue *);
 190  191  
 191  192  void virtio_ve_add_cookie(struct vq_entry *qe, ddi_dma_handle_t dma_handle,
 192  193      ddi_dma_cookie_t dma_cookie, unsigned int ncookies, boolean_t write);
 193  194  void virtio_ve_add_indirect_buf(struct vq_entry *qe, uint64_t paddr,
 194  195      uint32_t len, boolean_t write);
 195  196  void virtio_ve_set(struct vq_entry *qe, uint64_t paddr, uint32_t len,
 196  197                  boolean_t write);
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX