summaryrefslogtreecommitdiff
path: root/libmachdev/net.c
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-06-04 16:51:24 +0200
committerZheng Da <zhengda1936@gmail.com>2010-06-04 16:51:24 +0200
commit21bf6f025d94c2987dfe30a0b327b6dfab7a8bff (patch)
treeca347da12bdeaf33ae9db843df3943791d2db84b /libmachdev/net.c
parent2d2c99a2d22d53343e3ea39368201d2e316c5aa8 (diff)
support block devices in the DDE library.
Diffstat (limited to 'libmachdev/net.c')
-rw-r--r--libmachdev/net.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/libmachdev/net.c b/libmachdev/net.c
index b21d6333..8c435b4b 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -74,6 +74,7 @@
#include "dev_hdr.h"
#include "if_ether.h"
#include "util.h"
+#include "mach_glue.h"
#define ether_header ethhdr
@@ -99,22 +100,6 @@ struct skb_reply
int pkglen;
};
-struct sk_buff;
-void skb_done_queue(struct sk_buff *skb);
-struct sk_buff *skb_done_dequeue();
-void *skb_reply(struct sk_buff *skb);
-int netdev_flags(struct net_device *dev);
-char *netdev_addr(struct net_device *dev);
-int dev_change_flags (struct net_device *dev, short flags);
-int linux_pkg_xmit (char *pkg_data, int len, void *del_data,
- int (*del_func) (struct sk_buff *, void *),
- struct net_device *dev);
-struct net_device *search_netdev (char *name);
-void kfree_skb (struct sk_buff *skb);
-int dev_open(struct net_device *dev);
-void *l4dde26_register_rx_callback(void *cb);
-void skb_done_head_init();
-
static struct net_data *nd_head;
/* Forward declarations. */
@@ -337,7 +322,7 @@ device_open (mach_port_t reply_port, mach_msg_type_name_t reply_port_type,
if_init_queues (ifp);
#endif
- if (err = dev_open(dev) < 0)
+ if ((err = dev_open(dev)) < 0)
{
fprintf (stderr, "after dev_open: cannot open the device\n");
err = linux_to_mach_error (err);