svn_rev_580
This commit is contained in:
parent
9ff9f6a5ef
commit
e304e16056
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue