1 #define __V3_PAL_SIDE__
6 #include <linux/errno.h>
7 #include <linux/poll.h>
10 #define __V3_PAL_SIDE__
12 // These two will be included in the library
13 #include "v3_io_chan.h"
14 #include "v3_user_host_dev.h"
18 v3_get_ioreq (v3_io_chan_handle_t chan, pal_ioreq_t ** req)
20 return v3_user_host_dev_pull_request(chan, req);
25 v3_push_ioresp (v3_io_chan_handle_t chan, pal_ioresp_t * resp)
27 return v3_user_host_dev_push_response(chan, resp);
32 v3_io_chan_open (char * url, char * vmdev)
34 return v3_user_host_dev_rendezvous(vmdev, url);
39 v3_io_chan_close (v3_io_chan_handle_t chan)
41 v3_user_host_dev_depart(chan);
46 v3_raise_pal_irq (v3_io_chan_handle_t chan, uint8_t irq)
48 return v3_user_host_dev_raise_irq(chan, irq);
53 v3_lower_pal_irq (v3_io_chan_handle_t chan, uint8_t irq)
55 return v3_user_host_dev_lower_irq(chan, irq);
60 v3_read_guest_mem (v3_io_chan_handle_t chan, void *gpa, void * dest, uint64_t len){
61 return v3_user_host_dev_read_guest_mem(chan, gpa, dest, len);
66 v3_write_guest_mem (v3_io_chan_handle_t chan, void *gpa, void *src, uint64_t len)
68 return v3_user_host_dev_write_guest_mem(chan, gpa, src, len);
73 v3_has_ioreq (v3_io_chan_handle_t chan)
75 return v3_user_host_dev_have_request(chan);
80 v3_free_req_resp (pal_ioreq_t * reqresp)