Path: blob/main/sys/contrib/dev/broadcom/brcm80211/brcmsmac/ampdu.h
178665 views
/*1* Copyright (c) 2010 Broadcom Corporation2*3* Permission to use, copy, modify, and/or distribute this software for any4* purpose with or without fee is hereby granted, provided that the above5* copyright notice and this permission notice appear in all copies.6*7* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES8* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF9* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY10* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES11* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION12* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN13* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.14*/1516#ifndef _BRCM_AMPDU_H_17#define _BRCM_AMPDU_H_1819/*20* Data structure representing an in-progress session for accumulating21* frames for AMPDU.22*23* wlc: pointer to common driver data24* skb_list: queue of skb's for AMPDU25* max_ampdu_len: maximum length for this AMPDU26* max_ampdu_frames: maximum number of frames for this AMPDU27* ampdu_len: total number of bytes accumulated for this AMPDU28* dma_len: DMA length of this AMPDU29*/30struct brcms_ampdu_session {31struct brcms_c_info *wlc;32struct sk_buff_head skb_list;33unsigned max_ampdu_len;34u16 max_ampdu_frames;35u16 ampdu_len;36u16 dma_len;37};3839void brcms_c_ampdu_reset_session(struct brcms_ampdu_session *session,40struct brcms_c_info *wlc);41int brcms_c_ampdu_add_frame(struct brcms_ampdu_session *session,42struct sk_buff *p);43void brcms_c_ampdu_finalize(struct brcms_ampdu_session *session);4445struct ampdu_info *brcms_c_ampdu_attach(struct brcms_c_info *wlc);46void brcms_c_ampdu_detach(struct ampdu_info *ampdu);47void brcms_c_ampdu_dotxstatus(struct ampdu_info *ampdu, struct scb *scb,48struct sk_buff *p, struct tx_status *txs);49void brcms_c_ampdu_macaddr_upd(struct brcms_c_info *wlc);50void brcms_c_ampdu_shm_upd(struct ampdu_info *ampdu);5152#endif /* _BRCM_AMPDU_H_ */535455