2 * Copyright 2012 Tilera Corporation. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
15 /* This file is machine-generated; DO NOT EDIT! */
16 #include "gxio/iorpc_globals.h"
18 struct arm_pollfd_param {
19 union iorpc_pollfd pollfd;
22 int __iorpc_arm_pollfd(int fd, int pollfd_cookie)
24 struct arm_pollfd_param temp;
25 struct arm_pollfd_param *params = &temp;
27 params->pollfd.kernel.cookie = pollfd_cookie;
29 return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
33 EXPORT_SYMBOL(__iorpc_arm_pollfd);
35 struct close_pollfd_param {
36 union iorpc_pollfd pollfd;
39 int __iorpc_close_pollfd(int fd, int pollfd_cookie)
41 struct close_pollfd_param temp;
42 struct close_pollfd_param *params = &temp;
44 params->pollfd.kernel.cookie = pollfd_cookie;
46 return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
47 IORPC_OP_CLOSE_POLLFD);
50 EXPORT_SYMBOL(__iorpc_close_pollfd);
52 struct get_mmio_base_param {
56 int __iorpc_get_mmio_base(int fd, HV_PTE *base)
59 struct get_mmio_base_param temp;
60 struct get_mmio_base_param *params = &temp;
63 hv_dev_pread(fd, 0, (HV_VirtAddr) params, sizeof(*params),
64 IORPC_OP_GET_MMIO_BASE);
70 EXPORT_SYMBOL(__iorpc_get_mmio_base);
72 struct check_mmio_offset_param {
77 int __iorpc_check_mmio_offset(int fd, unsigned long offset, unsigned long size)
79 struct check_mmio_offset_param temp;
80 struct check_mmio_offset_param *params = &temp;
82 params->offset = offset;
85 return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
86 IORPC_OP_CHECK_MMIO_OFFSET);
89 EXPORT_SYMBOL(__iorpc_check_mmio_offset);