staging: ath6kl: Convert enum A_STATUS to int
[linux-2.6.git] / drivers / staging / ath6kl / include / dset_api.h
blobc2014f2b86498f138340ad66e1008e8c8e2b214d
1 //------------------------------------------------------------------------------
2 // <copyright file="dset_api.h" company="Atheros">
3 // Copyright (c) 2004-2010 Atheros Corporation. All rights reserved.
4 //
5 //
6 // Permission to use, copy, modify, and/or distribute this software for any
7 // purpose with or without fee is hereby granted, provided that the above
8 // copyright notice and this permission notice appear in all copies.
9 //
10 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 //------------------------------------------------------------------------------
20 //==============================================================================
21 // Host-side DataSet API.
23 // Author(s): ="Atheros"
24 //==============================================================================
25 #ifndef _DSET_API_H_
26 #define _DSET_API_H_
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
33 * Host-side DataSet support is optional, and is not
34 * currently required for correct operation. To disable
35 * Host-side DataSet support, set this to 0.
37 #ifndef CONFIG_HOST_DSET_SUPPORT
38 #define CONFIG_HOST_DSET_SUPPORT 1
39 #endif
41 /* Called to send a DataSet Open Reply back to the Target. */
42 int wmi_dset_open_reply(struct wmi_t *wmip,
43 A_UINT32 status,
44 A_UINT32 access_cookie,
45 A_UINT32 size,
46 A_UINT32 version,
47 A_UINT32 targ_handle,
48 A_UINT32 targ_reply_fn,
49 A_UINT32 targ_reply_arg);
51 /* Called to send a DataSet Data Reply back to the Target. */
52 int wmi_dset_data_reply(struct wmi_t *wmip,
53 A_UINT32 status,
54 A_UINT8 *host_buf,
55 A_UINT32 length,
56 A_UINT32 targ_buf,
57 A_UINT32 targ_reply_fn,
58 A_UINT32 targ_reply_arg);
60 #ifdef __cplusplus
62 #endif /* __cplusplus */
65 #endif /* _DSET_API_H_ */