summaryrefslogtreecommitdiff
path: root/device/net_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'device/net_io.h')
-rw-r--r--device/net_io.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/device/net_io.h b/device/net_io.h
index 789614e..6842dec 100644
--- a/device/net_io.h
+++ b/device/net_io.h
@@ -42,6 +42,8 @@
#include <kern/lock.h>
#include <kern/kalloc.h>
+#include <device/if_hdr.h>
+#include <device/io_req.h>
#include <device/net_status.h>
/*
@@ -56,17 +58,18 @@
* functions. net_kmsg_get may return IKM_NULL.
*/
-extern ipc_kmsg_t net_kmsg_get();
-extern void net_kmsg_put();
+extern ipc_kmsg_t net_kmsg_get(void);
+extern void net_kmsg_put(ipc_kmsg_t);
/*
* Network utility routines.
*/
-extern void net_packet();
-extern void net_filter();
-extern io_return_t net_getstat();
-extern io_return_t net_write();
+extern void net_packet(struct ifnet *, ipc_kmsg_t, unsigned int, boolean_t);
+extern void net_filter(ipc_kmsg_t, ipc_kmsg_queue_t);
+extern io_return_t net_getstat(struct ifnet *, dev_flavor_t, dev_status_t,
+ natural_t *);
+extern io_return_t net_write(struct ifnet *, int (*)(), io_req_t);
/*
* Non-interrupt code may allocate and free net_kmsgs with these functions.