80714b51285aefaae911e25bfbdfa8a36cfbf762
[openwrt.git] / package / libertas / src / cmd.h
1 /* Copyright (C) 2007, Red Hat, Inc. */
2
3 #ifndef _LBS_CMD_H_
4 #define _LBS_CMD_H_
5
6 #include "hostcmd.h"
7 #include "dev.h"
8
9 #define lbs_cmd(priv, cmdnr, cmd, callback, callback_arg) \
10 __lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \
11 callback, callback_arg)
12
13 #define lbs_cmd_with_response(priv, cmdnr, cmd) \
14 __lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \
15 lbs_cmd_copyback, (unsigned long) &cmd)
16
17 int __lbs_cmd(struct lbs_private *priv, uint16_t command,
18 struct cmd_header *in_cmd, int in_cmd_size,
19 int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *),
20 unsigned long callback_arg);
21
22 int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra,
23 struct cmd_header *resp);
24
25 int lbs_update_hw_spec(struct lbs_private *priv);
26
27 int lbs_mesh_access(struct lbs_private *priv, uint16_t cmd_action,
28 struct cmd_ds_mesh_access *cmd);
29
30 int lbs_get_data_rate(struct lbs_private *priv);
31 int lbs_set_data_rate(struct lbs_private *priv, u8 rate);
32
33 int lbs_get_channel(struct lbs_private *priv);
34 int lbs_set_channel(struct lbs_private *priv, u8 channel);
35
36 int lbs_mesh_config(struct lbs_private *priv, int enable);
37
38 #endif /* _LBS_CMD_H */
This page took 0.046056 seconds and 3 git commands to generate.