linux/include/linux/usb/r8152.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  Copyright (c) 2020 Realtek Semiconductor Corp. All rights reserved.
 */

#ifndef	__LINUX_R8152_H
#define __LINUX_R8152_H

#define RTL8152_REQT_READ
#define RTL8152_REQT_WRITE
#define RTL8152_REQ_GET_REGS
#define RTL8152_REQ_SET_REGS

#define BYTE_EN_DWORD
#define BYTE_EN_WORD
#define BYTE_EN_BYTE
#define BYTE_EN_SIX_BYTES
#define BYTE_EN_START_MASK
#define BYTE_EN_END_MASK

#define MCU_TYPE_PLA
#define MCU_TYPE_USB

/* Define these values to match your device */
#define VENDOR_ID_REALTEK
#define VENDOR_ID_MICROSOFT
#define VENDOR_ID_SAMSUNG
#define VENDOR_ID_LENOVO
#define VENDOR_ID_LINKSYS
#define VENDOR_ID_NVIDIA
#define VENDOR_ID_TPLINK
#define VENDOR_ID_DLINK
#define VENDOR_ID_ASUS

#if IS_REACHABLE(CONFIG_USB_RTL8152)
extern u8 rtl8152_get_version(struct usb_interface *intf);
#endif

#endif /* __LINUX_R8152_H */