80714b51285aefaae911e25bfbdfa8a36cfbf762
1 /* Copyright (C) 2007, Red Hat, Inc. */
9 #define lbs_cmd(priv, cmdnr, cmd, callback, callback_arg) \
10 __lbs_cmd(priv, cmdnr, &(cmd).hdr, sizeof(cmd), \
11 callback, callback_arg)
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)
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
);
22 int lbs_cmd_copyback(struct lbs_private
*priv
, unsigned long extra
,
23 struct cmd_header
*resp
);
25 int lbs_update_hw_spec(struct lbs_private
*priv
);
27 int lbs_mesh_access(struct lbs_private
*priv
, uint16_t cmd_action
,
28 struct cmd_ds_mesh_access
*cmd
);
30 int lbs_get_data_rate(struct lbs_private
*priv
);
31 int lbs_set_data_rate(struct lbs_private
*priv
, u8 rate
);
33 int lbs_get_channel(struct lbs_private
*priv
);
34 int lbs_set_channel(struct lbs_private
*priv
, u8 channel
);
36 int lbs_mesh_config(struct lbs_private
*priv
, int enable
);
38 #endif /* _LBS_CMD_H */
This page took 0.046056 seconds and 3 git commands to generate.