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: 9437253 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 201BA60238 for ; Fri, 18 Nov 2016 19:25:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18B0A29900 for ; Fri, 18 Nov 2016 19:25:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D91D299D3; Fri, 18 Nov 2016 19:25:01 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BDBC729900 for ; Fri, 18 Nov 2016 19:25:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7omO-0006Pc-WD; Fri, 18 Nov 2016 19:24:57 +0000 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c7om6-00065j-W5 for ath10k@lists.infradead.org; Fri, 18 Nov 2016 19:24:40 +0000 Received: by mail-qk0-x242.google.com with SMTP id y205so858691qkb.1 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=J38GfMCiwl9M5QUv1hV8WJtKFgNcfHeJJLpzhOmz2/TXVEnNPhTmPX72ZGFj+AqlrW ev6obM7nz1pJ4Kh3HSClGSjTh7icw4LeXtHZEMJ2sYrsELUbLmIO29kaBBCVo5Eypc7D /hB/iWF+3GRL1uvV4DyhcRLwufujY7gnJUKxf8gFt+l14M8jUBg0qPCsoO80vhV/jlj3 KG8jovUckECJeNhYdZ9QZlcjf8ij0EiJaMhPKTx4UBEIAroEK3QBntl6p02t4ZTWc33H QljyS+9FZ8LHA7tkcW2R1ewz+qdA+AYy04tQY9w81w8O7TmMWdBWLxHQgPp7pC+nTlKZ 0jyA== X-Gm-Message-State: AKaTC01FGFebtX9I3hLn4qwubJ/4t3Y+izA/jQxBqke0WeA22gORH8aY8PH3x/w6yGESBw== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161118_112439_198584_40D4410B X-CRM114-Status: UNSURE ( 7.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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