aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2018-01-16 14:08:59 +0800
committerFam Zheng <famz@redhat.com>2018-02-08 09:22:03 +0800
commita3d9a352d4899a2f3567ae923069ee4a0959c0f4 (patch)
tree4c8db31e78fcf14d8a61611e1635eb6bfbfa7e54 /block
parent79d465839f6be12d614ee2bdf3514c5d645116ff (diff)
block: Move NVMe constants to a separate header
Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20180116060901.17413-8-famz@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/nvme.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/block/nvme.c b/block/nvme.c
index a487b4d381..e9d0e218fc 100644
--- a/block/nvme.c
+++ b/block/nvme.c
@@ -22,12 +22,7 @@
#include "block/block_int.h"
#include "trace.h"
-/* TODO: Move nvme spec definitions from hw/block/nvme.h into a separate file
- * that doesn't depend on dma/pci headers. */
-#include "sysemu/dma.h"
-#include "hw/pci/pci.h"
-#include "hw/block/block.h"
-#include "hw/block/nvme.h"
+#include "block/nvme.h"
#define NVME_SQ_ENTRY_BYTES 64
#define NVME_CQ_ENTRY_BYTES 16