Commit f5ddce71 authored by hongming's avatar hongming

Modify the ext config.

parent eb065b94
......@@ -39,32 +39,6 @@ void ext_config(unsigned char *IP)
tmp = 0xFFFFFF00;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_RX_PORT);
tmp = 60000;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_TX_SRC_PORT);
tmp = 60001;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_TX_DST_PORT);
tmp = 60002;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_TX_DST_IP);
tmp = 0xC0A80001;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_TX_DST_MAC_HIGH16);
//tmp = 0x9890;
tmp = 0x8cae;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_UDP_TX_DST_MAC_LOW32);
//tmp = 0x96aa9e04;
tmp = 0x4b002f40;
*ext_tmp = tmp;
ext_tmp = (unsigned int *)(BASE_EXT_CFG + EXT_TCP_LOCAL_PORT);
tmp = 8000;
*ext_tmp = tmp;
......
......@@ -409,6 +409,7 @@ void pfilter_init_novlan(char *fname)
/* Ethernet = 14 bytes, Offset to type in IP: 8 bytes = 22/2 = 11 */
pfilter_cmp(11, 0x0001, 0x00ff, MOV, FRAME_ICMP);
pfilter_cmp(11, 0x0011, 0x00ff, MOV, FRAME_UDP);
pfilter_cmp(11, 0x0006, 0x00ff, MOV, FRAME_TCP);
/* For CPU: arp or icmp unicast or ptp (or latency) */
pfilter_logic2(FRAME_FOR_CPU, FRAME_TYPE_ARP, OR, FRAME_TYPE_PTP2);
......@@ -422,12 +423,9 @@ void pfilter_init_novlan(char *fname)
/* The CPU gets those ports in a proper UDP frame, plus the previous selections */
pfilter_logic2(R_CLASS(1), FRAME_UDP, AND, PORT_UDP_HOST);
/* Etherbone is UDP at port 0xebd0, let's "or" in the last move */
pfilter_cmp(18, 0xebd0, 0xffff, MOV, PORT_UDP_ETHERBONE);
/* and now copy out fabric selections: 7 etherbone, 6 for anything else */
pfilter_logic2(R_CLASS(5), FRAME_UDP, AND, PORT_UDP_ETHERBONE);
pfilter_logic2(R_CLASS(7), FRAME_UDP, NAND, PORT_UDP_ETHERBONE);
pfilter_logic3(R_CLASS(5), PORT_UDP_HOST, NOT, R_ZERO, AND, FRAME_UDP);
pfilter_logic2(R_CLASS(6), FRAME_TCP, AND, FRAME_IP_OK);
/*
* Note that earlier we used to be more strict in ptp ethtype (only proper multicast),
* but since we want to accept peer-delay sooner than later, we'd better avoid the checks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment