Message ID | 20220111171424.862764-7-Jerome.Pouiller@silabs.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kalle Valo |
Headers | show
Return-Path: <linux-wireless-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 751F6C433F5 for <linux-wireless@archiver.kernel.org>; Tue, 11 Jan 2022 17:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344008AbiAKRPS (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Tue, 11 Jan 2022 12:15:18 -0500 Received: from mail-mw2nam12on2061.outbound.protection.outlook.com ([40.107.244.61]:39649 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1343976AbiAKRPD (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Tue, 11 Jan 2022 12:15:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dM/wHbJ+r2byu/8ipPlVmVDGY1f4XNxDIxjT1S0IGf6wEAKxTSxVvnKF037sR7ppcUtmqDZxygRtBdSp9NbBMQETc2aKCRh3zr2k1wlpESrh1xlO+DzdpTczfS+aJ7KF7/2d2fas832WQA29010YOGlSWUJyLN+JuixTjkMOuCXIW+twkOeJZNi2MPhNvJrqIoZFYKs50TIWEshh6AWFDk9Hy4laPigjFSC1+ZFfWzVqqB52dY8iA4lEOv9QiOeM3AF/41FVt2PkCa7PdAHXShQbiWbOf5d7ZI+lda5hRyQhmF+AXQXJvqJZZ303qGNgNzv2vmRnzDtkg7AJcqDEZQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kxafUeTrjRBMOvhFqc7T9fokBdFCRRo28IEbjW9kUoQ=; b=ON7GEZwwBM4qunA8Dr0mzo5Cy/BJy0eC+n7fDP1HlI8A9svpyiiMYMG/CS5fqBtmWjYIkv+2Bea8F6IgqOAAdpr2Sndu6tbBQR7m7RYFDdnL12Zp3mdxHndvDqucmMBv7/A+OXj32+AGy/fu2F2m6+PT5l1JtqzAkZ5Mzc76unf5vms0sJbDkoaUdfxz+BX5XgxgTTzN5mJcaS0JrwjtuDDSi0xubgG7w+xeeU3icp2j9AICmN5YpDfnUzdPPTCZCxWGC4/GwWnoiz1/KjR90SUgGR45OSpzga9WoutT7qpaq3UqlIx7p2eCUAMC4/1dDOA+NC/LVHF3jtB9e+k7AA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kxafUeTrjRBMOvhFqc7T9fokBdFCRRo28IEbjW9kUoQ=; b=RXT49z8bmI/DmuhO4QVTfhmlS0mkbqmC2HXd73IFHnK0Xrgr4HE+nbsty8RzGyqzhLxJLpXkaZ187qP7zmuJ4vA25uppUDL9XfRSZ+m5w+k62l/xNuEXf6tmtwZvYU+wA+YgB2Uk0iWXDT3s/xBwvQtWU+O00CcMJCs613R3myc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by PH0PR11MB5595.namprd11.prod.outlook.com (2603:10b6:510:e5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.7; Tue, 11 Jan 2022 17:15:02 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4%6]) with mapi id 15.20.4867.012; Tue, 11 Jan 2022 17:15:02 +0000 From: Jerome Pouiller <Jerome.Pouiller@silabs.com> To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo <kvalo@codeaurora.org> Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "David S . Miller" <davem@davemloft.net>, devicetree@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, linux-mmc@vger.kernel.org, =?utf-8?q?Pali?= =?utf-8?q?_Roh=C3=A1r?= <pali@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= <jerome.pouiller@silabs.com> Subject: [PATCH v9 06/24] wfx: add bus.h Date: Tue, 11 Jan 2022 18:14:06 +0100 Message-Id: <20220111171424.862764-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220111171424.862764-1-Jerome.Pouiller@silabs.com> References: <20220111171424.862764-1-Jerome.Pouiller@silabs.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-ClientProxiedBy: SN1PR12CA0099.namprd12.prod.outlook.com (2603:10b6:802:21::34) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5b6f776f-a68f-409b-84ce-08d9d525e714 X-MS-TrafficTypeDiagnostic: PH0PR11MB5595:EE_ X-Microsoft-Antispam-PRVS: <PH0PR11MB5595B2A15C7EF5ACA6D6B33993519@PH0PR11MB5595.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:421; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YFu5/+mammcpkxV9VVa+rulshgXANJKYCsDJlSTibhTUTuuOponEfi2crYKB6MysLlPRaduZVz6x9kE2bd3JGLsHwswtiKdjAOHpULkSFaKbWecD3aVNDE7Rn+NaawjvQ1SBJsW1X4qtBeZ3QjDf8pFOa0+b7lz7GCg5ptIVkZWFeVcpXYgsJ+iRvvoSOUlumSpHdYF7iip2rOsTj1Of6N5lXHBIcrwI0jjvERAmac+W6sRxObb8R0sV4fJgTUvVzorzzPy+Ikn9hD/vpX3lNbO9SUGk5vtw6jKBrk8nHymQ43Xc7iIflghVwv+62e0srfNbqiSgBKQ8tNeCEO0WkgF1Drc8ZZAvI1f+xKBXFtFwIFPa3vGZOwefyKQPMLs8UsepME6S78cWFKY1AHTFSV6Pd9GRs2FutTzQmOMmAqGRlU4/FCtFlIr5Oe5oPQSXNYfM40o9rSpdB7Wxva8XH4/tpsrchq406A3h7kQ6czf81k+iBVEkPVLxcd9gVbH39a07CWfeWfC8p+3BDarol3PWt6O61gEMgMXDtWbvBKCgrcEykci5CaloBELHfRYtWpplhF7m+Z/bMxjkMjOK+dWtOHOPyhnPM0aiygY4t15G0B2jy/AciDPQ3JwvGPcUoCnSnkuPPh/FXyVwWQsb7Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(36756003)(66946007)(6512007)(2906002)(107886003)(66574015)(8936002)(2616005)(7416002)(38100700002)(6506007)(4326008)(66476007)(8676002)(54906003)(6916009)(316002)(66556008)(83380400001)(52116002)(86362001)(186003)(5660300002)(6486002)(508600001)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?x56/ML98vut5VEL6xWKXTVVizdKV?= =?utf-8?q?AipZVkf77ggsobmyuP251x6iTkjuo3LTN3/x8GC5LJIzCQ3LxeH6Ey9uk3WgIEF7N?= =?utf-8?q?dvdpfngL2TZrm4Em0oAM3tBELnMrsdsZ+zml4chgJjy3ifWvRfj/yFTF4xdMShzWG?= =?utf-8?q?S7sNJZYiCzaIYfiK3GMEA67jmcdGPeltgIIEhnyDwpEmFuJjFZE5c9qSxtm/tKK+2?= =?utf-8?q?gUvkNUubulQAwy2jxwmvkdjs55FJ/zU0ulk6c/LznGIdce5xivUadXuRlg2n31goE?= =?utf-8?q?yaECzpT5iMyNs5nIhrU/aiBtlp69CyFgx9jow2szcc89KhGwARL/PjWfw40YhVpqa?= =?utf-8?q?GMBPFs9RYjMLahFqDj6dRqeesIjJ/DrvnNw5AkLuC6zZUYklkbxkr/Q2mNIo293U8?= =?utf-8?q?X75n6GXTH1xu/UUZNr1mSPwNkAQRVRNKL7boUKduu2V2hoMRW6ooAaRzbuvX5jLpF?= =?utf-8?q?ekFDBfS3LQdjosOxa25LbpYDZNZHu8dxPiZYuUEplfoaF9W8boufD2H88/7znpKKz?= =?utf-8?q?KwO2zmXa9Y5R/p5xGfEMgDIkk94VedAe386w403KgB/waWNCSefajKYqUipJvOMPy?= =?utf-8?q?q9BeUs+uq3y8gnbplz+GYY0ptEL7I6iRdaFUTNqwo+FuUDreuZS2Wawdc+J5BAl0b?= =?utf-8?q?ThLu+OqpfqhYChUPxd9M7haOe3e3MWdful9NcPficWlhe3Zz9G19FioTDIXeJ1t04?= =?utf-8?q?pzlfbMLFGZwgov1ZD9kXRohBV63LSATR3dZGCBPPGlmAUQEhQl9C8R1+4k1UyANna?= =?utf-8?q?h4slJbs/2jWSeoWr5t11wyYwhGOZBDvC2/oXv4br9AOOrS5IMV/d1yut79w/q4s4x?= =?utf-8?q?UrIpsW1++roM5mWCG2zGxBK04015SOHb6VxBeBPBaruAMXj+PVHzjLhYBy7fiehiG?= =?utf-8?q?/V35Cbl5PGli3bsPbPqr6ZQBp4O3Ggjrvn0a70l1+UmD+ep3QdCWEeQmMaqoOTBty?= =?utf-8?q?el3SDSESYnkMe2PxUD45fBZXlmJH2G4fZAGypzld9+JrBGrG8EKXW8LPeFCx4BvTo?= =?utf-8?q?PIPbcZiFGX3PZHOuvx4eFRv+/On9P2YLOFCLMuUXiiRMKJ82KFoKunmeAE/0vMfKO?= =?utf-8?q?CUYhRIuEwnu4liZKLozFxRiZSXqDKO/WT0VOP/XdS8QoqgFA3BOqyOqInassKZ92e?= =?utf-8?q?JDLGK+xbJQbkQCP9I9B5WZoQhrlSFzyB8qa2dPw7QZSIkV+izFeVwZJMXQtokP3jZ?= =?utf-8?q?LZpqPzx8rXiloKzEEgRgU3RdKzcS3h549VkPWHGMdDGz6ymZ9cSSgywhz9YTAXvtb?= =?utf-8?q?tVRAJMliv9JS/6uOgxLLiWt/ddJ3ixbbZeo7iFzTO/SIq6JrHoo9+6kWIiE3T6Kre?= =?utf-8?q?Tr7ztdUV55uQ6yMFuS/cfoHBVNogNn2Cxk5bjse1iGGP1qp1oS5r1txsafrcTr1m7?= =?utf-8?q?i8ni/BSueGv8KrLtmzW4PTYj7wjUUMgvfaK6nV0K6u0h2cUi6rT8NFmTAtQR8QOmC?= =?utf-8?q?qjYma1WTDXuFl+SPhAc+YGWLwl6FhbLrsfw7vssv1z5GQqtjNGxbkJjzRiuNF1y8j?= =?utf-8?q?1ivxyQIFcAk93oxcQ9q+XjeQkJ79hRFuYNlECQ6apUPc3TcGla6sXM+3gLA9CIIRl?= =?utf-8?q?42c8E6pzufwBoB8oLnEU2WlC7SWPFgwHHxFtvkQeyxh8Fjgnx23p8Y=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5b6f776f-a68f-409b-84ce-08d9d525e714 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2022 17:15:01.9514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4alXcw2LrU+1JeJbO5hx4Cm9GJkzOetGyGZFObpygBu8u/Y8KXQ+sB6zFhZG0q8uQLQXZKSaYbbqrURIMHthHA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5595 Precedence: bulk List-ID: <linux-wireless.vger.kernel.org> X-Mailing-List: linux-wireless@vger.kernel.org |
Series |
wfx: get out from the staging area
|
expand
|
diff --git a/drivers/net/wireless/silabs/wfx/bus.h b/drivers/net/wireless/silabs/wfx/bus.h new file mode 100644 index 000000000000..ccadfdd6873c --- /dev/null +++ b/drivers/net/wireless/silabs/wfx/bus.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Common bus abstraction layer. + * + * Copyright (c) 2017-2020, Silicon Laboratories, Inc. + * Copyright (c) 2010, ST-Ericsson + */ +#ifndef WFX_BUS_H +#define WFX_BUS_H + +#include <linux/mmc/sdio_func.h> +#include <linux/spi/spi.h> + +#define WFX_REG_CONFIG 0x0 +#define WFX_REG_CONTROL 0x1 +#define WFX_REG_IN_OUT_QUEUE 0x2 +#define WFX_REG_AHB_DPORT 0x3 +#define WFX_REG_BASE_ADDR 0x4 +#define WFX_REG_SRAM_DPORT 0x5 +#define WFX_REG_SET_GEN_R_W 0x6 +#define WFX_REG_FRAME_OUT 0x7 + +struct wfx_hwbus_ops { + int (*copy_from_io)(void *bus_priv, unsigned int addr, void *dst, size_t count); + int (*copy_to_io)(void *bus_priv, unsigned int addr, const void *src, size_t count); + int (*irq_subscribe)(void *bus_priv); + int (*irq_unsubscribe)(void *bus_priv); + void (*lock)(void *bus_priv); + void (*unlock)(void *bus_priv); + size_t (*align_size)(void *bus_priv, size_t size); +}; + +extern struct sdio_driver wfx_sdio_driver; +extern struct spi_driver wfx_spi_driver; + +#endif