Commit 87844a30 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

nvme: move struct pci_id into nvme_internal.h



This doesn't need to be part of the public API. It is only used by the
NVMe quirk lookup tables.

Change-Id: I7662e333c70b7c5f814bd7c8a528b6bff1f0732e
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent aae6ee8c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -38,11 +38,4 @@

#define PCI_VENDOR_ID_INTEL		0x8086

struct pci_id {
	uint16_t	vendor_id;
	uint16_t	dev_id;
	uint16_t	sub_vendor_id;
	uint16_t	sub_dev_id;
};

#endif /* __PCI_IDS_H__ */
+7 −0
Original line number Diff line number Diff line
@@ -366,6 +366,13 @@ struct nvme_driver {
	TAILQ_HEAD(, nvme_controller)	attached_ctrlrs;
};

struct pci_id {
	uint16_t	vendor_id;
	uint16_t	dev_id;
	uint16_t	sub_vendor_id;
	uint16_t	sub_dev_id;
};

extern struct nvme_driver g_nvme_driver;

#define nvme_min(a,b) (((a)<(b))?(a):(b))