ath6kl: add tx_comp_multi() to struct htc_ep_callbacks
[cascardo/linux.git] / drivers / net / wireless / ath / ath6kl / htc.h
index 2de4d6f..51f2485 100644 (file)
@@ -319,12 +319,14 @@ enum htc_send_full_action {
 };
 
 struct htc_ep_callbacks {
+       void (*tx_complete) (struct htc_target *, struct htc_packet *);
        void (*rx) (struct htc_target *, struct htc_packet *);
        void (*rx_refill) (struct htc_target *, enum htc_endpoint_id endpoint);
        enum htc_send_full_action (*tx_full) (struct htc_target *,
                                              struct htc_packet *);
        struct htc_packet *(*rx_allocthresh) (struct htc_target *,
                                              enum htc_endpoint_id, int);
+       void (*tx_comp_multi) (struct htc_target *, struct list_head *);
        int rx_alloc_thresh;
        int rx_refill_thresh;
 };
@@ -523,9 +525,16 @@ struct htc_target {
        struct ath6kl_htc_credit_info *credit_info;
        int tgt_creds;
        unsigned int tgt_cred_sz;
+
+       /* protects free_ctrl_txbuf and free_ctrl_rxbuf */
        spinlock_t htc_lock;
+
+       /* FIXME: does this protext rx_bufq and endpoint structures or what? */
        spinlock_t rx_lock;
+
+       /* protects endpoint->txq */
        spinlock_t tx_lock;
+
        struct ath6kl_device *dev;
        u32 htc_flags;
        u32 rx_st_flags;