mirror of https://github.com/ipxe/ipxe.git
eth_ntoa fixup, _disable arg fixup
parent
c4964c3e3a
commit
5a39995f8b
|
@ -28,6 +28,7 @@
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
#include <gpxe/pci.h>
|
#include <gpxe/pci.h>
|
||||||
|
#include <gpxe/ethernet.h>
|
||||||
#include "3c595.h"
|
#include "3c595.h"
|
||||||
#include "timer.h"
|
#include "timer.h"
|
||||||
|
|
||||||
|
@ -442,8 +443,8 @@ vxsetlink(void)
|
||||||
GO_WINDOW(1);
|
GO_WINDOW(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void t595_disable ( struct nic *nic, struct pci_device *pci __unused ) {
|
static void t595_disable ( struct nic *nic ) {
|
||||||
nic_disable ( nic );
|
|
||||||
t595_reset(nic);
|
t595_reset(nic);
|
||||||
|
|
||||||
outw(STOP_TRANSCEIVER, BASE + VX_COMMAND);
|
outw(STOP_TRANSCEIVER, BASE + VX_COMMAND);
|
||||||
|
@ -505,7 +506,7 @@ static int t595_probe ( struct nic *nic, struct pci_device *pci ) {
|
||||||
outw(ntohs(p[i]), BASE + VX_W2_ADDR_0 + (i * 2));
|
outw(ntohs(p[i]), BASE + VX_W2_ADDR_0 + (i * 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Ethernet address: %!\n", nic->node_addr);
|
DBG ( "Ethernet address: %s\n", eth_ntoa (nic->node_addr) );
|
||||||
|
|
||||||
t595_reset(nic);
|
t595_reset(nic);
|
||||||
nic->nic_op = &t595_operations;
|
nic->nic_op = &t595_operations;
|
||||||
|
|
Loading…
Reference in New Issue