From patchwork Fri Nov 18 19:22:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9437223 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D522160238 for ; Fri, 18 Nov 2016 19:24:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDDB829900 for ; Fri, 18 Nov 2016 19:24:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C29FA299D3; Fri, 18 Nov 2016 19:24:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 641FF29900 for ; Fri, 18 Nov 2016 19:24:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753451AbcKRTYZ (ORCPT ); Fri, 18 Nov 2016 14:24:25 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35970 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753387AbcKRTYV (ORCPT ); Fri, 18 Nov 2016 14:24:21 -0500 Received: by mail-qk0-f194.google.com with SMTP id h201so34194356qke.3 for ; Fri, 18 Nov 2016 11:24:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5Q52CLiYl6XbKq2pnZ6tV9/MnJynslh0yTXs1eZXE9A=; b=lpvztkx2Qtq3e5YyHSSgGQPnSYqoiMvDqtl+fA2o+KbTdr7PVjSmFZY/RXuWAUulem eOhOou/BAG8fwZrOTDGw16W0cXvql4N4rnmOsN/TIfCUNfD8s9E7LAreKUvaN6droTos 9+d+NR5n+zGCrKXX3XL4NGZAXCf9vX3Tv+MeSA2FvARfMPT/7ivRgAYw9JuBnFst7rXI 2176lozMbEt7blGIJfgw1PjhJhCLRo+2iMX4ccg0uO2O/t/U37LA4//GkQfYlRuco7em XCL2EovNe5Fqbf+s/e7Kl6zwRdgwddpyEKKotMeSWCAlAfsLwLkdUImf0btoI/23vy3U oMJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5Q52CLiYl6XbKq2pnZ6tV9/MnJynslh0yTXs1eZXE9A=; b=e07hWh0LdJr3/PJqG1BdHUd+ynnXjU7eH7mGvBq7Q+/AzkWs/3apdijYFNlJsQe3yD IqZZj8LvtqbN7LRij+oVoW7wLxgFAYkG6ybuMDPJoELGOSW/06g+yW1NRAUhG28GFtLM WMMDro0/aQ4cj4fP5gTUw8bI4eTUYO8FUm+6UdCk7h6Aoi/iIcdVd6hXsd1O467+eIVV vD6xvQEwXiNA9rRKCEUcOCeY+iqYKNfaMnMUkhkEXia6/0PF9v9r+UUThpwZ9sYLfGqy uY6KpO3YSPWE75hlAhaU/y0wa/SIHaFCkRt0jsRnLKbccu0D5kV/grvf+yVLlvT3PANp ixHw== X-Gm-Message-State: AKaTC03b2PdL6BBBCQ0+ouVpkqX9rTWfY9ka3NA+B3hImveh3UYyzKkvfG2V3o28+HaJQA== X-Received: by 10.46.0.87 with SMTP id 84mr803487lja.1.1479497060751; Fri, 18 Nov 2016 11:24:20 -0800 (PST) Received: from erik-desktop.lan (81-233-218-8-no25.tbcn.telia.com. [81.233.218.8]) by smtp.gmail.com with ESMTPSA id 23sm2623298ljf.48.2016.11.18.11.24.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Nov 2016 11:24:20 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v2 10/11] ath10k: Added more host_interest members Date: Fri, 18 Nov 2016 20:22:50 +0100 Message-Id: <1479496971-19174-11-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479496971-19174-1-git-send-email-erik.stromdahl@gmail.com> References: <1479496971-19174-1-git-send-email-erik.stromdahl@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Augmented struct host_interest with more members. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/targaddrs.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/targaddrs.h b/drivers/net/wireless/ath/ath10k/targaddrs.h index a47cab4..58e0541 100644 --- a/drivers/net/wireless/ath/ath10k/targaddrs.h +++ b/drivers/net/wireless/ath/ath10k/targaddrs.h @@ -205,6 +205,24 @@ struct host_interest { */ /* Bit 1 - unused */ u32 hi_fw_swap; /* 0x104 */ + + /* global arenas pointer address, used by host driver debug */ + u32 hi_dynamic_mem_arenas_addr; /* 0x108 */ + + /* allocated bytes of DRAM use by allocated */ + u32 hi_dynamic_mem_allocated; /* 0x10C */ + + /* remaining bytes of DRAM */ + u32 hi_dynamic_mem_remaining; /* 0x110 */ + + /* memory track count, configured by host */ + u32 hi_dynamic_mem_track_max; /* 0x114 */ + + /* minidump buffer */ + u32 hi_minidump; /* 0x118 */ + + /* bdata's sig and key addr */ + u32 hi_bd_sig_key; /* 0x11c */ } __packed; #define HI_ITEM(item) offsetof(struct host_interest, item) @@ -319,6 +337,12 @@ struct host_interest { #define HI_ACS_FLAGS_USE_WWAN (1 << 1) /* Use test VAP */ #define HI_ACS_FLAGS_TEST_VAP (1 << 2) +/* SDIO/mailbox ACS flag definitions */ +#define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET (1 << 0) +#define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET (1 << 1) +#define HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE (1 << 2) +#define HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_FW_ACK (1 << 16) +#define HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_FW_ACK (1 << 17) /* * CONSOLE FLAGS