[PATCH 2/2] jnx: Introduce include/linux/jnx/pci_ids.h

From: Pantelis Antoniou
Date: Fri Oct 07 2016 - 11:20:36 EST


From: Rajat Jain <rajatjain@xxxxxxxxxxx>

Add this header to contain the PCI device IDs that we cannot add in
the linux pci_ids.h. This would contain PCI device IDs of
Juniper devices as well as any PCIe switches etc.

Signed-off-by: Rajat Jain <rajatjain@xxxxxxxxxxx>
Signed-off-by: Debjit Ghosh <dghosh@xxxxxxxxxxx>
Signed-off-by: Georgi Vlaev <gvlaev@xxxxxxxxxxx>
Signed-off-by: Guenter Roeck <groeck@xxxxxxxxxxx>
Signed-off-by: Mohammad Kamil <mkamil@xxxxxxxxxxx>
Signed-off-by: Shyamshankar Dharmarajan <shyamd@xxxxxxxxxxx>
Signed-off-by: Tom Kavanagh <tkavanagh@xxxxxxxxxxx>
[Ported from Juniper kernel]
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@xxxxxxxxxxxx>
---
include/linux/jnx/pci_ids.h | 66 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
create mode 100644 include/linux/jnx/pci_ids.h

diff --git a/include/linux/jnx/pci_ids.h b/include/linux/jnx/pci_ids.h
new file mode 100644
index 0000000..8c86aa8
--- /dev/null
+++ b/include/linux/jnx/pci_ids.h
@@ -0,0 +1,66 @@
+/*
+ * Juniper PCI ID(s) - for devices on Juniper Boards
+ *
+ * Rajat Jain <rajatjain@xxxxxxxxxxx>
+ * Copyright 2014 Juniper Networks
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+
+#ifndef __JNX_PCI_IDS_H__
+#define __JNX_PCI_IDS_H__
+
+#define PCI_VENDOR_ID_JUNIPER 0x1304
+
+/*
+ * PTX SAM FPGA, device ID as present on various Juniper boards, such as
+ * - Sangria FPC
+ * - Hendricks FPC
+ * - Sangria 24x10GE PIC
+ * - Gladiator FPC
+ */
+#define PCI_DEVICE_ID_JNX_SAM 0x0004
+
+/* Juniper Broadway ASIC family */
+#define PCI_DEVICE_ID_JNX_TF 0x003c
+#define PCI_DEVICE_ID_JNX_TL 0x003d
+#define PCI_DEVICE_ID_JNX_TQ 0x003e
+#define PCI_DEVICE_ID_JNX_OTN_FRAMER 0x0055
+#define PCI_DEVICE_ID_JNX_PE 0x005e
+#define PCI_DEVICE_ID_JNX_PF 0x005f /* Juniper Paradise ASIC */
+
+/* Juniper SAM FPGA - Omega SIB, Sochu SHAM, Gladiator SIB */
+#define PCI_DEVICE_ID_JNX_SAM_OMEGA 0x006a
+
+/* Juniper SAM FPGA - present on GLD FPC board */
+#define PCI_DEVICE_ID_JNX_SAM_X 0x006b
+
+/* Juniper PAM FPGA - present on PTX MLC board */
+#define PCI_DEVICE_ID_JNX_PAM 0x006c
+/* Juniper CBC FPGA - present on PTX1K RCB */
+#define PCI_DEVICE_ID_JNX_CBC 0x006e
+#define PCI_DEVICE_ID_JNX_CBC_P2 0x0079
+#define PCI_DEVICE_ID_JNX_OMG_CBC 0x0083
+
+/* Other Vendors' devices */
+#define PCI_DEVICE_ID_IDT_PES12NT3_TRANS_AB 0x8058
+#define PCI_DEVICE_ID_IDT_PES12NT3_TRANS_C 0x8059
+#define PCI_DEVICE_ID_IDT_PES12NT3_INT_NTB_C 0x805a
+#define PCI_DEVICE_ID_IDT_48H12G2 0x807a
+#define PCI_DEVICE_ID_IDT_PES24NT24G2 0x808e
+#define PCI_DEVICE_ID_IDT_PES16NT16G2 0x8090
+
+#define PCI_DEVICE_ID_PLX_8614 0x8614
+#define PCI_DEVICE_ID_PLX_8618 0x8618
+#define PCI_DEVICE_ID_PLX_8713 0x8713
+
+/*
+ * Juniper CBD FPGA Device ID(s)
+ */
+#define JNX_CBD_FPGA_DID_09B3 0x004D
+#define JNX_CBD_FPGA_DID_0BA8 0x005A
+
+#endif /* __JNX_PCI_IDS_H__ */
--
1.9.1