Browse Source

Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
1e677b2024
2 changed files with 11 additions and 1 deletions
  1. 11
    0
      src/include/gpxe/netdevice.h
  2. 0
    1
      src/payload/hello.img

+ 11
- 0
src/include/gpxe/netdevice.h View File

326
 	ref_put ( &netdev->refcnt );
326
 	ref_put ( &netdev->refcnt );
327
 }
327
 }
328
 
328
 
329
+/**
330
+ * Get driver private area for this network device
331
+ *
332
+ * @v netdev		Network device
333
+ * @ret priv		Driver private area for this network device
334
+ */
335
+static inline __attribute__ (( always_inline )) void *
336
+netdev_priv ( struct net_device *netdev ) {
337
+        return netdev->priv;
338
+}
339
+
329
 extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
340
 extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
330
 extern void netdev_tx_complete_err ( struct net_device *netdev,
341
 extern void netdev_tx_complete_err ( struct net_device *netdev,
331
 				 struct io_buffer *iobuf, int rc );
342
 				 struct io_buffer *iobuf, int rc );

+ 0
- 1
src/payload/hello.img View File

1
-hello world!

Loading…
Cancel
Save