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