mirror of https://github.com/ipxe/ipxe.git
duplex setting added to natsemi.c
parent
621f6fb503
commit
11d246f3b5
|
@ -401,11 +401,13 @@ static int nat_open ( struct net_device *netdev ) {
|
||||||
* Configure for standard, in-spec Ethernet.
|
* Configure for standard, in-spec Ethernet.
|
||||||
*/
|
*/
|
||||||
if ( inl ( nat->ioaddr + ChipConfig ) & 0x20000000 ) { /* Full duplex */
|
if ( inl ( nat->ioaddr + ChipConfig ) & 0x20000000 ) { /* Full duplex */
|
||||||
tx_config = 0xD0801002;
|
tx_config = 0xD0801002|0xC0000000;
|
||||||
rx_config = 0x10000020;
|
DBG("Full duplex\n");
|
||||||
|
rx_config = 0x10000020|0x10000000;;
|
||||||
} else {
|
} else {
|
||||||
tx_config = 0x10801002;
|
tx_config = 0x10801002& ~0xC0000000;;
|
||||||
rx_config = 0x0020;
|
DBG("Half duplex\n");
|
||||||
|
rx_config = 0x0020& ~0x10000000;;;
|
||||||
}
|
}
|
||||||
outl ( tx_config, nat->ioaddr + TxConfig );
|
outl ( tx_config, nat->ioaddr + TxConfig );
|
||||||
outl ( rx_config, nat->ioaddr + RxConfig );
|
outl ( rx_config, nat->ioaddr + RxConfig );
|
||||||
|
|
Loading…
Reference in New Issue