blob: 66f7a616c8c2c76db973fbd0d496c7be95a6ef3f [file] [log] [blame]
developer20762252021-05-13 16:38:03 +08001/*
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
13struct 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 */