URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 428 |
Rev 429 |
Line 1272... |
Line 1272... |
case ((1 << ETH_MIICOMM_WCDATA_OFFSET)):
|
case ((1 << ETH_MIICOMM_WCDATA_OFFSET)):
|
/* Perhaps something to emulate here later, but for now do nothing */
|
/* Perhaps something to emulate here later, but for now do nothing */
|
break;
|
break;
|
|
|
case ((1 << ETH_MIICOMM_RSTAT_OFFSET)):
|
case ((1 << ETH_MIICOMM_RSTAT_OFFSET)):
|
|
/*
|
printf("or1ksim: eth_miim_trans: phy %d\n",(int)
|
printf("or1ksim: eth_miim_trans: phy %d\n",(int)
|
((eth->regs.miiaddress >> ETH_MIIADDR_FIAD_OFFSET)&
|
((eth->regs.miiaddress >> ETH_MIIADDR_FIAD_OFFSET)&
|
ETH_MIIADDR_FIAD_MASK));
|
ETH_MIIADDR_FIAD_MASK));
|
printf("or1ksim: eth_miim_trans: reg %d\n",(int)
|
printf("or1ksim: eth_miim_trans: reg %d\n",(int)
|
((eth->regs.miiaddress >> ETH_MIIADDR_RGAD_OFFSET)&
|
((eth->regs.miiaddress >> ETH_MIIADDR_RGAD_OFFSET)&
|
ETH_MIIADDR_RGAD_MASK));
|
ETH_MIIADDR_RGAD_MASK));
|
|
*/
|
/*First check if it's the correct PHY to address */
|
/*First check if it's the correct PHY to address */
|
if (((eth->regs.miiaddress >> ETH_MIIADDR_FIAD_OFFSET)&
|
if (((eth->regs.miiaddress >> ETH_MIIADDR_FIAD_OFFSET)&
|
ETH_MIIADDR_FIAD_MASK) == eth->phy_addr)
|
ETH_MIIADDR_FIAD_MASK) == eth->phy_addr)
|
{
|
{
|
/* Correct PHY - now switch based on the register address in the PHY*/
|
/* Correct PHY - now switch based on the register address in the PHY*/
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.