[][Add proprietary ioctl back to mii_mgr]
[Description]
Add proprietary ioctl back to mii_mgr.
[Release-log]
N/A
Change-Id: Iddf0a13fb11a49fb16620ccdbb2c58a1940d7c69
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4538724
diff --git a/feed/mii_mgr/src/mii_mgr.h b/feed/mii_mgr/src/mii_mgr.h
new file mode 100644
index 0000000..66f7a61
--- /dev/null
+++ b/feed/mii_mgr/src/mii_mgr.h
@@ -0,0 +1,20 @@
+/*
+ * switch_ioctl.h: switch(ioctl) set API
+ */
+
+#ifndef MII_MGR_H
+#define MII_MGR_H
+
+#define MTKETH_MII_READ 0x89F3
+#define MTKETH_MII_WRITE 0x89F4
+#define MTKETH_MII_READ_CL45 0x89FC
+#define MTKETH_MII_WRITE_CL45 0x89FD
+
+struct mtk_mii_ioctl_data {
+ __u16 phy_id;
+ __u16 reg_num;
+ __u32 val_in;
+ __u32 val_out;
+};
+
+#endif /* MII_MGR_H */