Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
iorpc_mpipe.h
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 #ifndef __GXIO_MPIPE_LINUX_RPC_H__
17 #define __GXIO_MPIPE_LINUX_RPC_H__
18 
19 #include <hv/iorpc.h>
20 
21 #include <hv/drv_mpipe_intf.h>
22 #include <asm/page.h>
23 #include <gxio/kiorpc.h>
24 #include <gxio/mpipe.h>
25 #include <linux/string.h>
26 #include <linux/module.h>
27 #include <asm/pgtable.h>
28 
29 #define GXIO_MPIPE_OP_ALLOC_BUFFER_STACKS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1200)
30 #define GXIO_MPIPE_OP_INIT_BUFFER_STACK_AUX IORPC_OPCODE(IORPC_FORMAT_KERNEL_MEM, 0x1201)
31 
32 #define GXIO_MPIPE_OP_ALLOC_NOTIF_RINGS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1203)
33 #define GXIO_MPIPE_OP_INIT_NOTIF_RING_AUX IORPC_OPCODE(IORPC_FORMAT_KERNEL_MEM, 0x1204)
34 #define GXIO_MPIPE_OP_REQUEST_NOTIF_RING_INTERRUPT IORPC_OPCODE(IORPC_FORMAT_KERNEL_INTERRUPT, 0x1205)
35 #define GXIO_MPIPE_OP_ENABLE_NOTIF_RING_INTERRUPT IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1206)
36 #define GXIO_MPIPE_OP_ALLOC_NOTIF_GROUPS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1207)
37 #define GXIO_MPIPE_OP_INIT_NOTIF_GROUP IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1208)
38 #define GXIO_MPIPE_OP_ALLOC_BUCKETS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1209)
39 #define GXIO_MPIPE_OP_INIT_BUCKET IORPC_OPCODE(IORPC_FORMAT_NONE, 0x120a)
40 #define GXIO_MPIPE_OP_ALLOC_EDMA_RINGS IORPC_OPCODE(IORPC_FORMAT_NONE, 0x120b)
41 #define GXIO_MPIPE_OP_INIT_EDMA_RING_AUX IORPC_OPCODE(IORPC_FORMAT_KERNEL_MEM, 0x120c)
42 
43 #define GXIO_MPIPE_OP_COMMIT_RULES IORPC_OPCODE(IORPC_FORMAT_NONE, 0x120f)
44 #define GXIO_MPIPE_OP_REGISTER_CLIENT_MEMORY IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1210)
45 #define GXIO_MPIPE_OP_LINK_OPEN_AUX IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1211)
46 #define GXIO_MPIPE_OP_LINK_CLOSE_AUX IORPC_OPCODE(IORPC_FORMAT_NONE, 0x1212)
47 
48 #define GXIO_MPIPE_OP_GET_TIMESTAMP_AUX IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x121e)
49 #define GXIO_MPIPE_OP_SET_TIMESTAMP_AUX IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x121f)
50 #define GXIO_MPIPE_OP_ADJUST_TIMESTAMP_AUX IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x1220)
51 #define GXIO_MPIPE_OP_ARM_POLLFD IORPC_OPCODE(IORPC_FORMAT_KERNEL_POLLFD, 0x9000)
52 #define GXIO_MPIPE_OP_CLOSE_POLLFD IORPC_OPCODE(IORPC_FORMAT_KERNEL_POLLFD, 0x9001)
53 #define GXIO_MPIPE_OP_GET_MMIO_BASE IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8000)
54 #define GXIO_MPIPE_OP_CHECK_MMIO_OFFSET IORPC_OPCODE(IORPC_FORMAT_NONE_NOUSER, 0x8001)
55 
57  unsigned int count, unsigned int first,
58  unsigned int flags);
59 
61  void *mem_va, size_t mem_size,
62  unsigned int mem_flags, unsigned int stack,
63  unsigned int buffer_size_enum);
64 
65 
67  unsigned int count, unsigned int first,
68  unsigned int flags);
69 
71  size_t mem_size, unsigned int mem_flags,
72  unsigned int ring);
73 
75  int inter_x, int inter_y,
76  int inter_ipi, int inter_event,
77  unsigned int ring);
78 
80  unsigned int ring);
81 
83  unsigned int count, unsigned int first,
84  unsigned int flags);
85 
87  unsigned int group,
89 
91  unsigned int first, unsigned int flags);
92 
93 int gxio_mpipe_init_bucket(gxio_mpipe_context_t * context, unsigned int bucket,
94  MPIPE_LBL_INIT_DAT_BSTS_TBL_t bucket_info);
95 
97  unsigned int count, unsigned int first,
98  unsigned int flags);
99 
101  size_t mem_size, unsigned int mem_flags,
102  unsigned int ring, unsigned int channel);
103 
104 
106  size_t blob_size);
107 
109  unsigned int iotlb, HV_PTE pte,
110  unsigned int flags);
111 
113  _gxio_mpipe_link_name_t name, unsigned int flags);
114 
116 
117 
119  uint64_t * nsec, uint64_t * cycles);
120 
122  uint64_t nsec, uint64_t cycles);
123 
125  int64_t nsec);
126 
127 int gxio_mpipe_arm_pollfd(gxio_mpipe_context_t * context, int pollfd_cookie);
128 
129 int gxio_mpipe_close_pollfd(gxio_mpipe_context_t * context, int pollfd_cookie);
130 
132 
134  unsigned long offset, unsigned long size);
135 
136 #endif /* !__GXIO_MPIPE_LINUX_RPC_H__ */