Go to the documentation of this file.
28 #ifndef __XEN_PUBLIC_GRANT_TABLE_H__
29 #define __XEN_PUBLIC_GRANT_TABLE_H__
124 #define GTF_invalid (0U<<0)
125 #define GTF_permit_access (1U<<0)
126 #define GTF_accept_transfer (2U<<0)
127 #define GTF_transitive (3U<<0)
128 #define GTF_type_mask (3U<<0)
139 #define _GTF_readonly (2)
140 #define GTF_readonly (1U<<_GTF_readonly)
141 #define _GTF_reading (3)
142 #define GTF_reading (1U<<_GTF_reading)
143 #define _GTF_writing (4)
144 #define GTF_writing (1U<<_GTF_writing)
145 #define _GTF_sub_page (8)
146 #define GTF_sub_page (1U<<_GTF_sub_page)
158 #define _GTF_transfer_committed (2)
159 #define GTF_transfer_committed (1U<<_GTF_transfer_committed)
160 #define _GTF_transfer_completed (3)
161 #define GTF_transfer_completed (1U<<_GTF_transfer_completed)
261 #define GNTTABOP_map_grant_ref 0
286 #define GNTTABOP_unmap_grant_ref 1
306 #define GNTTABOP_setup_table 2
321 #define GNTTABOP_dump_table 3
338 #define GNTTABOP_transfer 4
367 #define _GNTCOPY_source_gref (0)
368 #define GNTCOPY_source_gref (1<<_GNTCOPY_source_gref)
369 #define _GNTCOPY_dest_gref (1)
370 #define GNTCOPY_dest_gref (1<<_GNTCOPY_dest_gref)
372 #define GNTTABOP_copy 5
397 #define GNTTABOP_query_size 6
419 #define GNTTABOP_unmap_and_replace 7
437 #define GNTTABOP_set_version 8
456 #define GNTTABOP_get_status_frames 9
471 #define GNTTABOP_get_version 10
485 #define _GNTMAP_device_map (0)
486 #define GNTMAP_device_map (1<<_GNTMAP_device_map)
488 #define _GNTMAP_host_map (1)
489 #define GNTMAP_host_map (1<<_GNTMAP_host_map)
491 #define _GNTMAP_readonly (2)
492 #define GNTMAP_readonly (1<<_GNTMAP_readonly)
498 #define _GNTMAP_application_map (3)
499 #define GNTMAP_application_map (1<<_GNTMAP_application_map)
506 #define _GNTMAP_contains_pte (4)
507 #define GNTMAP_contains_pte (1<<_GNTMAP_contains_pte)
512 #define GNTST_okay (0)
513 #define GNTST_general_error (-1)
514 #define GNTST_bad_domain (-2)
515 #define GNTST_bad_gntref (-3)
516 #define GNTST_bad_handle (-4)
517 #define GNTST_bad_virt_addr (-5)
518 #define GNTST_bad_dev_addr (-6)
519 #define GNTST_no_device_space (-7)
520 #define GNTST_permission_denied (-8)
521 #define GNTST_bad_page (-9)
522 #define GNTST_bad_copy_arg (-10)
523 #define GNTST_address_too_big (-11)
524 #define GNTST_eagain (-12)
526 #define GNTTABOP_error_msgs { \
529 "unrecognised domain id", \
530 "invalid grant reference", \
531 "invalid mapping handle", \
532 "invalid virtual address", \
533 "invalid device address", \
534 "no spare translation slot in the I/O MMU", \
535 "permission denied", \
537 "copy arguments cross page boundary", \
538 "page address size too large", \
539 "operation not done; try again" \