Explorar el Código

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

tags/v0.9.3
Michael Brown hace 17 años
padre
commit
1e677b2024
Se han modificado 2 ficheros con 11 adiciones y 1 borrados
  1. 11
    0
      src/include/gpxe/netdevice.h
  2. 0
    1
      src/payload/hello.img

+ 11
- 0
src/include/gpxe/netdevice.h Ver fichero

@@ -326,6 +326,17 @@ netdev_put ( struct net_device *netdev ) {
326 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 340
 extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf );
330 341
 extern void netdev_tx_complete_err ( struct net_device *netdev,
331 342
 				 struct io_buffer *iobuf, int rc );

+ 0
- 1
src/payload/hello.img Ver fichero

@@ -1 +0,0 @@
1
-hello world!

Loading…
Cancelar
Guardar