wil6210.h (137ce6104ffec1a86c8c14daf1cca15f8ef29d2c) | wil6210.h (dc16427bbe65aeec416f490df73cdeeef5ab62c0) |
---|---|
1/* 2 * Copyright (c) 2012-2015 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 7 unchanged lines hidden (view full) --- 16 17#ifndef __WIL6210_H__ 18#define __WIL6210_H__ 19 20#include <linux/netdevice.h> 21#include <linux/wireless.h> 22#include <net/cfg80211.h> 23#include <linux/timex.h> | 1/* 2 * Copyright (c) 2012-2015 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 7 unchanged lines hidden (view full) --- 16 17#ifndef __WIL6210_H__ 18#define __WIL6210_H__ 19 20#include <linux/netdevice.h> 21#include <linux/wireless.h> 22#include <net/cfg80211.h> 23#include <linux/timex.h> |
24#include <linux/types.h> |
|
24#include "wil_platform.h" 25 26extern bool no_fw_recovery; 27extern unsigned int mtu_max; 28extern unsigned short rx_ring_overflow_thrsh; 29extern int agg_wsize; 30extern u32 vring_idle_trsh; 31extern bool rx_align_2; --- 490 unchanged lines hidden (view full) --- 522}; 523 524struct wil_probe_client_req { 525 struct list_head list; 526 u64 cookie; 527 u8 cid; 528}; 529 | 25#include "wil_platform.h" 26 27extern bool no_fw_recovery; 28extern unsigned int mtu_max; 29extern unsigned short rx_ring_overflow_thrsh; 30extern int agg_wsize; 31extern u32 vring_idle_trsh; 32extern bool rx_align_2; --- 490 unchanged lines hidden (view full) --- 523}; 524 525struct wil_probe_client_req { 526 struct list_head list; 527 u64 cookie; 528 u8 cid; 529}; 530 |
531struct pmc_ctx { 532 /* alloc, free, and read operations must own the lock */ 533 struct mutex lock; 534 struct vring_tx_desc *pring_va; 535 dma_addr_t pring_pa; 536 struct desc_alloc_info *descriptors; 537 int last_cmd_status; 538 int num_descriptors; 539 int descriptor_size; 540}; 541 |
|
530struct wil6210_priv { 531 struct pci_dev *pdev; 532 int n_msi; 533 struct wireless_dev *wdev; 534 void __iomem *csr; 535 DECLARE_BITMAP(status, wil_status_last); 536 u32 fw_version; 537 u32 hw_version; --- 68 unchanged lines hidden (view full) --- 606 /* statistics */ 607 atomic_t isr_count_rx, isr_count_tx; 608 /* debugfs */ 609 struct dentry *debug; 610 struct debugfs_blob_wrapper blobs[ARRAY_SIZE(fw_mapping)]; 611 612 void *platform_handle; 613 struct wil_platform_ops platform_ops; | 542struct wil6210_priv { 543 struct pci_dev *pdev; 544 int n_msi; 545 struct wireless_dev *wdev; 546 void __iomem *csr; 547 DECLARE_BITMAP(status, wil_status_last); 548 u32 fw_version; 549 u32 hw_version; --- 68 unchanged lines hidden (view full) --- 618 /* statistics */ 619 atomic_t isr_count_rx, isr_count_tx; 620 /* debugfs */ 621 struct dentry *debug; 622 struct debugfs_blob_wrapper blobs[ARRAY_SIZE(fw_mapping)]; 623 624 void *platform_handle; 625 struct wil_platform_ops platform_ops; |
626 627 struct pmc_ctx pmc; |
|
614}; 615 616#define wil_to_wiphy(i) (i->wdev->wiphy) 617#define wil_to_dev(i) (wiphy_dev(wil_to_wiphy(i))) 618#define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w)) 619#define wil_to_wdev(i) (i->wdev) 620#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w)) 621#define wil_to_ndev(i) (wil_to_wdev(i)->netdev) --- 160 unchanged lines hidden --- | 628}; 629 630#define wil_to_wiphy(i) (i->wdev->wiphy) 631#define wil_to_dev(i) (wiphy_dev(wil_to_wiphy(i))) 632#define wiphy_to_wil(w) (struct wil6210_priv *)(wiphy_priv(w)) 633#define wil_to_wdev(i) (i->wdev) 634#define wdev_to_wil(w) (struct wil6210_priv *)(wdev_priv(w)) 635#define wil_to_ndev(i) (wil_to_wdev(i)->netdev) --- 160 unchanged lines hidden --- |