1 /*
2 * Copyright (c) 2017 Citrix Systems Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation;
7 * version 2.1 of the License.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <errno.h>
19
20 #include "private.h"
21
osdep_xendevicemodel_open(xendevicemodel_handle * dmod)22 int osdep_xendevicemodel_open(xendevicemodel_handle *dmod)
23 {
24 return 0;
25 }
26
osdep_xendevicemodel_close(xendevicemodel_handle * dmod)27 int osdep_xendevicemodel_close(xendevicemodel_handle *dmod)
28 {
29 return 0;
30 }
31
osdep_xendevicemodel_op(xendevicemodel_handle * dmod,domid_t domid,unsigned int nr_bufs,struct xendevicemodel_buf bufs[])32 int osdep_xendevicemodel_op(xendevicemodel_handle *dmod,
33 domid_t domid, unsigned int nr_bufs,
34 struct xendevicemodel_buf bufs[])
35 {
36 return xendevicemodel_xcall(dmod, domid, nr_bufs, bufs);
37 }
38
osdep_xendevicemodel_restrict(xendevicemodel_handle * dmod,domid_t domid)39 int osdep_xendevicemodel_restrict(xendevicemodel_handle *dmod,
40 domid_t domid)
41 {
42 errno = EOPNOTSUPP;
43 return -1;
44 }
45
46 /*
47 * Local variables:
48 * mode: C
49 * c-file-style: "BSD"
50 * c-basic-offset: 4
51 * tab-width: 4
52 * indent-tabs-mode: nil
53 * End:
54 */
55