1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 2 /* 3 * Copyright (c) 2020 Realtek Semiconductor C 3 * Copyright (c) 2020 Realtek Semiconductor Corp. All rights reserved. 4 */ 4 */ 5 5 6 #ifndef __LINUX_R8152_H 6 #ifndef __LINUX_R8152_H 7 #define __LINUX_R8152_H 7 #define __LINUX_R8152_H 8 8 9 #define RTL8152_REQT_READ 0xc0 9 #define RTL8152_REQT_READ 0xc0 10 #define RTL8152_REQT_WRITE 0x40 10 #define RTL8152_REQT_WRITE 0x40 11 #define RTL8152_REQ_GET_REGS 0x05 11 #define RTL8152_REQ_GET_REGS 0x05 12 #define RTL8152_REQ_SET_REGS 0x05 12 #define RTL8152_REQ_SET_REGS 0x05 13 13 14 #define BYTE_EN_DWORD 0xff 14 #define BYTE_EN_DWORD 0xff 15 #define BYTE_EN_WORD 0x33 15 #define BYTE_EN_WORD 0x33 16 #define BYTE_EN_BYTE 0x11 16 #define BYTE_EN_BYTE 0x11 17 #define BYTE_EN_SIX_BYTES 0x3f 17 #define BYTE_EN_SIX_BYTES 0x3f 18 #define BYTE_EN_START_MASK 0x0f 18 #define BYTE_EN_START_MASK 0x0f 19 #define BYTE_EN_END_MASK 0xf0 19 #define BYTE_EN_END_MASK 0xf0 20 20 21 #define MCU_TYPE_PLA 0x0100 21 #define MCU_TYPE_PLA 0x0100 22 #define MCU_TYPE_USB 0x0000 22 #define MCU_TYPE_USB 0x0000 23 23 24 /* Define these values to match your device */ 24 /* Define these values to match your device */ 25 #define VENDOR_ID_REALTEK 0x0bda 25 #define VENDOR_ID_REALTEK 0x0bda 26 #define VENDOR_ID_MICROSOFT 0x045e 26 #define VENDOR_ID_MICROSOFT 0x045e 27 #define VENDOR_ID_SAMSUNG 0x04e8 27 #define VENDOR_ID_SAMSUNG 0x04e8 28 #define VENDOR_ID_LENOVO 0x17ef 28 #define VENDOR_ID_LENOVO 0x17ef 29 #define VENDOR_ID_LINKSYS 0x13b1 29 #define VENDOR_ID_LINKSYS 0x13b1 30 #define VENDOR_ID_NVIDIA 0x0955 30 #define VENDOR_ID_NVIDIA 0x0955 31 #define VENDOR_ID_TPLINK 0x2357 31 #define VENDOR_ID_TPLINK 0x2357 32 #define VENDOR_ID_DLINK 0x2001 32 #define VENDOR_ID_DLINK 0x2001 33 #define VENDOR_ID_ASUS 0x0b05 33 #define VENDOR_ID_ASUS 0x0b05 34 34 35 #if IS_REACHABLE(CONFIG_USB_RTL8152) 35 #if IS_REACHABLE(CONFIG_USB_RTL8152) 36 extern u8 rtl8152_get_version(struct usb_inter 36 extern u8 rtl8152_get_version(struct usb_interface *intf); 37 #endif 37 #endif 38 38 39 #endif /* __LINUX_R8152_H */ 39 #endif /* __LINUX_R8152_H */ 40 40
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.