debug-cmd.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Ultra Wide Band
  3. * Debug interface commands
  4. *
  5. * Copyright (C) 2008 Cambridge Silicon Radio Ltd.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License version
  9. * 2 as published by the Free Software Foundation.
  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. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __LINUX__UWB__DEBUG_CMD_H__
  20. #define __LINUX__UWB__DEBUG_CMD_H__
  21. #include <linux/types.h>
  22. /*
  23. * Debug interface commands
  24. *
  25. * UWB_DBG_CMD_RSV_ESTABLISH: Establish a new unicast reservation.
  26. *
  27. * UWB_DBG_CMD_RSV_TERMINATE: Terminate the Nth reservation.
  28. */
  29. enum uwb_dbg_cmd_type {
  30. UWB_DBG_CMD_RSV_ESTABLISH = 1,
  31. UWB_DBG_CMD_RSV_TERMINATE = 2,
  32. UWB_DBG_CMD_IE_ADD = 3,
  33. UWB_DBG_CMD_IE_RM = 4,
  34. UWB_DBG_CMD_RADIO_START = 5,
  35. UWB_DBG_CMD_RADIO_STOP = 6,
  36. };
  37. struct uwb_dbg_cmd_rsv_establish {
  38. __u8 target[6];
  39. __u8 type;
  40. __u16 max_mas;
  41. __u16 min_mas;
  42. __u8 max_interval;
  43. };
  44. struct uwb_dbg_cmd_rsv_terminate {
  45. int index;
  46. };
  47. struct uwb_dbg_cmd_ie {
  48. __u8 data[128];
  49. int len;
  50. };
  51. struct uwb_dbg_cmd {
  52. __u32 type;
  53. union {
  54. struct uwb_dbg_cmd_rsv_establish rsv_establish;
  55. struct uwb_dbg_cmd_rsv_terminate rsv_terminate;
  56. struct uwb_dbg_cmd_ie ie_add;
  57. struct uwb_dbg_cmd_ie ie_rm;
  58. };
  59. };
  60. #endif /* #ifndef __LINUX__UWB__DEBUG_CMD_H__ */