-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 314067 b: refs/heads/master c: b8422dc h: refs/heads/master i: 314065: 3311ff9 314063: c1cd268 v: v3
- Loading branch information
Luciano Coelho
committed
Jun 5, 2012
1 parent
244a6b3
commit c8b9f65
Showing
6 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 872b345fbaef290f890d0bbd34b78ab50269980f | ||
refs/heads/master: b8422dcb865befc5d2d7c21e8427eedf32558fea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
wl18xx-objs = main.o tx.o | ||
wl18xx-objs = main.o acx.o tx.o | ||
|
||
obj-$(CONFIG_WL18XX) += wl18xx.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* This file is part of wl18xx | ||
* | ||
* Copyright (C) 2011 Texas Instruments Inc. | ||
* | ||
* 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 | ||
* | ||
*/ | ||
|
||
#include "../wlcore/cmd.h" | ||
#include "../wlcore/debug.h" | ||
#include "../wlcore/acx.h" | ||
|
||
#include "acx.h" | ||
|
||
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) | ||
{ | ||
struct wl18xx_acx_host_config_bitmap *bitmap_conf; | ||
int ret; | ||
|
||
bitmap_conf = kzalloc(sizeof(*bitmap_conf), GFP_KERNEL); | ||
if (!bitmap_conf) { | ||
ret = -ENOMEM; | ||
goto out; | ||
} | ||
|
||
bitmap_conf->host_cfg_bitmap = cpu_to_le32(host_cfg_bitmap); | ||
bitmap_conf->host_sdio_block_size = cpu_to_le32(sdio_blk_size); | ||
bitmap_conf->extra_mem_blocks = cpu_to_le32(extra_mem_blks); | ||
bitmap_conf->length_field_size = cpu_to_le32(len_field_size); | ||
|
||
ret = wl1271_cmd_configure(wl, ACX_HOST_IF_CFG_BITMAP, | ||
bitmap_conf, sizeof(*bitmap_conf)); | ||
if (ret < 0) { | ||
wl1271_warning("wl1271 bitmap config opt failed: %d", ret); | ||
goto out; | ||
} | ||
|
||
out: | ||
kfree(bitmap_conf); | ||
|
||
return ret; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* 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; | ||
|
||
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); | ||
|
||
#endif /* __WL12XX_ACX_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters