msm_rpcrouter.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* include/linux/msm_rpcrouter.h
  2. *
  3. * Copyright (c) 2009, The Linux Foundation. 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. #include <linux/types.h>
  20. #include <linux/ioctl.h>
  21. #define RPC_ROUTER_VERSION_V1 0x00010000
  22. struct rpcrouter_ioctl_server_args {
  23. uint32_t prog;
  24. uint32_t vers;
  25. };
  26. #define RPC_ROUTER_IOCTL_MAGIC (0xC1)
  27. #define RPC_ROUTER_IOCTL_GET_VERSION \
  28. _IOR(RPC_ROUTER_IOCTL_MAGIC, 0, unsigned int)
  29. #define RPC_ROUTER_IOCTL_GET_MTU \
  30. _IOR(RPC_ROUTER_IOCTL_MAGIC, 1, unsigned int)
  31. #define RPC_ROUTER_IOCTL_REGISTER_SERVER \
  32. _IOWR(RPC_ROUTER_IOCTL_MAGIC, 2, unsigned int)
  33. #define RPC_ROUTER_IOCTL_UNREGISTER_SERVER \
  34. _IOWR(RPC_ROUTER_IOCTL_MAGIC, 3, unsigned int)
  35. #define RPC_ROUTER_IOCTL_CLEAR_NETRESET \
  36. _IOWR(RPC_ROUTER_IOCTL_MAGIC, 4, unsigned int)
  37. #define RPC_ROUTER_IOCTL_GET_CURR_PKT_SIZE \
  38. _IOR(RPC_ROUTER_IOCTL_MAGIC, 5, unsigned int)
  39. #endif