]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/libertas/decl.h
libertas: switch lbs_cmd() to take a callback function pointer
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / libertas / decl.h
index 74187f34666f914003bf9ab317a28bf75a16f9fd..1a8fdaa7375c71934c1553a763e00d0f34a34812 100644 (file)
@@ -15,18 +15,17 @@ struct lbs_private;
 struct lbs_adapter;
 struct sk_buff;
 struct net_device;
+struct cmd_ctrl_node;
+struct cmd_ds_command;
 
 int lbs_set_mac_packet_filter(struct lbs_private *priv);
 
 void lbs_send_tx_feedback(struct lbs_private *priv);
 
 int lbs_free_cmd_buffer(struct lbs_private *priv);
-struct cmd_ctrl_node;
-struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(struct lbs_private *priv);
 
-void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
-       struct cmd_ctrl_node *ptempnode,
-       u32 cmd_oid, u16 wait_option, void *pdata_buf);
+int lbs_cmd(struct lbs_private *priv, uint16_t command, void *cmd, int cmd_size, 
+           int (*callback)(uint16_t, struct cmd_ds_command *, struct lbs_private *));
 
 int lbs_prepare_and_send_command(struct lbs_private *priv,
        u16 cmd_no,
@@ -86,5 +85,6 @@ int lbs_stop_card(struct lbs_private *priv);
 int lbs_add_mesh(struct lbs_private *priv, struct device *dev);
 void lbs_remove_mesh(struct lbs_private *priv);
 int lbs_reset_device(struct lbs_private *priv);
+void lbs_host_to_card_done(struct lbs_private *priv);
 
 #endif