1*226f52e9SStefano Stabellini /****************************************************************************** 2*226f52e9SStefano Stabellini * grant_table.c 3*226f52e9SStefano Stabellini * ARM specific part 4*226f52e9SStefano Stabellini * 5*226f52e9SStefano Stabellini * Granting foreign access to our memory reservation. 6*226f52e9SStefano Stabellini * 7*226f52e9SStefano Stabellini * This program is free software; you can redistribute it and/or 8*226f52e9SStefano Stabellini * modify it under the terms of the GNU General Public License version 2 9*226f52e9SStefano Stabellini * as published by the Free Software Foundation; or, when distributed 10*226f52e9SStefano Stabellini * separately from the Linux kernel or incorporated into other 11*226f52e9SStefano Stabellini * software packages, subject to the following license: 12*226f52e9SStefano Stabellini * 13*226f52e9SStefano Stabellini * Permission is hereby granted, free of charge, to any person obtaining a copy 14*226f52e9SStefano Stabellini * of this source file (the "Software"), to deal in the Software without 15*226f52e9SStefano Stabellini * restriction, including without limitation the rights to use, copy, modify, 16*226f52e9SStefano Stabellini * merge, publish, distribute, sublicense, and/or sell copies of the Software, 17*226f52e9SStefano Stabellini * and to permit persons to whom the Software is furnished to do so, subject to 18*226f52e9SStefano Stabellini * the following conditions: 19*226f52e9SStefano Stabellini * 20*226f52e9SStefano Stabellini * The above copyright notice and this permission notice shall be included in 21*226f52e9SStefano Stabellini * all copies or substantial portions of the Software. 22*226f52e9SStefano Stabellini * 23*226f52e9SStefano Stabellini * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24*226f52e9SStefano Stabellini * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 25*226f52e9SStefano Stabellini * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 26*226f52e9SStefano Stabellini * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 27*226f52e9SStefano Stabellini * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 28*226f52e9SStefano Stabellini * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 29*226f52e9SStefano Stabellini * IN THE SOFTWARE. 30*226f52e9SStefano Stabellini */ 31*226f52e9SStefano Stabellini 32*226f52e9SStefano Stabellini #include <xen/interface/xen.h> 33*226f52e9SStefano Stabellini #include <xen/page.h> 34*226f52e9SStefano Stabellini #include <xen/grant_table.h> 35*226f52e9SStefano Stabellini 36*226f52e9SStefano Stabellini int arch_gnttab_map_shared(unsigned long *frames, unsigned long nr_gframes, 37*226f52e9SStefano Stabellini unsigned long max_nr_gframes, 38*226f52e9SStefano Stabellini void **__shared) 39*226f52e9SStefano Stabellini { 40*226f52e9SStefano Stabellini return -ENOSYS; 41*226f52e9SStefano Stabellini } 42*226f52e9SStefano Stabellini 43*226f52e9SStefano Stabellini void arch_gnttab_unmap(void *shared, unsigned long nr_gframes) 44*226f52e9SStefano Stabellini { 45*226f52e9SStefano Stabellini return; 46*226f52e9SStefano Stabellini } 47*226f52e9SStefano Stabellini 48*226f52e9SStefano Stabellini int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes, 49*226f52e9SStefano Stabellini unsigned long max_nr_gframes, 50*226f52e9SStefano Stabellini grant_status_t **__shared) 51*226f52e9SStefano Stabellini { 52*226f52e9SStefano Stabellini return -ENOSYS; 53*226f52e9SStefano Stabellini } 54