| 
									
										
										
										
											2016-06-29 13:47:03 +02:00
										 |  |  | #ifndef QEMU_VIRTIO_9P_H
 | 
					
						
							|  |  |  | #define QEMU_VIRTIO_9P_H
 | 
					
						
							| 
									
										
										
										
											2010-04-29 17:44:44 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-16 22:35:57 +01:00
										 |  |  | #include "standard-headers/linux/virtio_9p.h"
 | 
					
						
							| 
									
										
										
										
											2013-02-05 17:06:20 +01:00
										 |  |  | #include "hw/virtio/virtio.h"
 | 
					
						
							| 
									
										
										
										
											2016-01-07 18:18:02 +00:00
										 |  |  | #include "9p.h"
 | 
					
						
							| 
									
										
										
										
											2011-08-02 11:36:17 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-11 09:29:37 +00:00
										 |  |  | typedef struct V9fsVirtioState | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     VirtIODevice parent_obj; | 
					
						
							|  |  |  |     VirtQueue *vq; | 
					
						
							|  |  |  |     size_t config_size; | 
					
						
							| 
									
										
										
										
											2016-02-04 16:26:51 +02:00
										 |  |  |     VirtQueueElement *elems[MAX_REQ]; | 
					
						
							| 
									
										
										
										
											2016-01-11 09:29:37 +00:00
										 |  |  |     V9fsState state; | 
					
						
							|  |  |  | } V9fsVirtioState; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-23 11:08:40 +02:00
										 |  |  | #define TYPE_VIRTIO_9P "virtio-9p-device"
 | 
					
						
							|  |  |  | #define VIRTIO_9P(obj) \
 | 
					
						
							| 
									
										
										
										
											2016-01-11 09:29:37 +00:00
										 |  |  |         OBJECT_CHECK(V9fsVirtioState, (obj), TYPE_VIRTIO_9P) | 
					
						
							| 
									
										
										
										
											2013-04-23 11:08:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-04-29 17:44:44 +05:30
										 |  |  | #endif
 |