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: 9427925 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 AF56360755 for ; Mon, 14 Nov 2016 16:35:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD2E328A35 for ; Mon, 14 Nov 2016 16:35:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A224528A49; Mon, 14 Nov 2016 16:35:55 +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 4E65328A38 for ; Mon, 14 Nov 2016 16:35:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933593AbcKNQfs (ORCPT ); Mon, 14 Nov 2016 11:35:48 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:34807 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933551AbcKNQfl (ORCPT ); Mon, 14 Nov 2016 11:35:41 -0500 Received: by mail-lf0-f66.google.com with SMTP id o141so7513862lff.1 for ; Mon, 14 Nov 2016 08:35:40 -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=O+mmZ6I65K5T2BNOys+tkpbHaUOs+5lsLD6GeT1sxDgIOd7uTxfHyOxDAz0ZgaEzyg wucTIcO8s48w4jX281jatqUX6WxzgoMHd0fOgwxmJFZfhZbRZfz3A8HQmwJirqKX4MiE hXU9eDWOXmJkjOn8SOP0oisl5O478pow8hnNyU9lNnvB1w7U0Bhb9IDyGIoWbd/2CrlZ z6kZWnkLjOIws0L18Jmw+i3wKBkdqlrT0ZavmcewlMXARVf6/T72enjsgfNUXwn7l2/J YQFZYusS2zQiI/QpY5QW+MevtwAtfiouEvPt2yHDNZFqVa87ba5UKQp+LLtG/kVZG+E5 Zt+g== X-Gm-Message-State: ABUngvfAqC2nLiJS1Am+ieXn0CHHl2cViNM9m/lxXUFI02H0ufIHWDY7FsktxNMNyh4ZHw== 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 Cc: Erik Stromdahl 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> 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