developer | 2076225 | 2021-05-13 16:38:03 +0800 | [diff] [blame] | 1 | /* |
2 | * switch_ioctl.h: switch(ioctl) set API | ||||
3 | */ | ||||
4 | |||||
5 | #ifndef MII_MGR_H | ||||
6 | #define MII_MGR_H | ||||
7 | |||||
8 | #define MTKETH_MII_READ 0x89F3 | ||||
9 | #define MTKETH_MII_WRITE 0x89F4 | ||||
10 | #define MTKETH_MII_READ_CL45 0x89FC | ||||
11 | #define MTKETH_MII_WRITE_CL45 0x89FD | ||||
12 | |||||
13 | struct mtk_mii_ioctl_data { | ||||
14 | __u16 phy_id; | ||||
15 | __u16 reg_num; | ||||
16 | __u32 val_in; | ||||
17 | __u32 val_out; | ||||
18 | }; | ||||
19 | |||||
20 | #endif /* MII_MGR_H */ |