summaryrefslogtreecommitdiffstats
path: root/sys/dev/xen/console/xencons_ring.h
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-08-12 20:01:57 +0000
committerkmacy <kmacy@FreeBSD.org>2008-08-12 20:01:57 +0000
commit510c672e13b9748ab91e72576bf72a6ac7a325af (patch)
treeed1f5b96e1e2ccdb3eca8477d06d5456cfd3a425 /sys/dev/xen/console/xencons_ring.h
parent61c513450203262aab5d2c4571d1e82e9b1b9247 (diff)
downloadFreeBSD-src-510c672e13b9748ab91e72576bf72a6ac7a325af.zip
FreeBSD-src-510c672e13b9748ab91e72576bf72a6ac7a325af.tar.gz
Import Xen paravirtual drivers.
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/xen/console/xencons_ring.h')
-rw-r--r--sys/dev/xen/console/xencons_ring.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/dev/xen/console/xencons_ring.h b/sys/dev/xen/console/xencons_ring.h
new file mode 100644
index 0000000..fc97d95
--- /dev/null
+++ b/sys/dev/xen/console/xencons_ring.h
@@ -0,0 +1,20 @@
+/*
+ * $FreeBSD$
+ *
+ */
+#ifndef _XENCONS_RING_H
+#define _XENCONS_RING_H
+
+int xencons_ring_init(void);
+int xencons_ring_send(const char *data, unsigned len);
+void xencons_rx(char *buf, unsigned len);
+void xencons_tx(void);
+
+
+typedef void (xencons_receiver_func)(char *buf, unsigned len);
+void xencons_ring_register_receiver(xencons_receiver_func *f);
+
+void xencons_handle_input(void *unused);
+int xencons_has_input(void);
+
+#endif /* _XENCONS_RING_H */
OpenPOWER on IntegriCloud