1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
-
-
- FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
-
- #include <stdint.h>
- #include <errno.h>
- #include <ipxe/iobuf.h>
- #include <ipxe/netdevice.h>
-
-
-
- static int null_open ( struct net_device *netdev __unused ) {
- return -ENODEV;
- };
-
- static void null_close ( struct net_device *netdev __unused ) {
-
- };
-
- static int null_transmit ( struct net_device *netdev __unused,
- struct io_buffer *iobuf __unused ) {
- return -ENODEV;
- };
-
- static void null_poll ( struct net_device *netdev __unused ) {
-
- }
-
- static void null_irq ( struct net_device *netdev __unused,
- int enable __unused ) {
-
- }
-
- struct net_device_operations null_netdev_operations = {
- .open = null_open,
- .close = null_close,
- .transmit = null_transmit,
- .poll = null_poll,
- .irq = null_irq,
- };
|