From: Thomas Chou <thomas@wytron.com.tw>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/5] net: altera_tse: remove unused macro and regs def
Date: Fri, 6 Nov 2015 09:31:31 +0800 [thread overview]
Message-ID: <563C02F3.7040105@wytron.com.tw> (raw)
In-Reply-To: <1446728090-5969-1-git-send-email-thomas@wytron.com.tw>
On 2015?11?05? 20:54, Thomas Chou wrote:
> Remove unused macro and regs def.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> Reviewed-by: Marek Vasut <marex@denx.de>
> Reviewed-by: Chin Liang See <clsee@altera.com>
> ---
> v2
> remove unused mac regs def.
>
> drivers/net/altera_tse.h | 104 ++---------------------------------------------
> 1 file changed, 3 insertions(+), 101 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/drivers/net/altera_tse.h b/drivers/net/altera_tse.h
> index 08c4f66..f289bff 100644
> --- a/drivers/net/altera_tse.h
> +++ b/drivers/net/altera_tse.h
> @@ -14,20 +14,12 @@
> #define __packed_1_ __attribute__ ((packed, aligned(1)))
>
> /* SGDMA Stuff */
> -#define ALT_SGDMA_STATUS_ERROR_MSK (0x00000001)
> -#define ALT_SGDMA_STATUS_EOP_ENCOUNTERED_MSK (0x00000002)
> -#define ALT_SGDMA_STATUS_DESC_COMPLETED_MSK (0x00000004)
> -#define ALT_SGDMA_STATUS_CHAIN_COMPLETED_MSK (0x00000008)
> #define ALT_SGDMA_STATUS_BUSY_MSK (0x00000010)
>
> #define ALT_SGDMA_CONTROL_RUN_MSK (0x00000020)
> #define ALT_SGDMA_CONTROL_STOP_DMA_ER_MSK (0x00000040)
> #define ALT_SGDMA_CONTROL_SOFTWARERESET_MSK (0x00010000)
>
> -#define ALTERA_TSE_SGDMA_INTR_MASK (ALT_SGDMA_CONTROL_IE_CHAIN_COMPLETED_MSK \
> - | ALT_SGDMA_STATUS_DESC_COMPLETED_MSK \
> - | ALT_SGDMA_CONTROL_IE_GLOBAL_MSK)
> -
> /*
> * Descriptor control bit masks & offsets
> *
> @@ -38,7 +30,6 @@
> #define ALT_SGDMA_DESCRIPTOR_CONTROL_GENERATE_EOP_MSK (0x00000001)
> #define ALT_SGDMA_DESCRIPTOR_CONTROL_READ_FIXED_ADDRESS_MSK (0x00000002)
> #define ALT_SGDMA_DESCRIPTOR_CONTROL_WRITE_FIXED_ADDRESS_MSK (0x00000004)
> -#define ALT_SGDMA_DESCRIPTOR_CONTROL_ATLANTIC_CHANNEL_MSK (0x00000008)
> #define ALT_SGDMA_DESCRIPTOR_CONTROL_OWNED_BY_HW_MSK (0x00000080)
>
> /*
> @@ -48,15 +39,7 @@
> * The following bit-offsets are expressed relative to the LSB of
> * the status register bitfield.
> */
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_CRC_MSK (0x00000001)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_PARITY_MSK (0x00000002)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_OVERFLOW_MSK (0x00000004)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_SYNC_MSK (0x00000008)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_UEOP_MSK (0x00000010)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_MEOP_MSK (0x00000020)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_E_MSOP_MSK (0x00000040)
> #define ALT_SGDMA_DESCRIPTOR_STATUS_TERMINATED_BY_EOP_MSK (0x00000080)
> -#define ALT_SGDMA_DESCRIPTOR_STATUS_ERROR_MSK (0x0000007F)
>
> /*
> * The SGDMA controller buffer descriptor allocates
> @@ -104,37 +87,10 @@ struct alt_sgdma_registers {
> /* TSE Stuff */
> #define ALTERA_TSE_CMD_TX_ENA_MSK (0x00000001)
> #define ALTERA_TSE_CMD_RX_ENA_MSK (0x00000002)
> -#define ALTERA_TSE_CMD_XON_GEN_MSK (0x00000004)
> #define ALTERA_TSE_CMD_ETH_SPEED_MSK (0x00000008)
> -#define ALTERA_TSE_CMD_PROMIS_EN_MSK (0x00000010)
> -#define ALTERA_TSE_CMD_PAD_EN_MSK (0x00000020)
> -#define ALTERA_TSE_CMD_CRC_FWD_MSK (0x00000040)
> -#define ALTERA_TSE_CMD_PAUSE_FWD_MSK (0x00000080)
> -#define ALTERA_TSE_CMD_PAUSE_IGNORE_MSK (0x00000100)
> -#define ALTERA_TSE_CMD_TX_ADDR_INS_MSK (0x00000200)
> #define ALTERA_TSE_CMD_HD_ENA_MSK (0x00000400)
> -#define ALTERA_TSE_CMD_EXCESS_COL_MSK (0x00000800)
> -#define ALTERA_TSE_CMD_LATE_COL_MSK (0x00001000)
> #define ALTERA_TSE_CMD_SW_RESET_MSK (0x00002000)
> -#define ALTERA_TSE_CMD_MHASH_SEL_MSK (0x00004000)
> -#define ALTERA_TSE_CMD_LOOPBACK_MSK (0x00008000)
> -/* Bits (18:16) = address select */
> -#define ALTERA_TSE_CMD_TX_ADDR_SEL_MSK (0x00070000)
> -#define ALTERA_TSE_CMD_MAGIC_ENA_MSK (0x00080000)
> -#define ALTERA_TSE_CMD_SLEEP_MSK (0x00100000)
> -#define ALTERA_TSE_CMD_WAKEUP_MSK (0x00200000)
> -#define ALTERA_TSE_CMD_XOFF_GEN_MSK (0x00400000)
> -#define ALTERA_TSE_CMD_CNTL_FRM_ENA_MSK (0x00800000)
> -#define ALTERA_TSE_CMD_NO_LENGTH_CHECK_MSK (0x01000000)
> #define ALTERA_TSE_CMD_ENA_10_MSK (0x02000000)
> -#define ALTERA_TSE_CMD_RX_ERR_DISC_MSK (0x04000000)
> -/* Bits (30..27) reserved */
> -#define ALTERA_TSE_CMD_CNT_RESET_MSK (0x80000000)
> -
> -#define ALTERA_TSE_TX_CMD_STAT_TX_SHIFT16 (0x00040000)
> -#define ALTERA_TSE_TX_CMD_STAT_OMIT_CRC (0x00020000)
> -
> -#define ALTERA_TSE_RX_CMD_STAT_RX_SHIFT16 (0x02000000)
>
> #define ALT_TSE_SW_RESET_TIMEOUT (3 * CONFIG_SYS_HZ)
> #define ALT_TSE_SGDMA_BUSY_TIMEOUT (3 * CONFIG_SYS_HZ)
> @@ -160,67 +116,13 @@ struct alt_tse_mac {
> unsigned int mdio_phy0_addr;
> unsigned int mdio_phy1_addr;
>
> - /* only if 100/1000 BaseX PCS, reserved otherwise */
> - unsigned int reservedx44[5];
> -
> - unsigned int reg_read_access_status;
> - unsigned int min_tx_ipg_length;
> -
> - /* IEEE 802.3 oEntity Managed Object Support */
> - unsigned int aMACID_1; /*The MAC addresses */
> - unsigned int aMACID_2;
> - unsigned int aFramesTransmittedOK;
> - unsigned int aFramesReceivedOK;
> - unsigned int aFramesCheckSequenceErrors;
> - unsigned int aAlignmentErrors;
> - unsigned int aOctetsTransmittedOK;
> - unsigned int aOctetsReceivedOK;
> -
> - /* IEEE 802.3 oPausedEntity Managed Object Support */
> - unsigned int aTxPAUSEMACCtrlFrames;
> - unsigned int aRxPAUSEMACCtrlFrames;
> -
> - /* IETF MIB (MIB-II) Object Support */
> - unsigned int ifInErrors;
> - unsigned int ifOutErrors;
> - unsigned int ifInUcastPkts;
> - unsigned int ifInMulticastPkts;
> - unsigned int ifInBroadcastPkts;
> - unsigned int ifOutDiscards;
> - unsigned int ifOutUcastPkts;
> - unsigned int ifOutMulticastPkts;
> - unsigned int ifOutBroadcastPkts;
> -
> - /* IETF RMON MIB Object Support */
> - unsigned int etherStatsDropEvent;
> - unsigned int etherStatsOctets;
> - unsigned int etherStatsPkts;
> - unsigned int etherStatsUndersizePkts;
> - unsigned int etherStatsOversizePkts;
> - unsigned int etherStatsPkts64Octets;
> - unsigned int etherStatsPkts65to127Octets;
> - unsigned int etherStatsPkts128to255Octets;
> - unsigned int etherStatsPkts256to511Octets;
> - unsigned int etherStatsPkts512to1023Octets;
> - unsigned int etherStatsPkts1024to1518Octets;
> -
> - unsigned int etherStatsPkts1519toXOctets;
> - unsigned int etherStatsJabbers;
> - unsigned int etherStatsFragments;
> -
> - unsigned int reservedxE4;
> + unsigned int reserved1[0x29];
>
> /*FIFO control register. */
> unsigned int tx_cmd_stat;
> unsigned int rx_cmd_stat;
>
> - unsigned int ipaccTxConf;
> - unsigned int ipaccRxConf;
> - unsigned int ipaccRxStat;
> - unsigned int ipaccRxStatSum;
> -
> - /*Multicast address resolution table */
> - unsigned int hash_table[64];
> + unsigned int reserved2[0x44];
>
> /*Registers 0 to 31 within PHY device 0/1 */
> unsigned int mdio_phy0[0x20];
> @@ -236,7 +138,7 @@ struct alt_tse_mac {
> unsigned int supp_mac_addr_3_0;
> unsigned int supp_mac_addr_3_1;
>
> - unsigned int reservedx320[56];
> + unsigned int reserved3[0x38];
> };
>
> struct altera_tse_priv {
>
prev parent reply other threads:[~2015-11-06 1:31 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-04 9:12 [U-Boot] [PATCH 1/6] net: altera_tse: use data type u32 for regs and desc Thomas Chou
2015-11-04 9:12 ` [U-Boot] [PATCH 2/6] net: altera_tse: fix packed and aligned attribute Thomas Chou
2015-11-04 16:06 ` Chin Liang See
2015-11-04 9:12 ` [U-Boot] [PATCH 3/6] net: altera_tse: fix CamelCase Thomas Chou
2015-11-04 16:17 ` Chin Liang See
2015-11-05 13:30 ` Thomas Chou
2015-11-04 9:12 ` [U-Boot] [PATCH 4/6] net: altera_tse: remove the useless parenthesis Thomas Chou
2015-11-04 16:18 ` Chin Liang See
2015-11-04 9:12 ` [U-Boot] [PATCH 5/6] net: altera_tse: remove unused macro Thomas Chou
2015-11-04 16:20 ` Chin Liang See
2015-11-04 9:12 ` [U-Boot] [PATCH 6/6] net: altera_tse: use BIT macro Thomas Chou
2015-11-04 13:51 ` Marek Vasut
2015-11-04 16:22 ` Chin Liang See
2015-11-04 16:46 ` Jagan Teki
2015-11-04 16:05 ` [U-Boot] [PATCH 1/6] net: altera_tse: use data type u32 for regs and desc Chin Liang See
2015-11-05 12:54 ` [U-Boot] [PATCH v2 1/5] net: altera_tse: remove unused macro and regs def Thomas Chou
2015-11-05 12:54 ` [U-Boot] [PATCH v2 2/5] net: altera_tse: use data type u32 for regs and desc Thomas Chou
2015-11-05 22:09 ` Joe Hershberger
2015-11-06 1:31 ` Thomas Chou
2015-11-05 12:54 ` [U-Boot] [PATCH v2 3/5] net: altera_tse: fix packed and aligned attribute Thomas Chou
2015-11-05 22:09 ` Joe Hershberger
2015-11-06 1:32 ` Thomas Chou
2015-11-05 12:54 ` [U-Boot] [PATCH v2 4/5] net: altera_tse: remove the useless parenthesis Thomas Chou
2015-11-05 22:09 ` Joe Hershberger
2015-11-06 1:32 ` Thomas Chou
2015-11-05 12:54 ` [U-Boot] [PATCH v2 5/5] net: altera_tse: use BIT macro Thomas Chou
2015-11-05 22:09 ` Joe Hershberger
2015-11-06 1:32 ` Thomas Chou
2015-11-05 22:08 ` [U-Boot] [PATCH v2 1/5] net: altera_tse: remove unused macro and regs def Joe Hershberger
2015-11-06 1:31 ` Thomas Chou [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=563C02F3.7040105@wytron.com.tw \
--to=thomas@wytron.com.tw \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox