Message ID | 20201223153925.73742-7-Jerome.Pouiller@silabs.com (mailing list archive) |
---|---|
State | Changes Requested |
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 X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 CA588C4332E for <linux-wireless@archiver.kernel.org>; Wed, 23 Dec 2020 15:45:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A62DC207CC for <linux-wireless@archiver.kernel.org>; Wed, 23 Dec 2020 15:45:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbgLWPlH (ORCPT <rfc822;linux-wireless@archiver.kernel.org>); Wed, 23 Dec 2020 10:41:07 -0500 Received: from mail-mw2nam12on2063.outbound.protection.outlook.com ([40.107.244.63]:15105 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728805AbgLWPlE (ORCPT <rfc822;linux-wireless@vger.kernel.org>); Wed, 23 Dec 2020 10:41:04 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sc453uawImG8j30hLI3l5kFLXQTNQZKQR5YvmNfAILNdMAf+stqukEgYhM+V1c3NnfHjXsYoEfR1EPfZuXs+ABN5Ii6qLIuCEKYRqwS+VfIG7LdSmkuXMbZpHLEvmCCVKSXoTj33q5K2Vb/tmFQQ1tM8Dye1CJZD1F/Oz1o/gj4tK+hdLRmRQIuqVubcvLHHwrbx7Am4gaDb9O2I7/nWmSEdbaCcTb99p//8iL8yKfneYAh0u4ILD++8Vv2CEq49m2lIUxyh7Ah126d3H9DvUHE52EXasY2+c2qe2WLanMwsQipmIfArjrvFZIqMbNoly0+c+GYy1rIORHpzjgMvZA== 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=BoaSuLSXWkS6RYyIUCKFmHqvAKLzRi7Zxr/nEwrquXc=; b=Ifxquje1cuhNgoAzytR057jp8g/ZhT5Hic3thmibcxQIY6gdxnbfpuBdyQwUZuRbVj/Rv/dK8l7YGq0EhjF61TlMssSX7j3r23rXLCmfopk37OOafKRPfcxfAdho7axzM3A4vP3Gh2BSQfTUcUytQjuFDP9a2Jm0o5wo5hniX2umtdiWeAektPF/xl3MNcsR5RridKGR+/Fd07a2I4ATXFhKjs/CTlJVDLpeqNMgjiQRzss/20X1oT9xLnEAyJ0FnJzUn3WRb48SSYWhT9ISqjSER3Do+GJo7HEcrHjXu8GPqJkTqqcLRXekhFpphjlYtimPI0XdaRwE40Y7W5EQsA== 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=BoaSuLSXWkS6RYyIUCKFmHqvAKLzRi7Zxr/nEwrquXc=; b=MJ+oxX6+VUrNq332VH96SRHPPqkqs7aQiatBzwPyHQFNBmfEs6LZ6NlEEE3mvDhkXuLPFOkj2WC2Ps4ufMgCVwi4fJWi6HGRPtQGfpgQ1QcgUFhHQz7Ebe3Svh9NbzSBexMvDrLEd2oH/anKkOTm7FXiWE+UmBStqCHulDc1zmU= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SN6PR11MB2815.namprd11.prod.outlook.com (2603:10b6:805:62::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.25; Wed, 23 Dec 2020 15:39:56 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::a989:f850:6736:97ca]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::a989:f850:6736:97ca%5]) with mapi id 15.20.3700.026; Wed, 23 Dec 2020 15:39:56 +0000 From: Jerome Pouiller <Jerome.Pouiller@silabs.com> To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kalle Valo <kvalo@codeaurora.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_Roh=C3=A1r?= <pali@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= <jerome.pouiller@silabs.com> Subject: [PATCH v4 06/24] wfx: add bus.h Date: Wed, 23 Dec 2020 16:39:07 +0100 Message-Id: <20201223153925.73742-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201223153925.73742-1-Jerome.Pouiller@silabs.com> References: <20201223153925.73742-1-Jerome.Pouiller@silabs.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Originating-IP: [82.67.86.106] X-ClientProxiedBy: SA0PR12CA0024.namprd12.prod.outlook.com (2603:10b6:806:6f::29) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (82.67.86.106) by SA0PR12CA0024.namprd12.prod.outlook.com (2603:10b6:806:6f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27 via Frontend Transport; Wed, 23 Dec 2020 15:39:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 308fbd3e-93f9-4677-15d9-08d8a758fffc X-MS-TrafficTypeDiagnostic: SN6PR11MB2815: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <SN6PR11MB281544B62E5A1513A29AEAC293DE0@SN6PR11MB2815.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:421; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kRAftRjJ0efC/DWwlJZDWHYD6MLj8Xvi3Co7ZtV+pNINvRNBLyxqZdhYXKJIB//5ZzxlIT40s+X7vS7MFJ3awLvlBHMdGJ2v5GY9RuhbPeDEIOL6B3uXJZyhouWKWzTa+X7gKI7X1vgVqE6RXf6AVxj6Cu9aaqgBUmqKqWsucGnOgZRabBBdFMs6wMgVLAIk8/bsEbWlFkHHbpQWrm+h027N7k+XHICKclRhnZ5VBJpCw8bw2XBHnpCEyBfA6yjVvw6G4Qwb3VqzdPgWhjM08n8YVe23QooBMGF7lzIZU9vJd3fj6CS4Hw8cjoG2iyz8ajUYDaFT8+Jw4C9ya3SxVrYIAFd1nzDNaTCNoZNONSVi0BQZI+Bwpfj5AIEFY1gAIZNce1af/WF4AJdeytjgEg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(136003)(366004)(376002)(39850400004)(346002)(66574015)(478600001)(83380400001)(8676002)(186003)(2906002)(8936002)(26005)(52116002)(107886003)(16526019)(7696005)(66946007)(7416002)(6486002)(956004)(2616005)(54906003)(66476007)(316002)(4326008)(6666004)(36756003)(5660300002)(1076003)(86362001)(66556008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?8r2G2Nmy5lOPRh+ggq61r7+Ax2Yd8f?= =?utf-8?q?/R97FIEL6ayY0t2dACmdhi3zmGiWArE1wFi5z52Xq3hR3Y/adtjoHuXyrKKKh5gu7?= =?utf-8?q?0cOd7bSXDrHgWBGaBYW5WC4EJFr0Vf9WrDTe2Dl1niYvGTsHfgQbohTl7ZWAABFio?= =?utf-8?q?N0KiTmrwteE6FFv9uzFXbh/W5Yfh/6op8dQQ7X7lcJdl17l6341+erFwXYx8+KN/s?= =?utf-8?q?xvW6Fk0/2Z52HiOhbHfk3C3RWvNL/bNIUAebgNMO7Y1q2O9LSlhtB+l87pnkgg0sG?= =?utf-8?q?VzKMtjDV9mp7Nc/5ehBkUm77ZbGCPA5bJGUvwGnkOK8ccY6mSxCAJuRxwaW67jjra?= =?utf-8?q?plSFtNSBkYJbQoaJc5aj0vQEVo2ZHJs0Umzt+CZLcvYLu5r3Z0J9bUEl9mQv1YwH6?= =?utf-8?q?8LQgE12HsEg6+UsAjeFG8rsjc0Bl6y+NefhH1n2bkzsILQQ1w8msalR9oVb4d1trG?= =?utf-8?q?uLQKDVaPOomiwvNjwvWM16NauyXzuSNYwi/tjRWazVDTJqXt4Blpn9ZIfJS0Bk5Ph?= =?utf-8?q?9i0imUh4hbVwdZL+0+BbwdaHInvy6nBJThFrIfq5UFZs6Xhl0BIPtOvqamDHMvCRP?= =?utf-8?q?20KbgvQVhabQR6bG6XysPvGEz7NON1xvTXpPjOqqoKUzZaWwwW4NzqJTW1IvfGwNV?= =?utf-8?q?2BJsAMBFMGKrUmJIkT8HtxIJ6gY2kzRZFiRdjHvAb2JF0p5V5OTlImTEE/hdL7Esw?= =?utf-8?q?MI9oPQbgoscK5enuxmW2hVMYNA2gsWAtB1jpeenP1khZWKHuzU/MFiF5LTWlJ95C5?= =?utf-8?q?tXoAbsjOnzgdh9Udgn4yMpdZnyPpAPKTnXsHFcaEVDQ8Hxe8RKWUe3vAGrPIPXLh9?= =?utf-8?q?q64F3WwvGvqeEyqzUNZD6oeeE9ZRaE3JClVo3+ciZxvl9Y44rIW2QNC9rULTLgPdu?= =?utf-8?q?Tk2ZrqgPFJ5WuYe2UsAyPvEirNTtFm8Zcq1zWDbc9eXbx7Z4qCSSjerVpjsqfXR+r?= =?utf-8?q?hqRuRCm97xqw/p3AMdE?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2020 15:39:56.5327 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-Network-Message-Id: 308fbd3e-93f9-4677-15d9-08d8a758fffc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0KkMTvYRt8OwL5KEB3zssDFDHLMFw7On7pp+jjONTt+IUAUfeTF9TKgSEP+yscad7N0ADXVqiZuXiD5pK8vL4g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2815 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..ca04b3da6204 --- /dev/null +++ b/drivers/net/wireless/silabs/wfx/bus.h @@ -0,0 +1,38 @@ +/* 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 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