Xen Test Framework
|
#include "xen.h"
Go to the source code of this file.
Data Structures | |
struct | grant_entry_v1_t |
struct | grant_entry_header_t |
union | grant_entry_v2_t |
struct | gnttab_map_grant_ref |
struct | gnttab_unmap_grant_ref |
struct | gnttab_setup_table |
struct | gnttab_unmap_and_replace |
struct | gnttab_set_version |
struct | gnttab_get_status_frames |
struct | gnttab_cache_flush |
Macros | |
#define | GNTST_okay (0) /* Normal return. */ |
#define | GNTST_general_error (-1) /* General undefined error. */ |
#define | GNTST_bad_domain (-2) /* Unrecognsed domain id. */ |
#define | GNTST_bad_gntref (-3) /* Unrecognised or inappropriate gntref. */ |
#define | GNTST_bad_handle (-4) /* Unrecognised or inappropriate handle. */ |
#define | GNTST_bad_virt_addr (-5) /* Inappropriate virtual address to map. */ |
#define | GNTST_bad_dev_addr (-6) /* Inappropriate device address to unmap.*/ |
#define | GNTST_no_device_space (-7) /* Out of space in I/O MMU. */ |
#define | GNTST_permission_denied (-8) /* Not enough privilege for operation. */ |
#define | GNTST_bad_page (-9) /* Specified page was invalid for op. */ |
#define | GNTST_bad_copy_arg (-10) /* copy arguments cross page boundary. */ |
#define | GNTST_address_too_big (-11) /* transfer page address too large. */ |
#define | GNTST_eagain (-12) /* Operation not done; try again. */ |
#define | GNTTABOP_error_msgs |
#define | GTF_invalid (0 << 0) |
#define | GTF_permit_access (1 << 0) |
#define | GTF_accept_transfer (2 << 0) |
#define | GTF_transitive (3 << 0) |
#define | GTF_type_mask (3 << 0) |
#define | _GTF_readonly 2 |
#define | GTF_readonly (1 << _GTF_readonly) |
#define | _GTF_reading 3 |
#define | GTF_reading (1 << _GTF_reading) |
#define | _GTF_writing 4 |
#define | GTF_writing (1 << _GTF_writing) |
#define | _GTF_PWT 5 |
#define | GTF_PWT (1 << _GTF_PWT) |
#define | _GTF_PCD 6 |
#define | GTF_PCD (1 << _GTF_PCD) |
#define | _GTF_PAT 7 |
#define | GTF_PAT (1 << _GTF_PAT) |
#define | _GTF_sub_page 8 |
#define | GTF_sub_page (1 << _GTF_sub_page) |
#define | _GTF_transfer_committed 2 |
#define | GTF_transfer_committed (1 << _GTF_transfer_committed) |
#define | _GTF_transfer_completed 3 |
#define | GTF_transfer_completed (1 << _GTF_transfer_completed) |
#define | _GNTMAP_device_map 0 |
#define | GNTMAP_device_map (1 << _GNTMAP_device_map) |
#define | _GNTMAP_host_map 1 |
#define | GNTMAP_host_map (1 << _GNTMAP_host_map) |
#define | _GNTMAP_readonly 2 |
#define | GNTMAP_readonly (1 << _GNTMAP_readonly) |
#define | _GNTMAP_application_map 3 |
#define | GNTMAP_application_map (1 << _GNTMAP_application_map) |
#define | _GNTMAP_contains_pte 4 |
#define | GNTMAP_contains_pte (1 << _GNTMAP_contains_pte) |
#define | _GNTMAP_guest_avail0 16 |
#define | GNTMAP_guest_avail_mask ((uint32_t)~0 << _GNTMAP_guest_avail0) |
#define | GNTTABOP_map_grant_ref 0 |
#define | GNTTABOP_unmap_grant_ref 1 |
#define | GNTTABOP_setup_table 2 |
#define | GNTTABOP_unmap_and_replace 7 |
#define | GNTTABOP_set_version 8 |
#define | GNTTABOP_get_status_frames 9 |
#define | GNTTABOP_cache_flush 12 |
#define | GNTTAB_CACHE_CLEAN (1<<0) |
#define | GNTTAB_CACHE_INVAL (1<<1) |
#define | GNTTAB_CACHE_SOURCE_GREF (1<<31) |
Typedefs | |
typedef uint32_t | grant_ref_t |
typedef uint32_t | grant_handle_t |
#define GNTST_okay (0) /* Normal return. */ |
Definition at line 10 of file grant_table.h.
#define GNTST_general_error (-1) /* General undefined error. */ |
Definition at line 11 of file grant_table.h.
#define GNTST_bad_domain (-2) /* Unrecognsed domain id. */ |
Definition at line 12 of file grant_table.h.
#define GNTST_bad_gntref (-3) /* Unrecognised or inappropriate gntref. */ |
Definition at line 13 of file grant_table.h.
#define GNTST_bad_handle (-4) /* Unrecognised or inappropriate handle. */ |
Definition at line 14 of file grant_table.h.
#define GNTST_bad_virt_addr (-5) /* Inappropriate virtual address to map. */ |
Definition at line 15 of file grant_table.h.
#define GNTST_bad_dev_addr (-6) /* Inappropriate device address to unmap.*/ |
Definition at line 16 of file grant_table.h.
#define GNTST_no_device_space (-7) /* Out of space in I/O MMU. */ |
Definition at line 17 of file grant_table.h.
#define GNTST_permission_denied (-8) /* Not enough privilege for operation. */ |
Definition at line 18 of file grant_table.h.
#define GNTST_bad_page (-9) /* Specified page was invalid for op. */ |
Definition at line 19 of file grant_table.h.
#define GNTST_bad_copy_arg (-10) /* copy arguments cross page boundary. */ |
Definition at line 20 of file grant_table.h.
#define GNTST_address_too_big (-11) /* transfer page address too large. */ |
Definition at line 21 of file grant_table.h.
#define GNTST_eagain (-12) /* Operation not done; try again. */ |
Definition at line 22 of file grant_table.h.
#define GNTTABOP_error_msgs |
Definition at line 24 of file grant_table.h.
#define GTF_invalid (0 << 0) |
Definition at line 49 of file grant_table.h.
#define GTF_permit_access (1 << 0) |
Definition at line 50 of file grant_table.h.
#define GTF_accept_transfer (2 << 0) |
Definition at line 51 of file grant_table.h.
#define GTF_transitive (3 << 0) |
Definition at line 52 of file grant_table.h.
#define GTF_type_mask (3 << 0) |
Definition at line 53 of file grant_table.h.
#define _GTF_readonly 2 |
Definition at line 65 of file grant_table.h.
#define GTF_readonly (1 << _GTF_readonly) |
Definition at line 66 of file grant_table.h.
#define _GTF_reading 3 |
Definition at line 68 of file grant_table.h.
#define GTF_reading (1 << _GTF_reading) |
Definition at line 69 of file grant_table.h.
#define _GTF_writing 4 |
Definition at line 71 of file grant_table.h.
#define GTF_writing (1 << _GTF_writing) |
Definition at line 72 of file grant_table.h.
#define _GTF_PWT 5 |
Definition at line 74 of file grant_table.h.
#define GTF_PWT (1 << _GTF_PWT) |
Definition at line 75 of file grant_table.h.
#define _GTF_PCD 6 |
Definition at line 77 of file grant_table.h.
#define GTF_PCD (1 << _GTF_PCD) |
Definition at line 78 of file grant_table.h.
#define _GTF_PAT 7 |
Definition at line 80 of file grant_table.h.
#define GTF_PAT (1 << _GTF_PAT) |
Definition at line 81 of file grant_table.h.
#define _GTF_sub_page 8 |
Definition at line 83 of file grant_table.h.
#define GTF_sub_page (1 << _GTF_sub_page) |
Definition at line 84 of file grant_table.h.
#define _GTF_transfer_committed 2 |
Definition at line 96 of file grant_table.h.
#define GTF_transfer_committed (1 << _GTF_transfer_committed) |
Definition at line 97 of file grant_table.h.
#define _GTF_transfer_completed 3 |
Definition at line 99 of file grant_table.h.
#define GTF_transfer_completed (1 << _GTF_transfer_completed) |
Definition at line 100 of file grant_table.h.
#define _GNTMAP_device_map 0 |
Definition at line 175 of file grant_table.h.
#define GNTMAP_device_map (1 << _GNTMAP_device_map) |
Definition at line 176 of file grant_table.h.
#define _GNTMAP_host_map 1 |
Definition at line 178 of file grant_table.h.
#define GNTMAP_host_map (1 << _GNTMAP_host_map) |
Definition at line 179 of file grant_table.h.
#define _GNTMAP_readonly 2 |
Definition at line 181 of file grant_table.h.
#define GNTMAP_readonly (1 << _GNTMAP_readonly) |
Definition at line 182 of file grant_table.h.
#define _GNTMAP_application_map 3 |
Definition at line 188 of file grant_table.h.
#define GNTMAP_application_map (1 << _GNTMAP_application_map) |
Definition at line 189 of file grant_table.h.
#define _GNTMAP_contains_pte 4 |
Definition at line 196 of file grant_table.h.
#define GNTMAP_contains_pte (1 << _GNTMAP_contains_pte) |
Definition at line 197 of file grant_table.h.
#define _GNTMAP_guest_avail0 16 |
Definition at line 203 of file grant_table.h.
#define GNTMAP_guest_avail_mask ((uint32_t)~0 << _GNTMAP_guest_avail0) |
Definition at line 204 of file grant_table.h.
#define GNTTABOP_map_grant_ref 0 |
Definition at line 223 of file grant_table.h.
#define GNTTABOP_unmap_grant_ref 1 |
Definition at line 247 of file grant_table.h.
#define GNTTABOP_setup_table 2 |
Definition at line 266 of file grant_table.h.
#define GNTTABOP_unmap_and_replace 7 |
Definition at line 288 of file grant_table.h.
#define GNTTABOP_set_version 8 |
Definition at line 304 of file grant_table.h.
#define GNTTABOP_get_status_frames 9 |
Definition at line 316 of file grant_table.h.
#define GNTTABOP_cache_flush 12 |
Definition at line 330 of file grant_table.h.
#define GNTTAB_CACHE_CLEAN (1<<0) |
Definition at line 338 of file grant_table.h.
#define GNTTAB_CACHE_INVAL (1<<1) |
Definition at line 339 of file grant_table.h.
#define GNTTAB_CACHE_SOURCE_GREF (1<<31) |
Definition at line 340 of file grant_table.h.
typedef uint32_t grant_ref_t |
Definition at line 102 of file grant_table.h.
typedef uint32_t grant_handle_t |
Definition at line 103 of file grant_table.h.