>From 1905fd5c8eda618c5b15872d0070e73d193bdc08 Mon Sep 17 00:00:00 2001
From: Vadim Rozenfeld <[email protected]>
Date: Mon, 2 May 2011 13:32:36 +0300
Subject: [COMMIT] [viostor] define msi-x capability structure
---
viostor/virtio_stor.h | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/viostor/virtio_stor.h b/viostor/virtio_stor.h
index 85cf090..a129c5c 100644
--- a/viostor/virtio_stor.h
+++ b/viostor/virtio_stor.h
@@ -136,6 +136,32 @@ VirtIoInterrupt(
IN PVOID DeviceExtension
);
+#ifdef MSI_SUPPORTED
+#ifndef PCIX_TABLE_POINTER
+typedef struct {
+ union {
+ struct {
+ ULONG BaseIndexRegister :3;
+ ULONG Reserved :29;
+ };
+ ULONG TableOffset;
+ };
+} PCIX_TABLE_POINTER, *PPCIX_TABLE_POINTER;
+#endif
+#ifndef PCI_MSIX_CAPABILITY
+typedef struct {
+ PCI_CAPABILITIES_HEADER Header;
+ struct {
+ USHORT TableSize :11;
+ USHORT Reserved :3;
+ USHORT FunctionMask :1;
+ USHORT MSIXEnable :1;
+ } MessageControl;
+ PCIX_TABLE_POINTER MessageTable;
+ PCIX_TABLE_POINTER PBATable;
+} PCI_MSIX_CAPABILITY, *PPCI_MSIX_CAPABILITY;
+#endif
+#endif
#endif ___VIOSTOR__H__
--
1.7.0.2.msysgit.0
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html