summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-24 14:40:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-07-24 14:40:31 +0000
commit5b32d62fcff0eb919da5f7af25254eeaf131f567 (patch)
treee308751e48b860accc647a60e658ab9949ba0b7f /target/linux/generic/files/include
parent1afe8a0726b3e55b9467211b6dc9ea6b604f55e7 (diff)
downloadmtk-20170518-5b32d62fcff0eb919da5f7af25254eeaf131f567.zip
mtk-20170518-5b32d62fcff0eb919da5f7af25254eeaf131f567.tar.gz
mtk-20170518-5b32d62fcff0eb919da5f7af25254eeaf131f567.tar.bz2
rtl8366_smi: implement a function for detecting whether the attached switch is RTL8366S or RTL8366RB
SVN-Revision: 27755
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/rtl8366.h8
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 654d42e..22ce614 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 */