1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd. */ 3 4 #ifndef _NGBE_TYPE_H_ 5 #define _NGBE_TYPE_H_ 6 7 #include <linux/types.h> 8 #include <linux/netdevice.h> 9 10 /************ NGBE_register.h ************/ 11 /* Vendor ID */ 12 #ifndef PCI_VENDOR_ID_WANGXUN 13 #define PCI_VENDOR_ID_WANGXUN 0x8088 14 #endif 15 16 /* Device IDs */ 17 #define NGBE_DEV_ID_EM_WX1860AL_W 0x0100 18 #define NGBE_DEV_ID_EM_WX1860A2 0x0101 19 #define NGBE_DEV_ID_EM_WX1860A2S 0x0102 20 #define NGBE_DEV_ID_EM_WX1860A4 0x0103 21 #define NGBE_DEV_ID_EM_WX1860A4S 0x0104 22 #define NGBE_DEV_ID_EM_WX1860AL2 0x0105 23 #define NGBE_DEV_ID_EM_WX1860AL2S 0x0106 24 #define NGBE_DEV_ID_EM_WX1860AL4 0x0107 25 #define NGBE_DEV_ID_EM_WX1860AL4S 0x0108 26 #define NGBE_DEV_ID_EM_WX1860LC 0x0109 27 #define NGBE_DEV_ID_EM_WX1860A1 0x010a 28 #define NGBE_DEV_ID_EM_WX1860A1L 0x010b 29 30 /* Subsystem ID */ 31 #define NGBE_SUBID_M88E1512_SFP 0x0003 32 #define NGBE_SUBID_OCP_CARD 0x0040 33 #define NGBE_SUBID_LY_M88E1512_SFP 0x0050 34 #define NGBE_SUBID_M88E1512_RJ45 0x0051 35 #define NGBE_SUBID_M88E1512_MIX 0x0052 36 #define NGBE_SUBID_YT8521S_SFP 0x0060 37 #define NGBE_SUBID_INTERNAL_YT8521S_SFP 0x0061 38 #define NGBE_SUBID_YT8521S_SFP_GPIO 0x0062 39 #define NGBE_SUBID_INTERNAL_YT8521S_SFP_GPIO 0x0064 40 #define NGBE_SUBID_LY_YT8521S_SFP 0x0070 41 #define NGBE_SUBID_RGMII_FPGA 0x0080 42 43 #define NGBE_OEM_MASK 0x00FF 44 45 #define NGBE_NCSI_SUP 0x8000 46 #define NGBE_NCSI_MASK 0x8000 47 #define NGBE_WOL_SUP 0x4000 48 #define NGBE_WOL_MASK 0x4000 49 50 #endif /* _NGBE_TYPE_H_ */ 51