4#include <arch/sys_arch.h>
12 u8_t hwaddr[NETIF_MAX_HWADDR_LEN];
13 sys_thread_t net_task;
14 void(*phy_init)(void);
18extern err_t mcf5225xif_init(
struct netif *);
19extern void handle_rx_frame(
struct netif*);
21extern void smi_init(u32_t);
22extern void smi_write(u8_t,u8_t,u16_t);
23extern u16_t smi_read(u8_t,u8_t);
25#define MAX_FRAME_LEN 1518
26#define MTU_SIZE (MAX_FRAME_LEN-18)
27#define MSCR_MII_SPEED(clk) ((clk/5000000+1)<<1)