direct-io.hg

diff tools/libxc/xenctrl.h @ 8121:58d46463413e

GNTTABOP_map_grant_ref returns error status and handle as
separate fields. Update callers for new interface. Also
use int16_t as standard error code type on all public
interfaces.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Wed Nov 30 17:24:27 2005 +0100 (2005-11-30)
parents 20bd6f55b813
children f5b119533cc8
line diff
     1.1 --- a/tools/libxc/xenctrl.h	Wed Nov 30 16:03:05 2005 +0100
     1.2 +++ b/tools/libxc/xenctrl.h	Wed Nov 30 17:24:27 2005 +0100
     1.3 @@ -13,6 +13,7 @@
     1.4  #include <sys/ptrace.h>
     1.5  #include <xen/xen.h>
     1.6  #include <xen/dom0_ops.h>
     1.7 +#include <xen/grant_table.h>
     1.8  #include <xen/version.h>
     1.9  #include <xen/event_channel.h>
    1.10  #include <xen/sched.h>
    1.11 @@ -374,9 +375,9 @@ int xc_domain_memory_decrease_reservatio
    1.12  
    1.13  int xc_domain_ioport_permission(int xc_handle,
    1.14                                  uint32_t domid,
    1.15 -                                uint16_t first_port,
    1.16 -                                uint16_t nr_ports,
    1.17 -                                uint16_t allow_access);
    1.18 +                                uint32_t first_port,
    1.19 +                                uint32_t nr_ports,
    1.20 +                                uint32_t allow_access);
    1.21  
    1.22  unsigned long xc_make_page_below_4G(int xc_handle, uint32_t domid, 
    1.23  				    unsigned long mfn);
    1.24 @@ -475,15 +476,16 @@ int xc_grant_interface_close(int xc_hand
    1.25  int xc_gnttab_map_grant_ref(int      xc_handle,
    1.26                              uint64_t host_virt_addr,
    1.27                              uint32_t dom,
    1.28 -                            uint16_t ref,
    1.29 +                            grant_ref_t ref,
    1.30                              uint16_t flags,
    1.31 -                            int16_t *handle,
    1.32 +                            int16_t *status,
    1.33 +                            grant_handle_t *handle,
    1.34                              uint64_t *dev_bus_addr);
    1.35  
    1.36  int xc_gnttab_unmap_grant_ref(int  xc_handle,
    1.37                                uint64_t  host_virt_addr,
    1.38                                uint64_t  dev_bus_addr,
    1.39 -                              uint16_t  handle,
    1.40 +                              grant_handle_t handle,
    1.41                                int16_t *status);
    1.42  
    1.43  int xc_gnttab_setup_table(int        xc_handle,