From patchwork Wed Jan 11 19:56:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 42173 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3509729wrt; Wed, 11 Jan 2023 11:59:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXu0Fi8v9QTPIzvRXzdciNoXraKfFvOg6svfErvimRHSYESXl+Zaa7Xgo4P/w2UrdPFZAIkv X-Received: by 2002:a05:6402:3718:b0:499:a82a:f5ed with SMTP id ek24-20020a056402371800b00499a82af5edmr12893037edb.38.1673467188169; Wed, 11 Jan 2023 11:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673467188; cv=none; d=google.com; s=arc-20160816; b=k3Uf/QpI2lWX/t5b9+aT1ztTBkTsFT984XoiMRqnRGvP904ike7B6srXw608g1IgGF OsItAU/LVI1fLBWsWEGzN/PxqluPYrcSHyahkkSE00gfx6SwtjCbvQwJ8lodPFWyfDiB 3IztCc+M3JeEEcw9Sukmvb5kDP2L7hrj+Oa3g/wCPrdNcGtFnj/CvmdhoB2T3iKo26S1 /5BY37t1oEKQkhOubEbbW2FgbKg4H5UZYB4eWwruxof5sW/QtVUa135jscuYMQ3977Sm 9QPYQabKikGSwNB1twD7Ul3/oH5DNOcAyjBIRT95smHDJHH4R9xOG0lYgfQr74wr8Q61 M8yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=1tzV8yWh7x9cYqXB9sUzST/ytWWx4N/SlJV+7QERGnI=; b=abPwqIHVvIRyCMNUm9NLqS+SnpILoCTIKWg1L7bCzuUT3jLEDUNHdVl1F0Cd/5GgXI k2IdV8vN2SuGmNRbQzGjc5gLJk6h6gZoYJJgcqjtdSA5oiQ2NA6K8ABRUwLfylv9Bjnt 3+5OULhAU5Sr6fFe/KaD9CIgfNFNXEQrOgyro6Dgl5HKlgB+OoEvmfytKp9voBgfTwS8 IBHXJkfmsDL5WqJRpXm32S1Cz877tmWLZ4BzZR1J278Pd9srFXRFCq/y0BK5mzt1XSVh 9N8Zk59CvrBikVfyd820eYY09wg17IOrxfo7rFPdBMw0ANEL5QxpR1DUvuaOl/EnJgWJ vbRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a056402520600b00493952a2f8esi4954228edd.269.2023.01.11.11.59.24; Wed, 11 Jan 2023 11:59:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239619AbjAKT6R (ORCPT + 99 others); Wed, 11 Jan 2023 14:58:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjAKT5K (ORCPT ); Wed, 11 Jan 2023 14:57:10 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C22AB6174 for ; Wed, 11 Jan 2023 11:57:08 -0800 (PST) Received: from dslb-188-096-145-172.188.096.pools.vodafone-ip.de ([188.96.145.172] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1pFhDc-0005F2-5s; Wed, 11 Jan 2023 20:57:04 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 14/20] staging: r8188eu: remove IO defines Date: Wed, 11 Jan 2023 20:56:34 +0100 Message-Id: <20230111195640.306748-15-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230111195640.306748-1-martin@kaiser.cx> References: <20230111195640.306748-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754757530147074269?= X-GMAIL-MSGID: =?utf-8?q?1754757530147074269?= Remove a couple of IO related defines which are not used in the r8188eu driver. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/include/rtw_io.h | 58 ------------------------ 1 file changed, 58 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 95dd66c0be82..749bb1d0eeed 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -22,64 +22,6 @@ #define rtw_usb_buffer_free(dev, size, addr, dma) \ usb_free_coherent((dev), (size), (addr), (dma)) -#define NUM_IOREQ 8 - -#define MAX_PROT_SZ (64-16) - -#define _IOREADY 0 -#define _IO_WAIT_COMPLETE 1 -#define _IO_WAIT_RSP 2 - -/* IO COMMAND TYPE */ -#define _IOSZ_MASK_ (0x7F) -#define _IO_WRITE_ BIT(7) -#define _IO_FIXED_ BIT(8) -#define _IO_BURST_ BIT(9) -#define _IO_BYTE_ BIT(10) -#define _IO_HW_ BIT(11) -#define _IO_WORD_ BIT(12) -#define _IO_SYNC_ BIT(13) -#define _IO_CMDMASK_ (0x1F80) - -/* - For prompt mode accessing, caller shall free io_req - Otherwise, io_handler will free io_req -*/ - -/* IO STATUS TYPE */ -#define _IO_ERR_ BIT(2) -#define _IO_SUCCESS_ BIT(1) -#define _IO_DONE_ BIT(0) - -#define IO_RD32 (_IO_SYNC_ | _IO_WORD_) -#define IO_RD16 (_IO_SYNC_ | _IO_HW_) -#define IO_RD8 (_IO_SYNC_ | _IO_BYTE_) - -#define IO_RD32_ASYNC (_IO_WORD_) -#define IO_RD16_ASYNC (_IO_HW_) -#define IO_RD8_ASYNC (_IO_BYTE_) - -#define IO_WR32 (_IO_WRITE_ | _IO_SYNC_ | _IO_WORD_) -#define IO_WR16 (_IO_WRITE_ | _IO_SYNC_ | _IO_HW_) -#define IO_WR8 (_IO_WRITE_ | _IO_SYNC_ | _IO_BYTE_) - -#define IO_WR32_ASYNC (_IO_WRITE_ | _IO_WORD_) -#define IO_WR16_ASYNC (_IO_WRITE_ | _IO_HW_) -#define IO_WR8_ASYNC (_IO_WRITE_ | _IO_BYTE_) - -/* - Only Sync. burst accessing is provided. -*/ - -#define IO_WR_BURST(x) \ - (_IO_WRITE_ | _IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_)) -#define IO_RD_BURST(x) \ - (_IO_SYNC_ | _IO_BURST_ | ((x) & _IOSZ_MASK_)) - -/* below is for the intf_option bit defition... */ - -#define _INTF_ASYNC_ BIT(0) /* support async io */ - struct intf_priv; struct intf_hdl;