Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iorpc_globals.c
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Tilera Corporation. All Rights Reserved.
3  *
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.
7  *
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.
13  */
14 
15 /* This file is machine-generated; DO NOT EDIT! */
16 #include "gxio/iorpc_globals.h"
17 
20 };
21 
22 int __iorpc_arm_pollfd(int fd, int pollfd_cookie)
23 {
24  struct arm_pollfd_param temp;
25  struct arm_pollfd_param *params = &temp;
26 
27  params->pollfd.kernel.cookie = pollfd_cookie;
28 
29  return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
31 }
32 
34 
37 };
38 
39 int __iorpc_close_pollfd(int fd, int pollfd_cookie)
40 {
41  struct close_pollfd_param temp;
42  struct close_pollfd_param *params = &temp;
43 
44  params->pollfd.kernel.cookie = pollfd_cookie;
45 
46  return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
48 }
49 
51 
54 };
55 
57 {
58  int __result;
59  struct get_mmio_base_param temp;
60  struct get_mmio_base_param *params = &temp;
61 
62  __result =
63  hv_dev_pread(fd, 0, (HV_VirtAddr) params, sizeof(*params),
65  *base = params->base;
66 
67  return __result;
68 }
69 
71 
73  unsigned long offset;
74  unsigned long size;
75 };
76 
77 int __iorpc_check_mmio_offset(int fd, unsigned long offset, unsigned long size)
78 {
79  struct check_mmio_offset_param temp;
81 
82  params->offset = offset;
83  params->size = size;
84 
85  return hv_dev_pwrite(fd, 0, (HV_VirtAddr) params, sizeof(*params),
87 }
88