From nobody Sun Sep 14 00:31:35 2025 Return-Path: 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 E35ABC61D97 for ; Sun, 29 Jan 2023 14:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234793AbjA2O7H (ORCPT ); Sun, 29 Jan 2023 09:59:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234881AbjA2O7C (ORCPT ); Sun, 29 Jan 2023 09:59:02 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E273316ADB for ; Sun, 29 Jan 2023 06:58:46 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id j32-20020a05600c1c2000b003dc4fd6e61dso1561597wms.5 for ; Sun, 29 Jan 2023 06:58:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=u6/SXN7va6FFFDQOTORqHE36jhhud+i2AemfQKfdFEY=; b=GIPatdy4NNF54VmSgtRWCbTWaYim4FAv0x9sZqX/fJCmwWcQr4CFp0o0i3m8H9fE25 bhU+IivlegVU/KN0HMBM5RK9c0gb/iUcTXaWtqHa249pPlAe9tq655yggUhdT+4BElro QUemw5ArYBDdhEcFu+E45IUPJtY+2Uc89yY/j2QaDg+sQiH1r9fiRa4cIXbdoONhJLgL W0TiBCHWnxddOgi+mqV8lYBq7WQ0SVqh4WLYC2T1fLcYbKjIKmN3IhZ4YmSmkTb6qAas u3Dgr+ks5UVqf03Cq4NHaFGS1iz5BrlQPAeoVXD9gNsamVHk1F0gN0ptAiLGPPzjX8NF ss0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u6/SXN7va6FFFDQOTORqHE36jhhud+i2AemfQKfdFEY=; b=k5d5pw63hod/7lezeDqcn73aFjCsERt2qvYaYvHEqu2DEvkCOPCgmaoSyJfdtbB78R x8cYP9mIt63IkHGKd+7L4eenbOSdaJif1UI2tbBQCTOjjvlQk/3WV7OFS0EScGZ3KaHW VIKIo+YjTfqK5AAWSZVvW82kOQzk1OqrnRtxkfL9DMOgdFr1r2RxIm2z3fsHTD1cNHwb 1OKFCO0ttvxX6x4bRugtnxAWCwW1ryQ06uHsPud3c70bGafM9ge10zrc0aY4FQsPzbtB NzNdmcGVwEFEV5692IgAxOkdXoLb+eB3Iq1NkvtyJ60rmwSDF3lsOlowTxTwfRkmH5kD /lsQ== X-Gm-Message-State: AO0yUKUMPbAH/iMqUipOCA7hHSWiM4+DcVEIxOSXlPegdBELqhi7Vn8A WYImbprDD0W0kUM6iT7SZHeDuLKPJTc= X-Google-Smtp-Source: AK7set9/w9KMokZiGm0QIDkCXEllayYh8Ok6sV+VcvBktUv3hgu5kYKcgariKG145UxNKhV8WRM/Ew== X-Received: by 2002:a05:600c:1f18:b0:3dc:53fc:c8b3 with SMTP id bd24-20020a05600c1f1800b003dc53fcc8b3mr558719wmb.3.1675004325427; Sun, 29 Jan 2023 06:58:45 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935ca5.dip0.t-ipconnect.de. [87.147.92.165]) by smtp.gmail.com with ESMTPSA id p12-20020a05600c468c00b003dc22ee5a2bsm11688082wmo.39.2023.01.29.06.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 06:58:44 -0800 (PST) Date: Sun, 29 Jan 2023 15:58:43 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] staging: rtl8192e: Remove unused constants in _RTL8192Pci_HW Message-ID: <7eef6b217c00d123ee7194191209ff3bee707f8c.1675003608.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove unused constants in and after _RTL8192Pci_HW of r8192E_hw.h. A part of the constants would need to be renamed because of CamelCase on others spaces are missing before and after "<<". Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h | 148 +----------------- 1 file changed, 1 insertion(+), 147 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h b/drivers/stagin= g/rtl8192e/rtl8192e/r8192E_hw.h index cc1e62f7074d..13c0e5218ecf 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h @@ -41,72 +41,39 @@ enum baseband_config { #define EEPROM_CID_WHQL 0xFE enum _RTL8192Pci_HW { MAC0 =3D 0x000, - MAC1 =3D 0x001, - MAC2 =3D 0x002, - MAC3 =3D 0x003, MAC4 =3D 0x004, - MAC5 =3D 0x005, PCIF =3D 0x009, -#define MXDMA2_16bytes 0x000 -#define MXDMA2_32bytes 0x001 -#define MXDMA2_64bytes 0x010 -#define MXDMA2_128bytes 0x011 -#define MXDMA2_256bytes 0x100 -#define MXDMA2_512bytes 0x101 -#define MXDMA2_1024bytes 0x110 #define MXDMA2_NoLimit 0x7 =20 -#define MULRW_SHIFT 3 #define MXDMA2_RX_SHIFT 4 #define MXDMA2_TX_SHIFT 0 PMR =3D 0x00c, EPROM_CMD =3D 0x00e, -#define EPROM_CMD_RESERVED_MASK BIT5 + #define EPROM_CMD_9356SEL BIT4 #define EPROM_CMD_OPERATING_MODE_SHIFT 6 -#define EPROM_CMD_OPERATING_MODE_MASK ((1<<7)|(1<<6)) -#define EPROM_CMD_CONFIG 0x3 #define EPROM_CMD_NORMAL 0 -#define EPROM_CMD_LOAD 1 #define EPROM_CMD_PROGRAM 2 #define EPROM_CS_BIT 3 #define EPROM_CK_BIT 2 #define EPROM_W_BIT 1 #define EPROM_R_BIT 0 =20 - AFR =3D 0x010, -#define AFR_CardBEn (1<<0) -#define AFR_CLKRUN_SEL (1<<1) -#define AFR_FuncRegEn (1<<2) - ANAPAR =3D 0x17, #define BB_GLOBAL_RESET_BIT 0x1 BB_GLOBAL_RESET =3D 0x020, BSSIDR =3D 0x02E, CMDR =3D 0x037, -#define CR_RST 0x10 #define CR_RE 0x08 #define CR_TE 0x04 -#define CR_MulRW 0x01 SIFS =3D 0x03E, - TCR =3D 0x040, RCR =3D 0x044, -#define RCR_FILTER_MASK (BIT0 | BIT1 | BIT2 | BIT3 | BIT5 | BIT12 | \ - BIT18 | BIT19 | BIT20 | BIT21 | BIT22 | BIT23) #define RCR_ONLYERLPKT BIT31 -#define RCR_ENCS2 BIT30 -#define RCR_ENCS1 BIT29 -#define RCR_ENMBID BIT27 -#define RCR_ACKTXBW (BIT24|BIT25) #define RCR_CBSSID BIT23 -#define RCR_APWRMGT BIT22 #define RCR_ADD3 BIT21 #define RCR_AMF BIT20 -#define RCR_ACF BIT19 #define RCR_ADF BIT18 -#define RCR_RXFTH BIT13 #define RCR_AICV BIT12 -#define RCR_ACRC32 BIT5 #define RCR_AB BIT3 #define RCR_AM BIT2 #define RCR_APM BIT1 @@ -115,8 +82,6 @@ enum _RTL8192Pci_HW { #define RCR_FIFO_OFFSET 13 SLOT_TIME =3D 0x049, ACK_TIMEOUT =3D 0x04c, - PIFS_TIME =3D 0x04d, - USTIME =3D 0x04e, EDCAPARA_BE =3D 0x050, EDCAPARA_BK =3D 0x054, EDCAPARA_VO =3D 0x058, @@ -125,53 +90,25 @@ enum _RTL8192Pci_HW { #define AC_PARAM_ECW_MAX_OFFSET 12 #define AC_PARAM_ECW_MIN_OFFSET 8 #define AC_PARAM_AIFS_OFFSET 0 - RFPC =3D 0x05F, - CWRR =3D 0x060, BCN_TCFG =3D 0x062, #define BCN_TCFG_CW_SHIFT 8 #define BCN_TCFG_IFS 0 BCN_INTERVAL =3D 0x070, ATIMWND =3D 0x072, BCN_DRV_EARLY_INT =3D 0x074, -#define BCN_DRV_EARLY_INT_SWBCN_SHIFT 8 -#define BCN_DRV_EARLY_INT_TIME_SHIFT 0 BCN_DMATIME =3D 0x076, BCN_ERR_THRESH =3D 0x078, RWCAM =3D 0x0A0, -#define CAM_CM_SecCAMPolling BIT31 -#define CAM_CM_SecCAMClr BIT30 -#define CAM_CM_SecCAMWE BIT16 -#define CAM_VALID BIT15 -#define CAM_NOTVALID 0x0000 -#define CAM_USEDK BIT5 - -#define CAM_NONE 0x0 -#define CAM_WEP40 0x01 -#define CAM_TKIP 0x02 -#define CAM_AES 0x04 -#define CAM_WEP104 0x05 - #define TOTAL_CAM_ENTRY 32 - -#define CAM_CONFIG_USEDK true -#define CAM_CONFIG_NO_USEDK false -#define CAM_WRITE BIT16 -#define CAM_READ 0x00000000 -#define CAM_POLLINIG BIT31 -#define SCR_UseDK 0x01 WCAMI =3D 0x0A4, - RCAMO =3D 0x0A8, SECR =3D 0x0B0, #define SCR_TxUseDK BIT0 #define SCR_RxUseDK BIT1 #define SCR_TxEncEnable BIT2 #define SCR_RxDecEnable BIT3 -#define SCR_SKByA2 BIT4 #define SCR_NoSKMC BIT5 SWREGULATOR =3D 0x0BD, INTA_MASK =3D 0x0f4, -#define IMR8190_DISABLED 0x0 -#define IMR_ATIMEND BIT28 #define IMR_TBDOK BIT27 #define IMR_TBDER BIT26 #define IMR_TXFOVW BIT15 @@ -192,29 +129,9 @@ enum _RTL8192Pci_HW { #define IMR_ROK BIT0 ISR =3D 0x0f8, TPPoll =3D 0x0fd, -#define TPPoll_BKQ BIT0 -#define TPPoll_BEQ BIT1 -#define TPPoll_VIQ BIT2 -#define TPPoll_VOQ BIT3 -#define TPPoll_BQ BIT4 #define TPPoll_CQ BIT5 -#define TPPoll_MQ BIT6 -#define TPPoll_HQ BIT7 -#define TPPoll_HCCAQ BIT8 -#define TPPoll_StopBK BIT9 -#define TPPoll_StopBE BIT10 -#define TPPoll_StopVI BIT11 -#define TPPoll_StopVO BIT12 -#define TPPoll_StopMgt BIT13 -#define TPPoll_StopHigh BIT14 -#define TPPoll_StopHCCA BIT15 -#define TPPoll_SHIFT 8 - PSR =3D 0x0ff, -#define PSR_GEN 0x0 -#define PSR_CPU 0x1 CPU_GEN =3D 0x100, - BB_RESET =3D 0x101, #define CPU_CCK_LOOPBACK 0x00030000 #define CPU_GEN_SYSTEM_RESET 0x00000001 #define CPU_GEN_FIRMWARE_RESET 0x00000008 @@ -225,31 +142,13 @@ enum _RTL8192Pci_HW { #define CPU_GEN_PWR_STB_CPU 0x00000004 #define CPU_GEN_NO_LOOPBACK_MSK 0xFFF8FFFF #define CPU_GEN_NO_LOOPBACK_SET 0x00080000 -#define CPU_GEN_GPIO_UART 0x00007000 - - LED1Cfg =3D 0x154, - LED0Cfg =3D 0x155, - - AcmAvg =3D 0x170, AcmHwCtrl =3D 0x171, -#define AcmHw_HwEn BIT0 #define AcmHw_BeqEn BIT1 #define AcmHw_ViqEn BIT2 #define AcmHw_VoqEn BIT3 -#define AcmHw_BeqStatus BIT4 -#define AcmHw_ViqStatus BIT5 -#define AcmHw_VoqStatus BIT6 - AcmFwCtrl =3D 0x172, -#define AcmFw_BeqStatus BIT0 -#define AcmFw_ViqStatus BIT1 -#define AcmFw_VoqStatus BIT2 - VOAdmTime =3D 0x174, - VIAdmTime =3D 0x178, - BEAdmTime =3D 0x17C, RQPN1 =3D 0x180, RQPN2 =3D 0x184, RQPN3 =3D 0x188, - QPRR =3D 0x1E0, QPNR =3D 0x1F0, BQDA =3D 0x200, HQDA =3D 0x204, @@ -260,40 +159,13 @@ enum _RTL8192Pci_HW { VIQDA =3D 0x218, BEQDA =3D 0x21C, BKQDA =3D 0x220, - RCQDA =3D 0x224, RDQDA =3D 0x228, =20 - MAR0 =3D 0x240, - MAR4 =3D 0x244, - - CCX_PERIOD =3D 0x250, - CLM_RESULT =3D 0x251, - NHM_PERIOD =3D 0x252, - - NHM_THRESHOLD0 =3D 0x253, - NHM_THRESHOLD1 =3D 0x254, - NHM_THRESHOLD2 =3D 0x255, - NHM_THRESHOLD3 =3D 0x256, - NHM_THRESHOLD4 =3D 0x257, - NHM_THRESHOLD5 =3D 0x258, - NHM_THRESHOLD6 =3D 0x259, - - MCTRL =3D 0x25A, - - NHM_RPI_COUNTER0 =3D 0x264, - NHM_RPI_COUNTER1 =3D 0x265, - NHM_RPI_COUNTER2 =3D 0x266, - NHM_RPI_COUNTER3 =3D 0x267, - NHM_RPI_COUNTER4 =3D 0x268, - NHM_RPI_COUNTER5 =3D 0x269, - NHM_RPI_COUNTER6 =3D 0x26A, - NHM_RPI_COUNTER7 =3D 0x26B, WFCRC0 =3D 0x2f0, WFCRC1 =3D 0x2f4, WFCRC2 =3D 0x2f8, =20 BW_OPMODE =3D 0x300, -#define BW_OPMODE_11J BIT0 #define BW_OPMODE_5G BIT1 #define BW_OPMODE_20MHZ BIT2 IC_VERRSION =3D 0x301, @@ -304,7 +176,6 @@ enum _RTL8192Pci_HW { #define MSR_LINK_SHIFT 0 #define MSR_LINK_ADHOC 1 #define MSR_LINK_MASTER 3 -#define MSR_LINK_ENEDCA (1<<4) =20 #define MSR_NOLINK 0x00 #define MSR_ADHOC 0x01 @@ -316,12 +187,7 @@ enum _RTL8192Pci_HW { #define RETRY_LIMIT_LONG_SHIFT 0 TSFR =3D 0x308, RRSR =3D 0x310, -#define RRSR_RSC_OFFSET 21 #define RRSR_SHORT_OFFSET 23 -#define RRSR_RSC_DUPLICATE 0x600000 -#define RRSR_RSC_UPSUBCHNL 0x400000 -#define RRSR_RSC_LOWSUBCHNL 0x200000 -#define RRSR_SHORT 0x800000 #define RRSR_1M BIT0 #define RRSR_2M BIT1 #define RRSR_5_5M BIT2 @@ -334,14 +200,6 @@ enum _RTL8192Pci_HW { #define RRSR_36M BIT9 #define RRSR_48M BIT10 #define RRSR_54M BIT11 -#define RRSR_MCS0 BIT12 -#define RRSR_MCS1 BIT13 -#define RRSR_MCS2 BIT14 -#define RRSR_MCS3 BIT15 -#define RRSR_MCS4 BIT16 -#define RRSR_MCS5 BIT17 -#define RRSR_MCS6 BIT18 -#define RRSR_MCS7 BIT19 #define BRSR_AckShortPmb BIT23 UFWP =3D 0x318, RATR0 =3D 0x320, @@ -393,10 +251,6 @@ enum _RTL8192Pci_HW { ; =20 #define GPI 0x108 -#define GPO 0x109 -#define GPE 0x10a - -#define HWSET_MAX_SIZE_92S 128 =20 #define ANAPAR_FOR_8192PciE 0x17 =20 --=20 2.39.1