Skip to content

Commit

Permalink
hw/block/nvme: consolidate header files
Browse files Browse the repository at this point in the history
In preparation for moving the nvme device into its own subtree, merge
the header files into one.

Also add missing copyright notice and add list of authors with
substantial contributions.

Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
  • Loading branch information
birkelund committed May 17, 2021
1 parent 42821d2 commit d88e784
Show file tree
Hide file tree
Showing 8 changed files with 348 additions and 391 deletions.
1 change: 0 additions & 1 deletion hw/block/nvme-dif.c
Expand Up @@ -15,7 +15,6 @@
#include "qapi/error.h"
#include "trace.h"
#include "nvme.h"
#include "nvme-dif.h"

uint16_t nvme_check_prinfo(NvmeNamespace *ns, uint16_t ctrl, uint64_t slba,
uint32_t reftag)
Expand Down
63 changes: 0 additions & 63 deletions hw/block/nvme-dif.h

This file was deleted.

1 change: 0 additions & 1 deletion hw/block/nvme-ns.c
Expand Up @@ -28,7 +28,6 @@

#include "trace.h"
#include "nvme.h"
#include "nvme-ns.h"

#define MIN_DISCARD_GRANULARITY (4 * KiB)

Expand Down
229 changes: 0 additions & 229 deletions hw/block/nvme-ns.h

This file was deleted.

1 change: 0 additions & 1 deletion hw/block/nvme-subsys.c
Expand Up @@ -19,7 +19,6 @@
#include "block/accounting.h"
#include "hw/pci/pci.h"
#include "nvme.h"
#include "nvme-subsys.h"

int nvme_subsys_register_ctrl(NvmeCtrl *n, Error **errp)
{
Expand Down
59 changes: 0 additions & 59 deletions hw/block/nvme-subsys.h

This file was deleted.

2 changes: 0 additions & 2 deletions hw/block/nvme.c
Expand Up @@ -162,8 +162,6 @@
#include "qemu/cutils.h"
#include "trace.h"
#include "nvme.h"
#include "nvme-ns.h"
#include "nvme-dif.h"

#define NVME_MAX_IOQPAIRS 0xffff
#define NVME_DB_SIZE 4
Expand Down

0 comments on commit d88e784

Please sign in to comment.