2 * This file is part of wl18xx
4 * Copyright (C) 2011 Texas Instruments. All rights reserved.
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 #ifndef __WL18XX_ACX_H__
23 #define __WL18XX_ACX_H__
25 #include "../wlcore/wlcore.h"
27 /* numbers of bits the length field takes (add 1 for the actual number) */
28 #define WL18XX_HOST_IF_LEN_SIZE_FIELD 15
30 struct wl18xx_acx_host_config_bitmap {
31 struct acx_header header;
33 __le32 host_cfg_bitmap;
35 __le32 host_sdio_block_size;
37 /* extra mem blocks per frame in TX. */
38 __le32 extra_mem_blocks;
41 * number of bits of the length field in the first TX word
42 * (up to 15 - for using the entire 16 bits).
44 __le32 length_field_size;
49 CHECKSUM_OFFLOAD_DISABLED = 0,
50 CHECKSUM_OFFLOAD_ENABLED = 1,
51 CHECKSUM_OFFLOAD_FAKE_RX = 2,
52 CHECKSUM_OFFLOAD_INVALID = 0xFF
55 struct wl18xx_acx_checksum_state {
56 struct acx_header header;
58 /* enum acx_checksum_state */
63 int wl18xx_acx_host_if_cfg_bitmap(struct wl1271 *wl, u32 host_cfg_bitmap,
64 u32 sdio_blk_size, u32 extra_mem_blks,
66 int wl18xx_acx_set_checksum_state(struct wl1271 *wl);
68 #endif /* __WL12XX_ACX_H__ */