mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
rtl8366_smi: implement a function for detecting whether the attached switch is RTL8366S or RTL8366RB
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27755 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -15,6 +15,12 @@
|
||||
#define RTL8366S_DRIVER_NAME "rtl8366s"
|
||||
#define RTL8366RB_DRIVER_NAME "rtl8366rb"
|
||||
|
||||
enum rtl8366_type {
|
||||
RTL8366_TYPE_UNKNOWN,
|
||||
RTL8366_TYPE_S,
|
||||
RTL8366_TYPE_RB,
|
||||
};
|
||||
|
||||
struct rtl8366_initval {
|
||||
unsigned reg;
|
||||
u16 val;
|
||||
@@ -27,4 +33,6 @@ struct rtl8366_platform_data {
|
||||
struct rtl8366_initval *initvals;
|
||||
};
|
||||
|
||||
enum rtl8366_type rtl8366_smi_detect(struct rtl8366_platform_data *pdata);
|
||||
|
||||
#endif /* _RTL8366_H */
|
||||
|
||||
Reference in New Issue
Block a user