1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018-2021 Beijing WangXun Technology Co., Ltd.
5 #ifndef _NGBE_DEVIDS_H_
6 #define _NGBE_DEVIDS_H_
11 #ifndef PCI_VENDOR_ID_WANGXUN
12 #define PCI_VENDOR_ID_WANGXUN 0x8088
18 #define NGBE_DEV_ID_EM_VF 0x0110
19 #define NGBE_SUB_DEV_ID_EM_VF 0x0110
20 #define NGBE_DEV_ID_EM 0x0100
21 #define NGBE_SUB_DEV_ID_EM_MVL_RGMII 0x0200
22 #define NGBE_SUB_DEV_ID_EM_MVL_MIX 0x0252
23 #define NGBE_SUB_DEV_ID_EM_MVL_SFP 0x0403
24 #define NGBE_SUB_DEV_ID_EM_RTL_SGMII 0x0410
25 #define NGBE_SUB_DEV_ID_EM_YT8521S_SFP 0x0460
26 #define NGBE_SUB_DEV_ID_EM_RTL_YT8521S_SFP 0x0461
28 #define NGBE_DEV_ID_EM_WX1860AL_W 0x0100
29 #define NGBE_DEV_ID_EM_WX1860AL_W_VF 0x0110
30 #define NGBE_DEV_ID_EM_WX1860A2 0x0101
31 #define NGBE_DEV_ID_EM_WX1860A2_VF 0x0111
32 #define NGBE_DEV_ID_EM_WX1860A2S 0x0102
33 #define NGBE_DEV_ID_EM_WX1860A2S_VF 0x0112
34 #define NGBE_DEV_ID_EM_WX1860A4 0x0103
35 #define NGBE_DEV_ID_EM_WX1860A4_VF 0x0113
36 #define NGBE_DEV_ID_EM_WX1860A4S 0x0104
37 #define NGBE_DEV_ID_EM_WX1860A4S_VF 0x0114
38 #define NGBE_DEV_ID_EM_WX1860AL2 0x0105
39 #define NGBE_DEV_ID_EM_WX1860AL2_VF 0x0115
40 #define NGBE_DEV_ID_EM_WX1860AL2S 0x0106
41 #define NGBE_DEV_ID_EM_WX1860AL2S_VF 0x0116
42 #define NGBE_DEV_ID_EM_WX1860AL4 0x0107
43 #define NGBE_DEV_ID_EM_WX1860AL4_VF 0x0117
44 #define NGBE_DEV_ID_EM_WX1860AL4S 0x0108
45 #define NGBE_DEV_ID_EM_WX1860AL4S_VF 0x0118
46 #define NGBE_DEV_ID_EM_WX1860NCSI 0x0109
47 #define NGBE_DEV_ID_EM_WX1860NCSI_VF 0x0119
48 #define NGBE_DEV_ID_EM_WX1860A1 0x010A
49 #define NGBE_DEV_ID_EM_WX1860A1_VF 0x011A
50 #define NGBE_DEV_ID_EM_WX1860A1L 0x010B
51 #define NGBE_DEV_ID_EM_WX1860A1L_VF 0x011B
52 #define NGBE_SUB_DEV_ID_EM_ZTE5201_RJ45 0x0100
53 #define NGBE_SUB_DEV_ID_EM_SF100F_LP 0x0103
54 #define NGBE_SUB_DEV_ID_EM_M88E1512_RJ45 0x0200
55 #define NGBE_SUB_DEV_ID_EM_SF100HT 0x0102
56 #define NGBE_SUB_DEV_ID_EM_SF200T 0x0201
57 #define NGBE_SUB_DEV_ID_EM_SF200HT 0x0202
58 #define NGBE_SUB_DEV_ID_EM_SF200T_S 0x0210
59 #define NGBE_SUB_DEV_ID_EM_SF200HT_S 0x0220
60 #define NGBE_SUB_DEV_ID_EM_SF200HXT 0x0230
61 #define NGBE_SUB_DEV_ID_EM_SF400T 0x0401
62 #define NGBE_SUB_DEV_ID_EM_SF400HT 0x0402
63 #define NGBE_SUB_DEV_ID_EM_M88E1512_SFP 0x0403
64 #define NGBE_SUB_DEV_ID_EM_SF400T_S 0x0410
65 #define NGBE_SUB_DEV_ID_EM_SF400HT_S 0x0420
66 #define NGBE_SUB_DEV_ID_EM_SF400HXT 0x0430
67 #define NGBE_SUB_DEV_ID_EM_SF400_OCP 0x0440
68 #define NGBE_SUB_DEV_ID_EM_SF400_LY 0x0450
69 #define NGBE_SUB_DEV_ID_EM_SF400_LY_YT 0x0470
71 /* Assign excessive id with masks */
72 #define NGBE_OEM_MASK 0x00FF
73 #define NGBE_WOL_SUP_MASK 0x4000
74 #define NGBE_NCSI_SUP_MASK 0x8000
76 #define NGBE_M88E1512_SFP 0x0003
77 #define NGBE_OCP_CARD 0x0040
78 #define NGBE_LY_M88E1512_SFP 0x0050
79 #define NGBE_M88E1512_RJ45 0x0051
80 #define NGBE_M88E1512_MIX 0x0052
81 #define NGBE_YT8521S_SFP 0x0060
82 #define NGBE_INTERNAL_YT8521S_SFP 0x0061
83 #define NGBE_YT8521S_SFP_GPIO 0x0062
84 #define NGBE_INTERNAL_YT8521S_SFP_GPIO 0x0064
85 #define NGBE_LY_YT8521S_SFP 0x0070
86 #define NGBE_WOL_SUP 0x4000
87 #define NGBE_NCSI_SUP 0x8000
89 #endif /* _NGBE_DEVIDS_H_ */