summaryrefslogtreecommitdiffstats
path: root/qemu/include/hw/stream.h
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/include/hw/stream.h
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/include/hw/stream.h')
-rw-r--r--qemu/include/hw/stream.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/qemu/include/hw/stream.h b/qemu/include/hw/stream.h
deleted file mode 100644
index 30ccc5620..000000000
--- a/qemu/include/hw/stream.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef STREAM_H
-#define STREAM_H 1
-
-#include "qemu-common.h"
-#include "qom/object.h"
-
-/* stream slave. Used until qdev provides a generic way. */
-#define TYPE_STREAM_SLAVE "stream-slave"
-
-#define STREAM_SLAVE_CLASS(klass) \
- OBJECT_CLASS_CHECK(StreamSlaveClass, (klass), TYPE_STREAM_SLAVE)
-#define STREAM_SLAVE_GET_CLASS(obj) \
- OBJECT_GET_CLASS(StreamSlaveClass, (obj), TYPE_STREAM_SLAVE)
-#define STREAM_SLAVE(obj) \
- INTERFACE_CHECK(StreamSlave, (obj), TYPE_STREAM_SLAVE)
-
-typedef struct StreamSlave {
- Object Parent;
-} StreamSlave;
-
-typedef void (*StreamCanPushNotifyFn)(void *opaque);
-
-typedef struct StreamSlaveClass {
- InterfaceClass parent;
- /**
- * can push - determine if a stream slave is capable of accepting at least
- * one byte of data. Returns false if cannot accept. If not implemented, the
- * slave is assumed to always be capable of receiving.
- * @notify: Optional callback that the slave will call when the slave is
- * capable of receiving again. Only called if false is returned.
- * @notify_opaque: opaque data to pass to notify call.
- */
- bool (*can_push)(StreamSlave *obj, StreamCanPushNotifyFn notify,
- void *notify_opaque);
- /**
- * push - push data to a Stream slave. The number of bytes pushed is
- * returned. If the slave short returns, the master must wait before trying
- * again, the slave may continue to just return 0 waiting for the vm time to
- * advance. The can_push() function can be used to trap the point in time
- * where the slave is ready to receive again, otherwise polling on a QEMU
- * timer will work.
- * @obj: Stream slave to push to
- * @buf: Data to write
- * @len: Maximum number of bytes to write
- */
- size_t (*push)(StreamSlave *obj, unsigned char *buf, size_t len);
-} StreamSlaveClass;
-
-size_t
-stream_push(StreamSlave *sink, uint8_t *buf, size_t len);
-
-bool
-stream_can_push(StreamSlave *sink, StreamCanPushNotifyFn notify,
- void *notify_opaque);
-
-
-#endif /* STREAM_H */