Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* include/linux/msm_rpcrouter.h |
| 2 | * |
| 3 | * Copyright (c) 2009, Code Aurora Forum. All rights reserved. |
| 4 | * 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 | |
| 25 | struct 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 |