1 /******************************************************************************
2  *
3  * Copyright (c) 2007-2008, D G Murray <Derek.Murray@cl.cam.ac.uk>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation;
8  * version 2.1 of the License.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; If not, see <http://www.gnu.org/licenses/>.
17  *
18  * Split out from xc_gnttab.c
19  */
20 
21 #include <stdlib.h>
22 
23 #include "private.h"
24 
xengnttab_open(xentoollog_logger * logger,unsigned open_flags)25 xengnttab_handle *xengnttab_open(xentoollog_logger *logger, unsigned open_flags)
26 {
27     return NULL;
28 }
29 
xengnttab_close(xengnttab_handle * xgt)30 int xengnttab_close(xengnttab_handle *xgt)
31 {
32     return 0;
33 }
34 
xengnttab_set_max_grants(xengnttab_handle * xgt,uint32_t count)35 int xengnttab_set_max_grants(xengnttab_handle *xgt, uint32_t count)
36 {
37     abort();
38 }
39 
xengnttab_map_grant_ref(xengnttab_handle * xgt,uint32_t domid,uint32_t ref,int prot)40 void *xengnttab_map_grant_ref(xengnttab_handle *xgt,
41                               uint32_t domid,
42                               uint32_t ref,
43                               int prot)
44 {
45     abort();
46 }
47 
xengnttab_map_grant_refs(xengnttab_handle * xgt,uint32_t count,uint32_t * domids,uint32_t * refs,int prot)48 void *xengnttab_map_grant_refs(xengnttab_handle *xgt,
49                                uint32_t count,
50                                uint32_t *domids,
51                                uint32_t *refs,
52                                int prot)
53 {
54     abort();
55 }
56 
xengnttab_map_domain_grant_refs(xengnttab_handle * xgt,uint32_t count,uint32_t domid,uint32_t * refs,int prot)57 void *xengnttab_map_domain_grant_refs(xengnttab_handle *xgt,
58                                       uint32_t count,
59                                       uint32_t domid,
60                                       uint32_t *refs,
61                                       int prot)
62 {
63     abort();
64 }
65 
xengnttab_map_grant_ref_notify(xengnttab_handle * xgt,uint32_t domid,uint32_t ref,int prot,uint32_t notify_offset,evtchn_port_t notify_port)66 void *xengnttab_map_grant_ref_notify(xengnttab_handle *xgt,
67                                      uint32_t domid,
68                                      uint32_t ref,
69                                      int prot,
70                                      uint32_t notify_offset,
71                                      evtchn_port_t notify_port)
72 {
73     abort();
74 }
75 
xengnttab_unmap(xengnttab_handle * xgt,void * start_address,uint32_t count)76 int xengnttab_unmap(xengnttab_handle *xgt, void *start_address, uint32_t count)
77 {
78     abort();
79 }
80 
xengnttab_grant_copy(xengnttab_handle * xgt,uint32_t count,xengnttab_grant_copy_segment_t * segs)81 int xengnttab_grant_copy(xengnttab_handle *xgt,
82                          uint32_t count,
83                          xengnttab_grant_copy_segment_t *segs)
84 {
85     abort();
86 }
87 /*
88  * Local variables:
89  * mode: C
90  * c-file-style: "BSD"
91  * c-basic-offset: 4
92  * tab-width: 4
93  * indent-tabs-mode: nil
94  * End:
95  */
96