dset_api.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //------------------------------------------------------------------------------
  2. // <copyright file="dset_api.h" company="Atheros">
  3. // Copyright (c) 2004-2008 Atheros Corporation. All rights reserved.
  4. //
  5. // This program is free software; you can redistribute it and/or modify
  6. // it under the terms of the GNU General Public License version 2 as
  7. // published by the Free Software Foundation;
  8. //
  9. // Software distributed under the License is distributed on an "AS
  10. // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. // implied. See the License for the specific language governing
  12. // rights and limitations under the License.
  13. //
  14. //
  15. //------------------------------------------------------------------------------
  16. //==============================================================================
  17. // Host-side DataSet API.
  18. //
  19. // Author(s): ="Atheros"
  20. //==============================================================================
  21. #ifndef _DSET_API_H_
  22. #define _DSET_API_H_
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif /* __cplusplus */
  26. /*
  27. * Host-side DataSet support is optional, and is not
  28. * currently required for correct operation. To disable
  29. * Host-side DataSet support, set this to 0.
  30. */
  31. #ifndef CONFIG_HOST_DSET_SUPPORT
  32. #define CONFIG_HOST_DSET_SUPPORT 1
  33. #endif
  34. /* Called to send a DataSet Open Reply back to the Target. */
  35. A_STATUS wmi_dset_open_reply(struct wmi_t *wmip,
  36. A_UINT32 status,
  37. A_UINT32 access_cookie,
  38. A_UINT32 size,
  39. A_UINT32 version,
  40. A_UINT32 targ_handle,
  41. A_UINT32 targ_reply_fn,
  42. A_UINT32 targ_reply_arg);
  43. /* Called to send a DataSet Data Reply back to the Target. */
  44. A_STATUS wmi_dset_data_reply(struct wmi_t *wmip,
  45. A_UINT32 status,
  46. A_UINT8 *host_buf,
  47. A_UINT32 length,
  48. A_UINT32 targ_buf,
  49. A_UINT32 targ_reply_fn,
  50. A_UINT32 targ_reply_arg);
  51. #ifdef __cplusplus
  52. }
  53. #endif /* __cplusplus */
  54. #endif /* _DSET_API_H_ */