blob: cd304f3f88aae1042c804cecc05a2faa547e3c13 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* include/linux/msm_rpcrouter.h
2 *
Duy Truong790f06d2013-02-13 16:38:12 -08003 * Copyright (c) 2009, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07004 * Copyright (C) 2007 Google, Inc.
5 * Author: San Mehat <san@android.com>
6 *
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 */
17#ifndef __LINUX_MSM_RPCROUTER_H
18#define __LINUX_MSM_RPCROUTER_H
19
20#include <linux/types.h>
21#include <linux/ioctl.h>
22
23#define RPC_ROUTER_VERSION_V1 0x00010000
24
25struct rpcrouter_ioctl_server_args {
26 uint32_t prog;
27 uint32_t vers;
28};
29
30#define RPC_ROUTER_IOCTL_MAGIC (0xC1)
31
32#define RPC_ROUTER_IOCTL_GET_VERSION \
33 _IOR(RPC_ROUTER_IOCTL_MAGIC, 0, unsigned int)
34
35#define RPC_ROUTER_IOCTL_GET_MTU \
36 _IOR(RPC_ROUTER_IOCTL_MAGIC, 1, unsigned int)
37
38#define RPC_ROUTER_IOCTL_REGISTER_SERVER \
39 _IOWR(RPC_ROUTER_IOCTL_MAGIC, 2, unsigned int)
40
41#define RPC_ROUTER_IOCTL_UNREGISTER_SERVER \
42 _IOWR(RPC_ROUTER_IOCTL_MAGIC, 3, unsigned int)
43
44#define RPC_ROUTER_IOCTL_CLEAR_NETRESET \
45 _IOWR(RPC_ROUTER_IOCTL_MAGIC, 4, unsigned int)
46
47#define RPC_ROUTER_IOCTL_GET_CURR_PKT_SIZE \
48 _IOR(RPC_ROUTER_IOCTL_MAGIC, 5, unsigned int)
49
50#endif