gprs_proxy.h 991 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /******************************************************************************
  2. 版权所有:
  3. 文件名称: gprs_proxy.h
  4. 文件版本: 01.01
  5. 创建作者: xxxxxx
  6. 创建日期: 2014.7.11
  7. 功能说明: GPRS代理驱动头文件.
  8. 其它说明:
  9. 修改记录:
  10. */
  11. #ifndef _GPRS_PROXY_H
  12. #define _GPRS_PROXY_H
  13. #include "gh_vs.h"
  14. //主设备号
  15. #ifndef GPRS_PROXY_DEV_MAJOR
  16. #define GPRS_PROXY_DEV_MAJOR 240
  17. #endif
  18. //设备节点名
  19. #ifndef GH_VS_DEV0
  20. #define GH_VS_DEV0 "/dev/gprs_proxy0"
  21. #endif
  22. //魔数
  23. #define CFG_IOCTL_GPRS_PROXY_TYPE 0xF6
  24. #define GPRS_PROXY_RESET_GPRS _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 1, int)
  25. #define GPRS_PROXY_SET_GPRSINFO _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 2, struct gprs_info)
  26. #define GPRS_PROXY_ENABLE_GPRS _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 3, int)
  27. #define GPRS_PROXY_DISABLE_GPRS _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 4, int)
  28. #define GPRS_PROXY_SET_RESET _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 5, int)
  29. #define GPRS_PROXY_GET_RESET _IOW(CFG_IOCTL_GPRS_PROXY_TYPE, 6, int)
  30. #endif /* GOOSE_DRV_H */