mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 05:22:49 -04:00
This patch adds support for new FullMAC WiFi driver for Quantenna QSR10G chipsets. QSR10G (aka Pearl) is Quantenna's 8x8, 160M, 11ac offering. QSR10G supports 2 simultaneous WMACs - one 5G and one 2G. 5G WMAC supports 160M, 8x8 configuration. FW supports up to 8 concurrent virtual interfaces on each WMAC. Patch introduces 2 new drivers: - qtnfmac.ko for interfacing with kernel wireless core - qtnfmac_pearl_pcie.ko for interfacing with hardware over PCIe interface Signed-off-by: Dmitrii Lebed <dlebed@quantenna.com> Signed-off-by: Sergei Maksimenko <smaksimenko@quantenna.com> Signed-off-by: Sergey Matyukevich <smatyukevich@quantenna.com> Signed-off-by: Bindu Therthala <btherthala@quantenna.com> Signed-off-by: Huizhao Wang <hwang@quantenna.com> Signed-off-by: Kamlesh Rath <krath@quantenna.com> Signed-off-by: Avinash Patil <avinashp@quantenna.com> Signed-off-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
90 lines
1.9 KiB
C
90 lines
1.9 KiB
C
/*
|
|
* Copyright (c) 2015-2016 Quantenna Communications, Inc.
|
|
* 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
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* 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.
|
|
*
|
|
*/
|
|
|
|
#ifndef _QTN_FMAC_PCIE_H_
|
|
#define _QTN_FMAC_PCIE_H_
|
|
|
|
#include <linux/dma-mapping.h>
|
|
#include <linux/io.h>
|
|
|
|
#include "pcie_regs_pearl.h"
|
|
#include "pcie_ipc.h"
|
|
#include "shm_ipc.h"
|
|
|
|
struct bus;
|
|
|
|
struct qtnf_pcie_bus_priv {
|
|
struct pci_dev *pdev;
|
|
|
|
/* lock for irq configuration changes */
|
|
spinlock_t irq_lock;
|
|
|
|
/* lock for tx operations */
|
|
spinlock_t tx_lock;
|
|
u8 msi_enabled;
|
|
int mps;
|
|
|
|
struct workqueue_struct *workqueue;
|
|
struct tasklet_struct reclaim_tq;
|
|
|
|
void __iomem *sysctl_bar;
|
|
void __iomem *epmem_bar;
|
|
void __iomem *dmareg_bar;
|
|
|
|
struct qtnf_shm_ipc shm_ipc_ep_in;
|
|
struct qtnf_shm_ipc shm_ipc_ep_out;
|
|
|
|
struct qtnf_pcie_bda __iomem *bda;
|
|
void __iomem *pcie_reg_base;
|
|
|
|
u16 tx_bd_num;
|
|
u16 rx_bd_num;
|
|
|
|
struct sk_buff **tx_skb;
|
|
struct sk_buff **rx_skb;
|
|
|
|
struct qtnf_tx_bd *tx_bd_vbase;
|
|
dma_addr_t tx_bd_pbase;
|
|
|
|
struct qtnf_rx_bd *rx_bd_vbase;
|
|
dma_addr_t rx_bd_pbase;
|
|
|
|
dma_addr_t bd_table_paddr;
|
|
void *bd_table_vaddr;
|
|
u32 bd_table_len;
|
|
|
|
u32 hw_txproc_wr_ptr;
|
|
|
|
u16 tx_bd_reclaim_start;
|
|
u16 tx_bd_index;
|
|
u32 tx_queue_len;
|
|
|
|
u16 rx_bd_index;
|
|
|
|
u32 pcie_irq_mask;
|
|
|
|
/* diagnostics stats */
|
|
u32 pcie_irq_count;
|
|
u32 pcie_irq_rx_count;
|
|
u32 pcie_irq_tx_count;
|
|
u32 tx_full_count;
|
|
u32 tx_done_count;
|
|
u32 tx_reclaim_done;
|
|
u32 tx_reclaim_req;
|
|
};
|
|
|
|
#endif /* _QTN_FMAC_PCIE_H_ */
|