51 #ifndef RTEMS_MII_IOCTL_H 52 #define RTEMS_MII_IOCTL_H 61 #if defined(_KERNEL) || defined(KERNEL) || \ 62 defined(__KERNEL) || defined(__KERNEL__) 68 typedef int (*rtems_mdio_read_func) (
int phy,
void *uarg,
unsigned reg,
74 typedef int (*rtems_mdio_write_func) (
int phy,
void *uarg,
unsigned reg,
78 struct rtems_mdio_info {
79 rtems_mdio_read_func mdio_r;
80 rtems_mdio_write_func mdio_w;
93 rtems_mii_ioctl (
struct rtems_mdio_info *info,
void *uarg, uint32_t cmd,
100 #define IFM_LINK_OK IFM_FLAG0 101 #define IFM_ANEG_DIS IFM_FLAG1 112 #define IFMEDIA2STR_PRINT_TO_FILE 0 114 int rtems_ifmedia2str (
int media,
char *buf,
int bufsz);
133 int rtems_str2ifmedia (
const char *str,
int phy);