]> xenbits.xensource.com Git - seabios.git/commitdiff
virtio: remove unused vp_del_vq
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Jun 2015 06:40:30 +0000 (08:40 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Jul 2015 14:35:50 +0000 (16:35 +0200)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/virtio-pci.h

index 3054a13966443069e2bbc1e16efbf04d8c845d93..1b5c61da99cb4652bfcfa7143b06aa9ae90cac35 100644 (file)
@@ -234,17 +234,6 @@ void vp_set_status(struct vp_device *vp, u8 status);
 u8 vp_get_isr(struct vp_device *vp);
 void vp_reset(struct vp_device *vp);
 
-static inline void vp_del_vq(struct vp_device *vp, int queue_index)
-{
-   int ioaddr = GET_LOWFLAT(vp->ioaddr);
-
-   /* select the queue */
-   outw(queue_index, ioaddr + VIRTIO_PCI_QUEUE_SEL);
-
-   /* deactivate the queue */
-   outl(0, ioaddr + VIRTIO_PCI_QUEUE_PFN);
-}
-
 struct pci_device;
 struct vring_virtqueue;
 void vp_init_simple(struct vp_device *vp, struct pci_device *pci);