virt-pci.c (c95e67bac42d7e671e6a2c14548b6a7f76e71235) virt-pci.c (6c85d6b653caeba2ef982925703cbb4f2b3b3163)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020 Intel Corporation
4 * Author: Johannes Berg <johannes@sipsolutions.net>
5 */
6#include <linux/module.h>
7#include <linux/pci.h>
8#include <linux/virtio.h>

--- 560 unchanged lines hidden (view full) ---

569{
570 struct virtqueue_info vqs_info[] = {
571 { "cmd", um_pci_cmd_vq_cb },
572 { "irq", um_pci_irq_vq_cb },
573 };
574 struct virtqueue *vqs[2];
575 int err, i;
576
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2020 Intel Corporation
4 * Author: Johannes Berg <johannes@sipsolutions.net>
5 */
6#include <linux/module.h>
7#include <linux/pci.h>
8#include <linux/virtio.h>

--- 560 unchanged lines hidden (view full) ---

569{
570 struct virtqueue_info vqs_info[] = {
571 { "cmd", um_pci_cmd_vq_cb },
572 { "irq", um_pci_irq_vq_cb },
573 };
574 struct virtqueue *vqs[2];
575 int err, i;
576
577 err = virtio_find_vqs_info(dev->vdev, 2, vqs, vqs_info, NULL);
577 err = virtio_find_vqs(dev->vdev, 2, vqs, vqs_info, NULL);
578 if (err)
579 return err;
580
581 dev->cmd_vq = vqs[0];
582 dev->irq_vq = vqs[1];
583
584 virtio_device_ready(dev->vdev);
585

--- 498 unchanged lines hidden ---
578 if (err)
579 return err;
580
581 dev->cmd_vq = vqs[0];
582 dev->irq_vq = vqs[1];
583
584 virtio_device_ready(dev->vdev);
585

--- 498 unchanged lines hidden ---