diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 14:40:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 14:40:31 +0000 |
commit | 01e740858dc7b92bd75d5508b3b1625f8010001e (patch) | |
tree | 8b233c04de1ac4b2e10bfd8f9df328ffcc17479c /target/linux/generic/files/include | |
parent | 9e73b3969df4e13a78e58a3ee92b6d57aecd5a45 (diff) | |
download | upstream-01e740858dc7b92bd75d5508b3b1625f8010001e.tar.gz upstream-01e740858dc7b92bd75d5508b3b1625f8010001e.tar.bz2 upstream-01e740858dc7b92bd75d5508b3b1625f8010001e.zip |
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
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r-- | target/linux/generic/files/include/linux/rtl8366.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/rtl8366.h b/target/linux/generic/files/include/linux/rtl8366.h index 654d42e609..22ce614d40 100644 --- a/target/linux/generic/files/include/linux/rtl8366.h +++ b/target/linux/generic/files/include/linux/rtl8366.h @@ -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 */ |