0001
0002
0003
0004
0005
0006 #ifndef __LINUX_R8152_H
0007 #define __LINUX_R8152_H
0008
0009 #define RTL8152_REQT_READ 0xc0
0010 #define RTL8152_REQT_WRITE 0x40
0011 #define RTL8152_REQ_GET_REGS 0x05
0012 #define RTL8152_REQ_SET_REGS 0x05
0013
0014 #define BYTE_EN_DWORD 0xff
0015 #define BYTE_EN_WORD 0x33
0016 #define BYTE_EN_BYTE 0x11
0017 #define BYTE_EN_SIX_BYTES 0x3f
0018 #define BYTE_EN_START_MASK 0x0f
0019 #define BYTE_EN_END_MASK 0xf0
0020
0021 #define MCU_TYPE_PLA 0x0100
0022 #define MCU_TYPE_USB 0x0000
0023
0024
0025 #define VENDOR_ID_REALTEK 0x0bda
0026 #define VENDOR_ID_MICROSOFT 0x045e
0027 #define VENDOR_ID_SAMSUNG 0x04e8
0028 #define VENDOR_ID_LENOVO 0x17ef
0029 #define VENDOR_ID_LINKSYS 0x13b1
0030 #define VENDOR_ID_NVIDIA 0x0955
0031 #define VENDOR_ID_TPLINK 0x2357
0032
0033 #if IS_REACHABLE(CONFIG_USB_RTL8152)
0034 extern u8 rtl8152_get_version(struct usb_interface *intf);
0035 #endif
0036
0037 #endif