From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52AC6C18E5C for ; Wed, 11 Mar 2020 12:18:50 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 21FEA20873 for ; Wed, 11 Mar 2020 12:18:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="VO1J+4Fn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 21FEA20873 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D9FC086833; Wed, 11 Mar 2020 12:18:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aUdGnkZ4OFbA; Wed, 11 Mar 2020 12:18:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 9BDE38640E; Wed, 11 Mar 2020 12:18:48 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 490FC1BF599 for ; Wed, 11 Mar 2020 12:18:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 45A96845A3 for ; Wed, 11 Mar 2020 12:18:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VXiLo1aK9ccc for ; Wed, 11 Mar 2020 12:18:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from esa6.microchip.iphmx.com (esa6.microchip.iphmx.com [216.71.154.253]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7AA2084836 for ; Wed, 11 Mar 2020 12:18:46 +0000 (UTC) Received-SPF: Pass (esa6.microchip.iphmx.com: domain of Ajay.Kathat@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa6.microchip.iphmx.com; envelope-from="Ajay.Kathat@microchip.com"; x-sender="Ajay.Kathat@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com -exists:%{i}.spf.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa6.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa6.microchip.iphmx.com; envelope-from="Ajay.Kathat@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa6.microchip.iphmx.com; spf=Pass smtp.mailfrom=Ajay.Kathat@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: XexWsn5dctibh1mkLIHiRs5JV2cD3sQU3yFIBRLTXts2fJowVI4UQh9Ef76jwXyUpUexyOz+jH Fx6XytNpeWvW9LYdV0IkGsDv/8id847EWyveyz3/3HIJsMNa7Dp+ZVYHw7qjRQANNwujPJSpce QblD+69nkWb+ub8Wo+CyWfV9IAmGmUatBINaXhFuEPnE4O9SQGscbkriiSf7F7mAga8SvLU922 Qu4/WJtbqvhZ/Dwr77ewnEytG8fwFtA6lqbLhn7+IyQjhBHOSAE6F+GWQ1H7VTW9+ySXRvkrzg Hzk= X-IronPort-AV: E=Sophos;i="5.70,540,1574146800"; d="scan'208";a="5254833" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Mar 2020 05:18:45 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 11 Mar 2020 05:18:45 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 11 Mar 2020 05:18:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=alC8loJkr87ty0Mg47xKLYvpd3enZpkFy8+KihQLZgsxewwzQ+GWG/ZjKx8LkwwPEEyn9ITXdfwM/R0qDGwxf0Bx5C3gEZt4g47w5u9CszxVr59tqcrfTCtxvHXoFqNiSrmi9fpkPlusBGBqywHbDqLGiiLiPmAsSyHLevXbB1c5MBb+RdMcLgju0AMyWQB4r8ZirlPmUrQLRFfnER6nwqj/Iqjj6LtEhQMK0kfeBs1tISnNw2aFTRK3avE8TUDR/8yLWKWqjHtVWDE9ywI09ch1hDvW8bN/kP86awHxPMe8ObaSErHm/Ez7AEjmSWlxpRFvbKcZrqrwzOi3lKaXfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=62bXSTxRijsaoa/s/BnBdXUvXfjVH6AfnCf0owu6UlE=; b=A7tXr7nDffHc0sVecTDx/6TIXG0vqZLTfVWuCRB1K66TvpTXPgM3Hy1hrzfzivz3WPO8rP9i2LtruVFXttU48D+AQv+raHgTIwHChTkm9wyhBmKDf2kcx9QzYGtJxfZRXrSt45najYdXbF04avz+VlE9KPRX6ENZ2RgZeAhpsIL8WM5F30nZvK9tiaRXmVTZ570GM16XsfJsJqL/GzQTIVeI+BQHkXAjG+MVxAWM5BIlGbnv2Avd6BTrJ5AbWHePsvkY6JGDeqbnR2ia2hGJoMvHnnNkyxGv13t54rQ9920Z08shlTUnG0OiqedRTZTpEk63aBZTtTKvte19gpy0Fw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=62bXSTxRijsaoa/s/BnBdXUvXfjVH6AfnCf0owu6UlE=; b=VO1J+4FnY4qErein529iWjYBrzgyHp5mk3fpXz3tYSw/2qUxOQkHBCuhc746hAporMX5K2X6N64Iut3YLm3UqxJta7gFpU5N7cRWvOTmWlMR1lETAZYV6KYLBYv76QOxJOZ3s7tDIQ1EdydcFp1E1zmo9crurec45sQYeyCfmxM= Received: from BYAPR11MB3125.namprd11.prod.outlook.com (2603:10b6:a03:8e::32) by BYAPR11MB2805.namprd11.prod.outlook.com (2603:10b6:a02:c1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.14; Wed, 11 Mar 2020 12:18:43 +0000 Received: from BYAPR11MB3125.namprd11.prod.outlook.com ([fe80::c27:87cf:ca4:d86e]) by BYAPR11MB3125.namprd11.prod.outlook.com ([fe80::c27:87cf:ca4:d86e%4]) with mapi id 15.20.2793.013; Wed, 11 Mar 2020 12:18:43 +0000 From: To: Subject: [PATCH v5 04/17] wilc1000: add wlan_cfg.h Thread-Topic: [PATCH v5 04/17] wilc1000: add wlan_cfg.h Thread-Index: AQHV9580B9W9KY7qCE+Vu2FbWsQL0g== Date: Wed, 11 Mar 2020 12:18:43 +0000 Message-ID: <20200311121809.5610-5-ajay.kathat@microchip.com> References: <20200311121809.5610-1-ajay.kathat@microchip.com> In-Reply-To: <20200311121809.5610-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.17.1 x-originating-ip: [121.244.27.38] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7ada170d-2a15-403a-e3f7-08d7c5b65773 x-ms-traffictypediagnostic: BYAPR11MB2805: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:361; x-forefront-prvs: 0339F89554 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(136003)(346002)(396003)(366004)(199004)(478600001)(2906002)(71200400001)(8936002)(81166006)(81156014)(316002)(5660300002)(54906003)(6506007)(1076003)(8676002)(6512007)(86362001)(36756003)(107886003)(4326008)(6486002)(76116006)(91956017)(66476007)(64756008)(66446008)(66946007)(66556008)(6916009)(2616005)(186003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR11MB2805; H:BYAPR11MB3125.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: jIEtjD3+xAm+hAGRVlXBn39yVJAQ3kqDT7BcBpkncTGFIcgs4pmyhakYj1DpnHZNWjh3z/pJS3dxjqzWvimplMZc9KwMxYZkSvxmt4A/JkrE6X3F21hz+/e8yenEyuVmy3pdTuJm+mvUydKbjmYfiRS9GFqaH442vH9ddX6tcpPM4HgLzFYtUAkG1DVJd2sOP8N0HSQL2i8Km6WRpg3ynKefcPyqzbl6fE1wcLtP39OFLz1eirE5zYj+L74i/2iBk8QsHRe3cMkm3AJfyezRJ2X8antPDRYH3xX/n0duRb0oLrDA252Th2G3IiSpauTHjlYYCvlJNw3W0mKWr7ktjD+EgMx4GR1KPyqvvkXu9bUT+QFwyjb7050tlrAmIjj5RQm11v7g0HEJxPGnq4czV89XUcD7S7f1xiPTEIql+Jkl4BF5YYWOBLClTZ2VpMxk x-ms-exchange-antispam-messagedata: BD4IKEfKxtkm3rzCCz5XTpdoCW/t2EnQ3MFw+b3Nar8OuFmsA0ktoEn17AeQoktd80WjgXl2HJL8+R57fjO8UvViYbYJK6Vf6W7hklu0wgv70tG7SpxNS0ZQkxxSA1bmb5sg9iyI/yyAE0alTXnPKQ== MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 7ada170d-2a15-403a-e3f7-08d7c5b65773 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2020 12:18:43.2120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Iqi4hcmHQWgxGqnXRwwXTtKmxJ1jP4tZKxoxy0auxdfZedvQ6waEUzwHDQ8PdM6UWpP+5pcVfjQGyAxLmpdZax+JdAeEPCAR8rSQ54S86B4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2805 X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Ajay.Kathat@microchip.com, Venkateswara.Kaja@microchip.com, gregkh@linuxfoundation.org, Nicolas.Ferre@microchip.com, Adham.Abozaeid@microchip.com, johannes@sipsolutions.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" From: Ajay Singh Moved 'drivers/staging/wilc1000/wlan_cfg.h' to 'drivers/net/wireless/microchip/wilc1000/wlan_cfg.h'. Signed-off-by: Ajay Singh --- .../wireless/microchip/wilc1000/wlan_cfg.h | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 drivers/net/wireless/microchip/wilc1000/wlan_cfg.h diff --git a/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h new file mode 100644 index 000000000000..614c5673f232 --- /dev/null +++ b/drivers/net/wireless/microchip/wilc1000/wlan_cfg.h @@ -0,0 +1,54 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2012 - 2018 Microchip Technology Inc., and its subsidiaries. + * All rights reserved. + */ + +#ifndef WILC_WLAN_CFG_H +#define WILC_WLAN_CFG_H + +struct wilc_cfg_byte { + u16 id; + u8 val; +}; + +struct wilc_cfg_hword { + u16 id; + u16 val; +}; + +struct wilc_cfg_word { + u16 id; + u32 val; +}; + +struct wilc_cfg_str { + u16 id; + u8 *str; +}; + +struct wilc_cfg_str_vals { + u8 mac_address[7]; + u8 firmware_version[129]; + u8 assoc_rsp[256]; +}; + +struct wilc_cfg { + struct wilc_cfg_byte *b; + struct wilc_cfg_hword *hw; + struct wilc_cfg_word *w; + struct wilc_cfg_str *s; + struct wilc_cfg_str_vals *str_vals; +}; + +struct wilc; +int wilc_wlan_cfg_set_wid(u8 *frame, u32 offset, u16 id, u8 *buf, int size); +int wilc_wlan_cfg_get_wid(u8 *frame, u32 offset, u16 id); +int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, + u32 buffer_size); +void wilc_wlan_cfg_indicate_rx(struct wilc *wilc, u8 *frame, int size, + struct wilc_cfg_rsp *rsp); +int wilc_wlan_cfg_init(struct wilc *wl); +void wilc_wlan_cfg_deinit(struct wilc *wl); + +#endif -- 2.24.0 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel