x86/xen: resume timer irqs early
[linux/fpc-iii.git] / arch / tile / gxio / iorpc_globals.c
blobe178e90805a2dab878bb8815a9e4de8d83cd3c55
1 /*
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
12 * more details.
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),
30 IORPC_OP_ARM_POLLFD);
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 {
53 HV_PTE base;
56 int __iorpc_get_mmio_base(int fd, HV_PTE *base)
58 int __result;
59 struct get_mmio_base_param temp;
60 struct get_mmio_base_param *params = &temp;
62 __result =
63 hv_dev_pread(fd, 0, (HV_VirtAddr) params, sizeof(*params),
64 IORPC_OP_GET_MMIO_BASE);
65 *base = params->base;
67 return __result;
70 EXPORT_SYMBOL(__iorpc_get_mmio_base);
72 struct check_mmio_offset_param {
73 unsigned long offset;
74 unsigned long size;
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;
83 params->size = size;
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);