brintos

brintos / linux-shallow public Read only

0
0
Text · 2.0 KiB · 03bdcf2 Raw
54 lines · c
1/*2 * Copyright (c) 2010 Broadcom Corporation3 *4 * Permission to use, copy, modify, and/or distribute this software for any5 * purpose with or without fee is hereby granted, provided that the above6 * copyright notice and this permission notice appear in all copies.7 *8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.15 */16 17#ifndef _BRCM_AMPDU_H_18#define _BRCM_AMPDU_H_19 20/*21 * Data structure representing an in-progress session for accumulating22 * frames for AMPDU.23 *24 * wlc: pointer to common driver data25 * skb_list: queue of skb's for AMPDU26 * max_ampdu_len: maximum length for this AMPDU27 * max_ampdu_frames: maximum number of frames for this AMPDU28 * ampdu_len: total number of bytes accumulated for this AMPDU29 * dma_len: DMA length of this AMPDU30 */31struct brcms_ampdu_session {32	struct brcms_c_info *wlc;33	struct sk_buff_head skb_list;34	unsigned max_ampdu_len;35	u16 max_ampdu_frames;36	u16 ampdu_len;37	u16 dma_len;38};39 40void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session,41				 struct brcms_c_info *wlc);42int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session,43			    struct sk_buff *p);44void brcms_c_ampdu_finalize(struct brcms_ampdu_session *session);45 46struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc);47void brcms_c_ampdu_detach(struct ampdu_info *ampdu);48void brcms_c_ampdu_dotxstatus(struct ampdu_info *ampdu, struct scb *scb,49			      struct sk_buff *p, struct tx_status *txs);50void brcms_c_ampdu_macaddr_upd(struct brcms_c_info *wlc);51void brcms_c_ampdu_shm_upd(struct ampdu_info *ampdu);52 53#endif				/* _BRCM_AMPDU_H_ */54