From patchwork Mon Jul 10 12:40:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitkumar Karwar X-Patchwork-Id: 9832877 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 B6CC560318 for ; Mon, 10 Jul 2017 12:44:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85E4420242 for ; Mon, 10 Jul 2017 12:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A45A237A5; Mon, 10 Jul 2017 12:44:35 +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 0861E20242 for ; Mon, 10 Jul 2017 12:44:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753858AbdGJMo3 (ORCPT ); Mon, 10 Jul 2017 08:44:29 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36369 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbdGJMo1 (ORCPT ); Mon, 10 Jul 2017 08:44:27 -0400 Received: by mail-pf0-f195.google.com with SMTP id z6so14393272pfk.3 for ; Mon, 10 Jul 2017 05:44:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=70oLFzP+errk5QMuzIkwRBB5cXYwNdYAMUlFHmOSBW4=; b=TtiMk1ZzWxes4brZpCh5omeyfjQj/u+Iv2haCS5WyeZ1JAkGfKlndLyjX6TVLzjyiF O8VC2gNagJb8dgId9hRYQ//oviYXFGleX7ZIbXVAyroZF/5+HlthHJaviRfc4ghVrMvf axOw7k1aRSe7L3nAR9rYhDyGxdAZT4gs8SoypfMcE5lyIrImblVpienzbHCDAq6b54AA zoeBI7RMdwa4jVUpTX073yKk3+6swgYFpPqFR99/gGBJeyJPSS5qU95r8e9yfamigPR8 Iy1ILUYYghJDeFhMwkuhhg1NeWyt2fBcfSMcc5R8ZSMCcBgOH2RltbI/P41L9kDAXGAH 4jcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=70oLFzP+errk5QMuzIkwRBB5cXYwNdYAMUlFHmOSBW4=; b=HRKcddafQjdg/31UdG6/ruNcWWlf06+4v8nSV8wYvxAv5DjHzqgb8d/fnP6SRVkuYc HPuiH3Iv40MeAB3uLD/jBhOix1d9Rm7+G/bHaSqRQY4f1tPmDnrCZ3Nzx+4MbhRCdaRL u/kYbs99WVjw7qir57wl7HWtLAwBvD3x9+rqml5WLDJNvBSouN6EqosC7L0kCea4HscJ Eshmco0EpdcowWfkyLz3HDZPc/oBHqFzvtjGXeNKvqENDx1t55H/smo9kEZXJXf0+c/x PkMFzxVtR1oaEVq5vhEqn0cgYhOGJXnZy+wsJbxM1FMS/WQD5njSD0HIlXj5S6eQKkqF h2pA== X-Gm-Message-State: AIVw113ogeP1q106JePxttAgFAxoebaoaX/pIF2fv3E8Ypq3yh3+lckP lmy4sYktvTI8Fg== X-Received: by 10.84.232.70 with SMTP id f6mr17925825pln.169.1499690656455; Mon, 10 Jul 2017 05:44:16 -0700 (PDT) Received: from cpu185.redpinesignals.com ([203.196.161.90]) by smtp.gmail.com with ESMTPSA id s9sm27503963pfe.67.2017.07.10.05.44.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Jul 2017 05:44:16 -0700 (PDT) From: Amitkumar Karwar To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Prameela Rani Garnepudi Subject: [v2 01/17] rsi: add common structures needed for command packets Date: Mon, 10 Jul 2017 18:10:32 +0530 Message-Id: <1499690448-9956-2-git-send-email-amitkarwar@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499690448-9956-1-git-send-email-amitkarwar@gmail.com> References: <1499690448-9956-1-git-send-email-amitkarwar@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 From: Prameela Rani Garnepudi All internal management packets (command packets) use some common fields and some packet specific fields for packet descriptors. This patch adds some common structures which are needed for all command packets. Signed-off-by: Prameela Rani Garnepudi Signed-off-by: Amitkumar Karwar --- drivers/net/wireless/rsi/rsi_mgmt.h | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/net/wireless/rsi/rsi_mgmt.h b/drivers/net/wireless/rsi/rsi_mgmt.h index a8a195e..63360c2 100644 --- a/drivers/net/wireless/rsi/rsi_mgmt.h +++ b/drivers/net/wireless/rsi/rsi_mgmt.h @@ -221,6 +221,44 @@ struct rsi_mac_frame { __le16 desc_word[8]; } __packed; +#define PWR_SAVE_WAKEUP_IND BIT(0) +#define TCP_CHECK_SUM_OFFLOAD BIT(1) +#define CONFIRM_REQUIRED_TO_HOST BIT(2) +#define ADD_DELTA_TSF BIT(3) +#define FETCH_RETRY_CNT_FROM_HOST_DESC BIT(4) +#define EOSP_INDICATION BIT(5) +#define REQUIRE_TSF_SYNC_CONFIRM BIT(6) +#define ENCAP_MGMT_PKT BIT(7) + +struct rsi_cmd_desc_dword0 { + __le16 len_qno; + u8 frame_type; + u8 misc_flags; +}; + +struct rsi_cmd_desc_dword1 { + u8 xtend_desc_size; + u8 reserved1; + __le16 reserved2; +}; + +struct rsi_cmd_desc_dword2 { + __le32 pkt_info; /* Packet specific data */ +}; + +struct rsi_cmd_desc_dword3 { + __le16 token; + u8 qid_tid; + u8 sta_id; +}; + +struct rsi_cmd_desc { + struct rsi_cmd_desc_dword0 desc_dword0; + struct rsi_cmd_desc_dword1 desc_dword1; + struct rsi_cmd_desc_dword2 desc_dword2; + struct rsi_cmd_desc_dword3 desc_dword3; +}; + struct rsi_boot_params { __le16 desc_word[8]; struct bootup_params bootup_params;