]> Pileus Git - ~andy/linux/blobdiff - include/uapi/linux/virtio_pci.h
virtio_pci: better macro exported in uapi
[~andy/linux] / include / uapi / linux / virtio_pci.h
index ea66f3f60d63f7db3234c2f75058826af072a771..e5ec1caab82aa70811a9d155e3e90dddfecb853c 100644 (file)
@@ -80,7 +80,9 @@
 
 /* The remaining space is defined by each driver as the per-driver
  * configuration space */
-#define VIRTIO_PCI_CONFIG(dev)         ((dev)->msix_enabled ? 24 : 20)
+#define VIRTIO_PCI_CONFIG_OFF(msix_enabled)    ((msix_enabled) ? 24 : 20)
+/* Deprecated: please use VIRTIO_PCI_CONFIG_OFF instead */
+#define VIRTIO_PCI_CONFIG(dev) VIRTIO_PCI_CONFIG_OFF((dev)->msix_enabled)
 
 /* Virtio ABI version, this must match exactly */
 #define VIRTIO_PCI_ABI_VERSION         0