Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#include "xen.h"
Go to the source code of this file.
Data Structures | |
struct | grant_entry |
struct | gnttab_map_grant_ref |
struct | gnttab_unmap_grant_ref |
struct | gnttab_setup_table |
Macros | |
#define | grant_entry_v1 grant_entry |
#define | grant_entry_v1_t grant_entry_t |
#define | GNTTAB_NR_RESERVED_ENTRIES 8 |
#define | GNTTAB_RESERVED_CONSOLE 0 |
#define | GNTTAB_RESERVED_XENSTORE 1 |
#define | GTF_invalid (0U << 0) |
#define | GTF_permit_access (1U << 0) |
#define | GTF_accept_transfer (2U << 0) |
#define | GTF_transitive (3U << 0) |
#define | GTF_type_mask (3U << 0) |
#define | GTF_readonly (1U << _GTF_readonly) |
#define | GTF_reading (1U << _GTF_reading) |
#define | GTF_writing (1U << _GTF_writing) |
#define | GTF_PWT (1U << _GTF_PWT) |
#define | GTF_PCD (1U << _GTF_PCD) |
#define | GTF_PAT (1U << _GTF_PAT) |
#define | GTF_sub_page (1U << _GTF_sub_page) |
#define | GTF_transfer_committed (1U << _GTF_transfer_committed) |
#define | GTF_transfer_completed (1U << _GTF_transfer_completed) |
#define | GNTTABOP_map_grant_ref 0 |
#define | GNTTABOP_unmap_grant_ref 1 |
#define | GNTTABOP_setup_table 2 |
#define | GNTTABOP_dump_table 3 |
#define | GNTTABOP_transfer 4 |
#define | GNTTABOP_copy 5 |
#define | GNTTABOP_query_size 6 |
#define | GNTTABOP_unmap_and_replace 7 |
#define | GNTMAP_device_map (1<<_GNTMAP_device_map) |
#define | GNTMAP_host_map (1<<_GNTMAP_host_map) |
#define | GNTMAP_readonly (1<<_GNTMAP_readonly) |
#define | GNTMAP_application_map (1<<_GNTMAP_application_map) |
#define | GNTMAP_contains_pte (1<<_GNTMAP_contains_pte) |
#define | GNTMAP_guest_avail_mask ((uint32_t)~0 << _GNTMAP_guest_avail0) |
#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 |
Typedefs | |
typedef uint32_t | grant_ref_t |
typedef struct grant_entry | grant_entry_t |
typedef uint32_t | grant_handle_t |
typedef struct gnttab_map_grant_ref | gnttab_map_grant_ref_t |
typedef struct gnttab_unmap_grant_ref | gnttab_unmap_grant_ref_t |
typedef struct gnttab_setup_table | gnttab_setup_table_t |
Functions | |
DEFINE_XEN_GUEST_HANDLE (gnttab_map_grant_ref_t) | |
DEFINE_XEN_GUEST_HANDLE (gnttab_unmap_grant_ref_t) | |
DEFINE_XEN_GUEST_HANDLE (gnttab_setup_table_t) | |
#define GNTMAP_application_map (1<<_GNTMAP_application_map) |
#define GNTMAP_contains_pte (1<<_GNTMAP_contains_pte) |
#define GNTMAP_device_map (1<<_GNTMAP_device_map) |
#define GNTMAP_guest_avail_mask ((uint32_t)~0 << _GNTMAP_guest_avail0) |
#define GNTMAP_host_map (1<<_GNTMAP_host_map) |
#define GNTMAP_readonly (1<<_GNTMAP_readonly) |
#define GNTST_address_too_big (-11) /* transfer page address too large */ |
#define GNTST_bad_copy_arg (-10) /* copy arguments cross page boundary */ |
#define GNTST_bad_dev_addr (-6) /* Inappropriate device address to unmap */ |
#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_page (-9) /* Specified page was invalid for op */ |
#define GNTST_bad_virt_addr (-5) /* Inappropriate virtual address to map */ |
#define GNTST_eagain (-12) /* Operation not done; try again */ |
#define GNTST_general_error (-1) /* General undefined error */ |
#define GNTST_no_device_space (-7) /* Out of space in I/O MMU */ |
#define GNTST_okay (0) /* Normal return */ |
#define GNTST_permission_denied (-8) /* Not enough privilege for operation */ |
#define GNTTAB_NR_RESERVED_ENTRIES 8 |
#define GNTTAB_RESERVED_CONSOLE 0 |
#define GNTTAB_RESERVED_XENSTORE 1 |
#define GNTTABOP_copy 5 |
#define GNTTABOP_dump_table 3 |
#define GNTTABOP_error_msgs |
#define GNTTABOP_map_grant_ref 0 |
#define GNTTABOP_query_size 6 |
#define GNTTABOP_setup_table 2 |
#define GNTTABOP_transfer 4 |
#define GNTTABOP_unmap_and_replace 7 |
#define GNTTABOP_unmap_grant_ref 1 |
#define grant_entry_v1 grant_entry |
#define grant_entry_v1_t grant_entry_t |
#define GTF_accept_transfer (2U << 0) |
#define GTF_invalid (0U << 0) |
#define GTF_PAT (1U << _GTF_PAT) |
#define GTF_PCD (1U << _GTF_PCD) |
#define GTF_permit_access (1U << 0) |
#define GTF_PWT (1U << _GTF_PWT) |
#define GTF_reading (1U << _GTF_reading) |
#define GTF_readonly (1U << _GTF_readonly) |
#define GTF_sub_page (1U << _GTF_sub_page) |
#define GTF_transfer_committed (1U << _GTF_transfer_committed) |
#define GTF_transfer_completed (1U << _GTF_transfer_completed) |
#define GTF_transitive (3U << 0) |
#define GTF_type_mask (3U << 0) |
#define GTF_writing (1U << _GTF_writing) |
typedef struct gnttab_map_grant_ref gnttab_map_grant_ref_t |
typedef struct gnttab_setup_table gnttab_setup_table_t |
typedef struct gnttab_unmap_grant_ref gnttab_unmap_grant_ref_t |
typedef struct grant_entry grant_entry_t |
typedef uint32_t grant_handle_t |
typedef uint32_t grant_ref_t |
DEFINE_XEN_GUEST_HANDLE | ( | gnttab_map_grant_ref_t | ) |
DEFINE_XEN_GUEST_HANDLE | ( | gnttab_setup_table_t | ) |
DEFINE_XEN_GUEST_HANDLE | ( | gnttab_unmap_grant_ref_t | ) |