Skip to content

Commit

Permalink
sh_eth: rename *enum*s still not matching register names
Browse files Browse the repository at this point in the history
Finally, rename the rest of the *enum* tags still not (exactly) matching
the abbreviated register names from the manuals...

Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sergey Shtylyov authored and David S. Miller committed Mar 13, 2021
1 parent 4585b72 commit e2dccaf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/net/ethernet/renesas/sh_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ enum GECMR_BIT {
};

/* EDMR */
enum DMAC_M_BIT {
enum EDMR_BIT {
EDMR_NBST = 0x80,
EDMR_EL = 0x40, /* Litte endian */
EDMR_DL1 = 0x20, EDMR_DL0 = 0x10,
Expand All @@ -180,13 +180,13 @@ enum DMAC_M_BIT {
};

/* EDTRR */
enum DMAC_T_BIT {
enum EDTRR_BIT {
EDTRR_TRNS_GETHER = 0x03,
EDTRR_TRNS_ETHER = 0x01,
};

/* EDRRR */
enum EDRRR_R_BIT {
enum EDRRR_BIT {
EDRRR_R = 0x01,
};

Expand Down Expand Up @@ -339,7 +339,7 @@ enum RMCR_BIT {
};

/* ECMR */
enum FELIC_MODE_BIT {
enum ECMR_BIT {
ECMR_TRCCM = 0x04000000, ECMR_RCSC = 0x00800000,
ECMR_DPAD = 0x00200000, ECMR_RZPF = 0x00100000,
ECMR_ZPF = 0x00080000, ECMR_PFR = 0x00040000, ECMR_RXF = 0x00020000,
Expand All @@ -350,7 +350,7 @@ enum FELIC_MODE_BIT {
};

/* ECSR */
enum ECSR_STATUS_BIT {
enum ECSR_BIT {
ECSR_BRCRX = 0x20, ECSR_PSRTO = 0x10,
ECSR_LCHNG = 0x04,
ECSR_MPD = 0x02, ECSR_ICD = 0x01,
Expand All @@ -360,7 +360,7 @@ enum ECSR_STATUS_BIT {
ECSR_ICD | ECSIPR_MPDIP)

/* ECSIPR */
enum ECSIPR_STATUS_MASK_BIT {
enum ECSIPR_BIT {
ECSIPR_BRCRXIP = 0x20, ECSIPR_PSRTOIP = 0x10,
ECSIPR_LCHNGIP = 0x04,
ECSIPR_MPDIP = 0x02, ECSIPR_ICDIP = 0x01,
Expand Down

0 comments on commit e2dccaf

Please sign in to comment.