Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
memory.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MIT */
2
3
/******************************************************************************
4
* memory.h
5
*
6
* Memory reservation and information.
7
*
8
* Permission is hereby granted, free of charge, to any person obtaining a copy
9
* of this software and associated documentation files (the "Software"), to
10
* deal in the Software without restriction, including without limitation the
11
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12
* sell copies of the Software, and to permit persons to whom the Software is
13
* furnished to do so, subject to the following conditions:
14
*
15
* The above copyright notice and this permission notice shall be included in
16
* all copies or substantial portions of the Software.
17
*
18
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24
* DEALINGS IN THE SOFTWARE.
25
*
26
* Copyright (c) 2005, Keir Fraser <keir@xensource.com>
27
*/
28
29
#ifndef __XEN_PUBLIC_MEMORY_H__
30
#define __XEN_PUBLIC_MEMORY_H__
31
32
#include "
xen.h
"
33
34
#define XENMAPSPACE_shared_info 0
/* shared info page */
35
#define XENMAPSPACE_grant_table 1
/* grant table page */
36
#define XENMAPSPACE_gmfn 2
/* GMFN */
37
38
/* GMFN range, XENMEM_add_to_physmap only.*/
39
#define XENMAPSPACE_gmfn_range 3
40
41
/* GMFN from another dom, XENMEM_add_to_physmap_batch only. */
42
#define XENMAPSPACE_gmfn_foreign 4
43
44
/*
45
* Device mmio region ARM only; the region is mapped in Stage-2 using the
46
* Normal Memory Inner/Outer Write-Back Cacheable memory attribute.
47
*/
48
#define XENMAPSPACE_dev_mmio 5
49
50
/*
51
* Sets the GPFN at which a particular page appears in the specified guest's
52
* physical address space (translated guests only).
53
* arg == addr of xen_add_to_physmap_t.
54
*/
55
#define XENMEM_add_to_physmap 7
56
struct
xen_add_to_physmap
{
57
/* Which domain to change the mapping for. */
58
domid_t
domid
;
59
60
/* Number of pages to go through for gmfn_range */
61
uint16_t
size
;
62
63
unsigned
int
space
;
/* => enum phys_map_space */
64
65
#define XENMAPIDX_grant_table_status 0x80000000
66
67
/* Index into space being mapped. */
68
xen_ulong_t
idx
;
69
70
/* GPFN in domid where the source mapping page should appear. */
71
xen_pfn_t
gpfn
;
72
};
73
typedef
struct
xen_add_to_physmap
xen_add_to_physmap_t
;
74
DEFINE_XEN_GUEST_HANDLE
(
xen_add_to_physmap_t
);
75
76
#endif
/* __XEN_PUBLIC_MEMORY_H__ */
xen_pfn_t
uint64_t xen_pfn_t
Definition:
arch-arm.h:204
xen_ulong_t
uint64_t xen_ulong_t
Definition:
arch-arm.h:208
DEFINE_XEN_GUEST_HANDLE
DEFINE_XEN_GUEST_HANDLE(xen_add_to_physmap_t)
uint16_t
__UINT16_TYPE__ uint16_t
Definition:
stdint.h:59
xen_add_to_physmap
Definition:
memory.h:56
xen_add_to_physmap::size
uint16_t size
Definition:
memory.h:61
xen_add_to_physmap::idx
xen_ulong_t idx
Definition:
memory.h:68
xen_add_to_physmap::space
unsigned int space
Definition:
memory.h:63
xen_add_to_physmap::gpfn
xen_pfn_t gpfn
Definition:
memory.h:71
xen_add_to_physmap::domid
domid_t domid
Definition:
memory.h:58
xen.h
domid_t
uint16_t domid_t
Definition:
xen.h:216
include
xen
public
memory.h
Generated on Mon Feb 21 2022 22:43:02 for Zephyr API Documentation by
1.9.2