1226f52e9SStefano Stabellini /******************************************************************************
2226f52e9SStefano Stabellini * grant_table.c
3226f52e9SStefano Stabellini * ARM specific part
4226f52e9SStefano Stabellini *
5226f52e9SStefano Stabellini * Granting foreign access to our memory reservation.
6226f52e9SStefano Stabellini *
7226f52e9SStefano Stabellini * This program is free software; you can redistribute it and/or
8226f52e9SStefano Stabellini * modify it under the terms of the GNU General Public License version 2
9226f52e9SStefano Stabellini * as published by the Free Software Foundation; or, when distributed
10226f52e9SStefano Stabellini * separately from the Linux kernel or incorporated into other
11226f52e9SStefano Stabellini * software packages, subject to the following license:
12226f52e9SStefano Stabellini *
13226f52e9SStefano Stabellini * Permission is hereby granted, free of charge, to any person obtaining a copy
14226f52e9SStefano Stabellini * of this source file (the "Software"), to deal in the Software without
15226f52e9SStefano Stabellini * restriction, including without limitation the rights to use, copy, modify,
16226f52e9SStefano Stabellini * merge, publish, distribute, sublicense, and/or sell copies of the Software,
17226f52e9SStefano Stabellini * and to permit persons to whom the Software is furnished to do so, subject to
18226f52e9SStefano Stabellini * the following conditions:
19226f52e9SStefano Stabellini *
20226f52e9SStefano Stabellini * The above copyright notice and this permission notice shall be included in
21226f52e9SStefano Stabellini * all copies or substantial portions of the Software.
22226f52e9SStefano Stabellini *
23226f52e9SStefano Stabellini * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24226f52e9SStefano Stabellini * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25226f52e9SStefano Stabellini * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26226f52e9SStefano Stabellini * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27226f52e9SStefano Stabellini * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28226f52e9SStefano Stabellini * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
29226f52e9SStefano Stabellini * IN THE SOFTWARE.
30226f52e9SStefano Stabellini */
31226f52e9SStefano Stabellini
32226f52e9SStefano Stabellini #include <xen/interface/xen.h>
33226f52e9SStefano Stabellini #include <xen/page.h>
34226f52e9SStefano Stabellini #include <xen/grant_table.h>
35226f52e9SStefano Stabellini
arch_gnttab_map_shared(xen_pfn_t * frames,unsigned long nr_gframes,unsigned long max_nr_gframes,void ** __shared)36ef32f892SIan Campbell int arch_gnttab_map_shared(xen_pfn_t *frames, unsigned long nr_gframes,
37226f52e9SStefano Stabellini unsigned long max_nr_gframes,
38226f52e9SStefano Stabellini void **__shared)
39226f52e9SStefano Stabellini {
40226f52e9SStefano Stabellini return -ENOSYS;
41226f52e9SStefano Stabellini }
42226f52e9SStefano Stabellini
arch_gnttab_unmap(void * shared,unsigned long nr_gframes)43226f52e9SStefano Stabellini void arch_gnttab_unmap(void *shared, unsigned long nr_gframes)
44226f52e9SStefano Stabellini {
45226f52e9SStefano Stabellini return;
46226f52e9SStefano Stabellini }
47226f52e9SStefano Stabellini
arch_gnttab_map_status(uint64_t * frames,unsigned long nr_gframes,unsigned long max_nr_gframes,grant_status_t ** __shared)48*b988b8ffSJuergen Gross int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes,
49*b988b8ffSJuergen Gross unsigned long max_nr_gframes,
50*b988b8ffSJuergen Gross grant_status_t **__shared)
51*b988b8ffSJuergen Gross {
52*b988b8ffSJuergen Gross return -ENOSYS;
53*b988b8ffSJuergen Gross }
54*b988b8ffSJuergen Gross
arch_gnttab_init(unsigned long nr_shared,unsigned long nr_status)55*b988b8ffSJuergen Gross int arch_gnttab_init(unsigned long nr_shared, unsigned long nr_status)
56226f52e9SStefano Stabellini {
57162e3717SDavid Vrabel return 0;
58226f52e9SStefano Stabellini }
59