| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Virtio PCI driver - legacy device support |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 11 | 12 | * Anthony Liguori <aliguori@us.ibm.com> |
|---|
| 12 | 13 | * Rusty Russell <rusty@rustcorp.com.au> |
|---|
| 13 | 14 | * Michael S. Tsirkin <mst@redhat.com> |
|---|
| 14 | | - * |
|---|
| 15 | | - * This work is licensed under the terms of the GNU GPL, version 2 or later. |
|---|
| 16 | | - * See the COPYING file in the top-level directory. |
|---|
| 17 | | - * |
|---|
| 18 | 15 | */ |
|---|
| 19 | 16 | |
|---|
| 20 | 17 | #include "virtio_pci_common.h" |
|---|
| .. | .. |
|---|
| 52 | 49 | { |
|---|
| 53 | 50 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); |
|---|
| 54 | 51 | void __iomem *ioaddr = vp_dev->ioaddr + |
|---|
| 55 | | - VIRTIO_PCI_CONFIG(vp_dev) + offset; |
|---|
| 52 | + VIRTIO_PCI_CONFIG_OFF(vp_dev->msix_enabled) + |
|---|
| 53 | + offset; |
|---|
| 56 | 54 | u8 *ptr = buf; |
|---|
| 57 | 55 | int i; |
|---|
| 58 | 56 | |
|---|
| .. | .. |
|---|
| 67 | 65 | { |
|---|
| 68 | 66 | struct virtio_pci_device *vp_dev = to_vp_device(vdev); |
|---|
| 69 | 67 | void __iomem *ioaddr = vp_dev->ioaddr + |
|---|
| 70 | | - VIRTIO_PCI_CONFIG(vp_dev) + offset; |
|---|
| 68 | + VIRTIO_PCI_CONFIG_OFF(vp_dev->msix_enabled) + |
|---|
| 69 | + offset; |
|---|
| 71 | 70 | const u8 *ptr = buf; |
|---|
| 72 | 71 | int i; |
|---|
| 73 | 72 | |
|---|