mirror of https://github.com/ipxe/ipxe.git
Merge branch 'master' into 3leaf-delivery
commit
44461b1854
|
@ -326,6 +326,17 @@ netdev_put ( struct net_device *netdev ) {
|
||||||
ref_put ( &netdev->refcnt );
|
ref_put ( &netdev->refcnt );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get driver private area for this network device
|
||||||
|
*
|
||||||
|
* @v netdev Network device
|
||||||
|
* @ret priv Driver private area for this network device
|
||||||
|
*/
|
||||||
|
static inline __attribute__ (( always_inline )) void *
|
||||||
|
netdev_priv ( struct net_device *netdev ) {
|
||||||
|
return netdev->priv;
|
||||||
|
}
|
||||||
|
|
||||||
extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
|
extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
|
||||||
extern void netdev_tx_complete_err ( struct net_device *netdev,
|
extern void netdev_tx_complete_err ( struct net_device *netdev,
|
||||||
struct io_buffer *iobuf, int rc );
|
struct io_buffer *iobuf, int rc );
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
hello world!
|
|
Loading…
Reference in New Issue