mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 09:09:32 +03:00
Move pxe_netdev and set_pxe_netdev to pxe_undi.c and remove
now-obsolete pxe.c.
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user