Xen Test Framework
Data Structures | Macros | Typedefs
grant_table.h File Reference
#include "xen.h"
+ Include dependency graph for grant_table.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Macro Definition Documentation

◆ GNTST_okay

#define GNTST_okay   (0) /* Normal return. */

Definition at line 10 of file grant_table.h.

◆ GNTST_general_error

#define GNTST_general_error   (-1) /* General undefined error. */

Definition at line 11 of file grant_table.h.

◆ GNTST_bad_domain

#define GNTST_bad_domain   (-2) /* Unrecognsed domain id. */

Definition at line 12 of file grant_table.h.

◆ GNTST_bad_gntref

#define GNTST_bad_gntref   (-3) /* Unrecognised or inappropriate gntref. */

Definition at line 13 of file grant_table.h.

◆ GNTST_bad_handle

#define GNTST_bad_handle   (-4) /* Unrecognised or inappropriate handle. */

Definition at line 14 of file grant_table.h.

◆ GNTST_bad_virt_addr

#define GNTST_bad_virt_addr   (-5) /* Inappropriate virtual address to map. */

Definition at line 15 of file grant_table.h.

◆ GNTST_bad_dev_addr

#define GNTST_bad_dev_addr   (-6) /* Inappropriate device address to unmap.*/

Definition at line 16 of file grant_table.h.

◆ GNTST_no_device_space

#define GNTST_no_device_space   (-7) /* Out of space in I/O MMU. */

Definition at line 17 of file grant_table.h.

◆ GNTST_permission_denied

#define GNTST_permission_denied   (-8) /* Not enough privilege for operation. */

Definition at line 18 of file grant_table.h.

◆ GNTST_bad_page

#define GNTST_bad_page   (-9) /* Specified page was invalid for op. */

Definition at line 19 of file grant_table.h.

◆ GNTST_bad_copy_arg

#define GNTST_bad_copy_arg   (-10) /* copy arguments cross page boundary. */

Definition at line 20 of file grant_table.h.

◆ GNTST_address_too_big

#define GNTST_address_too_big   (-11) /* transfer page address too large. */

Definition at line 21 of file grant_table.h.

◆ GNTST_eagain

#define GNTST_eagain   (-12) /* Operation not done; try again. */

Definition at line 22 of file grant_table.h.

◆ GNTTABOP_error_msgs

#define GNTTABOP_error_msgs
Value:
{ \
"okay", \
"undefined error", \
"unrecognised domain id", \
"invalid grant reference", \
"invalid mapping handle", \
"invalid virtual address", \
"invalid device address", \
"no spare translation slot in the I/O MMU", \
"permission denied", \
"bad page", \
"copy arguments cross page boundary", \
"page address size too large", \
"operation not done; try again", \
}

Definition at line 24 of file grant_table.h.

◆ GTF_invalid

#define GTF_invalid   (0 << 0)

Definition at line 49 of file grant_table.h.

◆ GTF_permit_access

#define GTF_permit_access   (1 << 0)

Definition at line 50 of file grant_table.h.

◆ GTF_accept_transfer

#define GTF_accept_transfer   (2 << 0)

Definition at line 51 of file grant_table.h.

◆ GTF_transitive

#define GTF_transitive   (3 << 0)

Definition at line 52 of file grant_table.h.

◆ GTF_type_mask

#define GTF_type_mask   (3 << 0)

Definition at line 53 of file grant_table.h.

◆ _GTF_readonly

#define _GTF_readonly   2

Definition at line 65 of file grant_table.h.

◆ GTF_readonly

#define GTF_readonly   (1 << _GTF_readonly)

Definition at line 66 of file grant_table.h.

◆ _GTF_reading

#define _GTF_reading   3

Definition at line 68 of file grant_table.h.

◆ GTF_reading

#define GTF_reading   (1 << _GTF_reading)

Definition at line 69 of file grant_table.h.

◆ _GTF_writing

#define _GTF_writing   4

Definition at line 71 of file grant_table.h.

◆ GTF_writing

#define GTF_writing   (1 << _GTF_writing)

Definition at line 72 of file grant_table.h.

◆ _GTF_PWT

#define _GTF_PWT   5

Definition at line 74 of file grant_table.h.

◆ GTF_PWT

#define GTF_PWT   (1 << _GTF_PWT)

Definition at line 75 of file grant_table.h.

◆ _GTF_PCD

#define _GTF_PCD   6

Definition at line 77 of file grant_table.h.

◆ GTF_PCD

#define GTF_PCD   (1 << _GTF_PCD)

Definition at line 78 of file grant_table.h.

◆ _GTF_PAT

#define _GTF_PAT   7

Definition at line 80 of file grant_table.h.

◆ GTF_PAT

#define GTF_PAT   (1 << _GTF_PAT)

Definition at line 81 of file grant_table.h.

◆ _GTF_sub_page

#define _GTF_sub_page   8

Definition at line 83 of file grant_table.h.

◆ GTF_sub_page

#define GTF_sub_page   (1 << _GTF_sub_page)

Definition at line 84 of file grant_table.h.

◆ _GTF_transfer_committed

#define _GTF_transfer_committed   2

Definition at line 96 of file grant_table.h.

◆ GTF_transfer_committed

#define GTF_transfer_committed   (1 << _GTF_transfer_committed)

Definition at line 97 of file grant_table.h.

◆ _GTF_transfer_completed

#define _GTF_transfer_completed   3

Definition at line 99 of file grant_table.h.

◆ GTF_transfer_completed

#define GTF_transfer_completed   (1 << _GTF_transfer_completed)

Definition at line 100 of file grant_table.h.

◆ _GNTMAP_device_map

#define _GNTMAP_device_map   0

Definition at line 175 of file grant_table.h.

◆ GNTMAP_device_map

#define GNTMAP_device_map   (1 << _GNTMAP_device_map)

Definition at line 176 of file grant_table.h.

◆ _GNTMAP_host_map

#define _GNTMAP_host_map   1

Definition at line 178 of file grant_table.h.

◆ GNTMAP_host_map

#define GNTMAP_host_map   (1 << _GNTMAP_host_map)

Definition at line 179 of file grant_table.h.

◆ _GNTMAP_readonly

#define _GNTMAP_readonly   2

Definition at line 181 of file grant_table.h.

◆ GNTMAP_readonly

#define GNTMAP_readonly   (1 << _GNTMAP_readonly)

Definition at line 182 of file grant_table.h.

◆ _GNTMAP_application_map

#define _GNTMAP_application_map   3

Definition at line 188 of file grant_table.h.

◆ GNTMAP_application_map

#define GNTMAP_application_map   (1 << _GNTMAP_application_map)

Definition at line 189 of file grant_table.h.

◆ _GNTMAP_contains_pte

#define _GNTMAP_contains_pte   4

Definition at line 196 of file grant_table.h.

◆ GNTMAP_contains_pte

#define GNTMAP_contains_pte   (1 << _GNTMAP_contains_pte)

Definition at line 197 of file grant_table.h.

◆ _GNTMAP_guest_avail0

#define _GNTMAP_guest_avail0   16

Definition at line 203 of file grant_table.h.

◆ GNTMAP_guest_avail_mask

#define GNTMAP_guest_avail_mask   ((uint32_t)~0 << _GNTMAP_guest_avail0)

Definition at line 204 of file grant_table.h.

◆ GNTTABOP_map_grant_ref

#define GNTTABOP_map_grant_ref   0

Definition at line 223 of file grant_table.h.

◆ GNTTABOP_unmap_grant_ref

#define GNTTABOP_unmap_grant_ref   1

Definition at line 247 of file grant_table.h.

◆ GNTTABOP_setup_table

#define GNTTABOP_setup_table   2

Definition at line 266 of file grant_table.h.

◆ GNTTABOP_unmap_and_replace

#define GNTTABOP_unmap_and_replace   7

Definition at line 288 of file grant_table.h.

◆ GNTTABOP_set_version

#define GNTTABOP_set_version   8

Definition at line 304 of file grant_table.h.

◆ GNTTABOP_get_status_frames

#define GNTTABOP_get_status_frames   9

Definition at line 316 of file grant_table.h.

◆ GNTTABOP_cache_flush

#define GNTTABOP_cache_flush   12

Definition at line 330 of file grant_table.h.

◆ GNTTAB_CACHE_CLEAN

#define GNTTAB_CACHE_CLEAN   (1<<0)

Definition at line 338 of file grant_table.h.

◆ GNTTAB_CACHE_INVAL

#define GNTTAB_CACHE_INVAL   (1<<1)

Definition at line 339 of file grant_table.h.

◆ GNTTAB_CACHE_SOURCE_GREF

#define GNTTAB_CACHE_SOURCE_GREF   (1<<31)

Definition at line 340 of file grant_table.h.

Typedef Documentation

◆ grant_ref_t

Definition at line 102 of file grant_table.h.

◆ grant_handle_t

Definition at line 103 of file grant_table.h.