raw/octeontx2_ep: add build infra and device probe
[dpdk.git] / drivers / raw / octeontx2_ep / otx2_ep_rawdev.h
diff --git a/drivers/raw/octeontx2_ep/otx2_ep_rawdev.h b/drivers/raw/octeontx2_ep/otx2_ep_rawdev.h
new file mode 100644 (file)
index 0000000..7ae7a08
--- /dev/null
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2019 Marvell International Ltd.
+ */
+
+#ifndef _OTX2_EP_RAWDEV_H_
+#define _OTX2_EP_RAWDEV_H_
+
+#define PCI_DEVID_OCTEONTX2_EP_VF    0xB203  /* OCTEON TX2 EP mode */
+
+/* SDP EP VF device */
+struct sdp_device {
+       /* PCI device pointer */
+       struct rte_pci_device *pci_dev;
+       uint16_t vf_num;
+
+       /* Memory mapped h/w address */
+       uint8_t *hw_addr;
+
+};
+
+#endif /* _OTX2_EP_RAWDEV_H_ */