9
0
Fork 0

svn_rev_580

This commit is contained in:
Sascha Hauer 2007-07-05 18:02:07 +02:00 committed by Sascha Hauer
parent 9ff9f6a5ef
commit e304e16056
2 changed files with 5 additions and 3 deletions

View File

@ -42,7 +42,7 @@ struct eth_device * eth_get_current(void)
return eth_current;
}
int eth_init(void)
int eth_open(void)
{
char mac[6];
@ -55,7 +55,7 @@ int eth_init(void)
eth_current->open(eth_current);
return 1;
return 0;
}
void eth_halt(void)
@ -115,6 +115,8 @@ int eth_register(struct eth_device *edev)
// memcpy(edev->enetaddr, ethaddr, 6);
}
edev->init(edev);
eth_current = edev;
return 0;

View File

@ -287,7 +287,7 @@ NetLoop(proto_t protocol)
NetArpWaitTxPacketSize = 0;
}
if (eth_init() < 0)
if (eth_open() < 0)
return -1;
restart: