Move pxe_netdev and set_pxe_netdev to pxe_undi.c and remove

now-obsolete pxe.c.
This commit is contained in:
Michael Brown
2007-07-03 20:21:16 +01:00
parent fd86c819ba
commit 5ce5e6d846
2 changed files with 15 additions and 182 deletions

View File

@@ -48,6 +48,21 @@
*/
static int undi_tx_count = 0;
struct net_device *pxe_netdev = NULL;
/**
* Set network device as current PXE network device
*
* @v netdev Network device, or NULL
*/
void pxe_set_netdev ( struct net_device *netdev ) {
if ( pxe_netdev )
netdev_put ( pxe_netdev );
pxe_netdev = NULL;
if ( netdev )
pxe_netdev = netdev_get ( netdev );
}
/**
* Open PXE network device
*