main.c (7cfefd1f2acbd5ff2a1a8846de058064bd63550a) | main.c (9c809f888370d87129d17028d515bb025fe94175) |
---|---|
1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments 5 * 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. --- 13 unchanged lines hidden (view full) --- 22#include <linux/module.h> 23#include <linux/platform_device.h> 24 25#include "../wlcore/wlcore.h" 26#include "../wlcore/debug.h" 27#include "../wlcore/io.h" 28#include "../wlcore/acx.h" 29#include "../wlcore/tx.h" | 1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments 5 * 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. --- 13 unchanged lines hidden (view full) --- 22#include <linux/module.h> 23#include <linux/platform_device.h> 24 25#include "../wlcore/wlcore.h" 26#include "../wlcore/debug.h" 27#include "../wlcore/io.h" 28#include "../wlcore/acx.h" 29#include "../wlcore/tx.h" |
30#include "../wlcore/rx.h" 31#include "../wlcore/io.h" |
|
30#include "../wlcore/boot.h" 31 32#include "reg.h" 33#include "conf.h" 34#include "wl18xx.h" 35 36#define WL18XX_TX_HW_BLOCK_SPARE 1 37#define WL18XX_TX_HW_GEM_BLOCK_SPARE 2 --- 404 unchanged lines hidden (view full) --- 442 443 wl1271_debug(DEBUG_TX, "tx_fill_hdr: hlid: %d " 444 "len: %d life: %d mem: %d", desc->hlid, 445 le16_to_cpu(desc->length), 446 le16_to_cpu(desc->life_time), 447 desc->wl18xx_mem.total_mem_blocks); 448} 449 | 32#include "../wlcore/boot.h" 33 34#include "reg.h" 35#include "conf.h" 36#include "wl18xx.h" 37 38#define WL18XX_TX_HW_BLOCK_SPARE 1 39#define WL18XX_TX_HW_GEM_BLOCK_SPARE 2 --- 404 unchanged lines hidden (view full) --- 444 445 wl1271_debug(DEBUG_TX, "tx_fill_hdr: hlid: %d " 446 "len: %d life: %d mem: %d", desc->hlid, 447 le16_to_cpu(desc->length), 448 le16_to_cpu(desc->life_time), 449 desc->wl18xx_mem.total_mem_blocks); 450} 451 |
452static enum wl_rx_buf_align 453wl18xx_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc) 454{ 455 if (rx_desc & RX_BUF_PADDED_PAYLOAD) 456 return WLCORE_RX_BUF_PADDED; 457 458 return WLCORE_RX_BUF_ALIGNED; 459} 460 461 |
|
450static struct wlcore_ops wl18xx_ops = { 451 .identify_chip = wl18xx_identify_chip, 452 .boot = wl18xx_boot, 453 .trigger_cmd = wl18xx_trigger_cmd, 454 .ack_event = wl18xx_ack_event, 455 .calc_tx_blocks = wl18xx_calc_tx_blocks, 456 .set_tx_desc_blocks = wl18xx_set_tx_desc_blocks, 457 .set_tx_desc_data_len = wl18xx_set_tx_desc_data_len, | 462static struct wlcore_ops wl18xx_ops = { 463 .identify_chip = wl18xx_identify_chip, 464 .boot = wl18xx_boot, 465 .trigger_cmd = wl18xx_trigger_cmd, 466 .ack_event = wl18xx_ack_event, 467 .calc_tx_blocks = wl18xx_calc_tx_blocks, 468 .set_tx_desc_blocks = wl18xx_set_tx_desc_blocks, 469 .set_tx_desc_data_len = wl18xx_set_tx_desc_data_len, |
470 .get_rx_buf_align = wl18xx_get_rx_buf_align, |
|
458}; 459 460int __devinit wl18xx_probe(struct platform_device *pdev) 461{ 462 struct wl1271 *wl; 463 struct ieee80211_hw *hw; 464 struct wl18xx_priv *priv; 465 --- 51 unchanged lines hidden --- | 471}; 472 473int __devinit wl18xx_probe(struct platform_device *pdev) 474{ 475 struct wl1271 *wl; 476 struct ieee80211_hw *hw; 477 struct wl18xx_priv *priv; 478 --- 51 unchanged lines hidden --- |