1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /*
- * This file is part of wl18xx
- *
- * Copyright (C) 2011 Texas Instruments. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA
- *
- */
- #ifndef __WL18XX_ACX_H__
- #define __WL18XX_ACX_H__
- #include "../wlcore/wlcore.h"
- /* numbers of bits the length field takes (add 1 for the actual number) */
- #define WL18XX_HOST_IF_LEN_SIZE_FIELD 15
- struct wl18xx_acx_host_config_bitmap {
- struct acx_header header;
- __le32 host_cfg_bitmap;
- __le32 host_sdio_block_size;
- /* extra mem blocks per frame in TX. */
- __le32 extra_mem_blocks;
- /*
- * number of bits of the length field in the first TX word
- * (up to 15 - for using the entire 16 bits).
- */
- __le32 length_field_size;
- } __packed;
- enum {
- CHECKSUM_OFFLOAD_DISABLED = 0,
- CHECKSUM_OFFLOAD_ENABLED = 1,
- CHECKSUM_OFFLOAD_FAKE_RX = 2,
- CHECKSUM_OFFLOAD_INVALID = 0xFF
- };
- struct wl18xx_acx_checksum_state {
- struct acx_header header;
- /* enum acx_checksum_state */
- u8 checksum_state;
- u8 pad[3];
- } __packed;
- int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap,
- u32 sdio_blk_size, u32 extra_mem_blks,
- u32 len_field_size);
- int wl18xx_acx_set_checksum_state(struct wl1271 *wl);
- #endif /* __WL12XX_ACX_H__ */
|