From patchwork Mon Nov 14 16:33:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9427963 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 D366260471 for ; Mon, 14 Nov 2016 16:36:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D03AE2897A for ; Mon, 14 Nov 2016 16:36:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C511C28A49; Mon, 14 Nov 2016 16:36:40 +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 8C2E32897A for ; Mon, 14 Nov 2016 16:36:40 +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 1c6KFH-0000ya-Iy; Mon, 14 Nov 2016 16:36:35 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c6KEc-0000SZ-5i for ath10k@lists.infradead.org; Mon, 14 Nov 2016 16:35:56 +0000 Received: by mail-lf0-x242.google.com with SMTP id 98so7491040lfs.0 for ; Mon, 14 Nov 2016 08:35:36 -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=F/tZwiMEHP3m1lCntc6puHbgBZi96Z89g8nAwghBt1wFAf0TYiO2csTu75KOBL6WfS Ycwt3dvrX7imvaXytOHeOa5BK7UKAHb9FCaMqwq0HfPKQ3sWb5R9SEEgNOwuOUa07way DawkEv2QrFq5UzU4HxEnIJ1yaVZ112tDUGrAj0sDuANDwjIMFQjionfLDTS57OINt487 Da/Fzebw8fQM7DQLX5sDhSfqMWl/rYQzysAn5MMHgV/u/UTTzMX6SVzsbz1C/l9BhmJe h/RAvziWYokeATA8VbmrHGIoi8PskhDTESMQflHSb9q0hCCXHO/T8rxkc3jVMcIXwe8v iPgA== 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=NM/P3dHN60FAosjUCLlKImuN1djROmvRMjbo4C2gMzuMOmT6PNuHq1juPKHlyiSM7o NWMMDm0WX7+KfO7cyndxU5+Vhv5A7mZ1kXuFC5FJK4BB1pUYvD1b4q7rxxluZ7xw58nq c6jxnT3s+3xauuIYD5TZXREhSWNZoBb7k+db2DV2D/zIv/ZxShEfyV7enCLT3pRJpSJh xhJTeCOn2Ar11XoBNWlJ3hCaho99FWcXRXLYYXvld58pVyigYGMzNnLFHIhCq+lZcdKo SmlmP3wzxAX89P4T+8OgnwK3QKxj5p1rJ+ia236fiw+/vDJA9/YZeJBMJjzFYwwKm1dn e/Pg== X-Gm-Message-State: ABUngvdPl2ezcYkMyxwlG3viKJ6UapWM5D3kAJcly38sy3dg96LVS/ziiDYyfsQtka2bWw== X-Received: by 10.25.193.196 with SMTP id r187mr7779691lff.21.1479141334418; Mon, 14 Nov 2016 08:35:34 -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 w67sm5105849lff.16.2016.11.14.08.35.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 08:35:33 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC 11/12] ath10k: Added more host_interest members Date: Mon, 14 Nov 2016 17:33:41 +0100 Message-Id: <1479141222-8493-12-git-send-email-erik.stromdahl@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1479141222-8493-1-git-send-email-erik.stromdahl@gmail.com> References: <1479141222-8493-1-git-send-email-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161114_083554_622833_3D04875C X-CRM114-Status: UNSURE ( 7.83 ) 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