mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
net: macb: use BIT() macro for capability definitions
Replace all capabilities values by calls to the BIT() macro. Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Sean Anderson <sean.anderson@linux.dev> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://patch.msgid.link/20251014-macb-cleanup-v1-2-31cd266e22cd@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f1150b7795
commit
a23b0b79e9
|
|
@ -756,27 +756,27 @@
|
|||
#define MACB_MAN_C45_CODE 2
|
||||
|
||||
/* Capability mask bits */
|
||||
#define MACB_CAPS_ISR_CLEAR_ON_WRITE 0x00000001
|
||||
#define MACB_CAPS_USRIO_HAS_CLKEN 0x00000002
|
||||
#define MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII 0x00000004
|
||||
#define MACB_CAPS_NO_GIGABIT_HALF 0x00000008
|
||||
#define MACB_CAPS_USRIO_DISABLED 0x00000010
|
||||
#define MACB_CAPS_JUMBO 0x00000020
|
||||
#define MACB_CAPS_GEM_HAS_PTP 0x00000040
|
||||
#define MACB_CAPS_BD_RD_PREFETCH 0x00000080
|
||||
#define MACB_CAPS_NEEDS_RSTONUBR 0x00000100
|
||||
#define MACB_CAPS_MIIONRGMII 0x00000200
|
||||
#define MACB_CAPS_NEED_TSUCLK 0x00000400
|
||||
#define MACB_CAPS_QUEUE_DISABLE 0x00000800
|
||||
#define MACB_CAPS_QBV 0x00001000
|
||||
#define MACB_CAPS_PCS 0x01000000
|
||||
#define MACB_CAPS_HIGH_SPEED 0x02000000
|
||||
#define MACB_CAPS_CLK_HW_CHG 0x04000000
|
||||
#define MACB_CAPS_MACB_IS_EMAC 0x08000000
|
||||
#define MACB_CAPS_FIFO_MODE 0x10000000
|
||||
#define MACB_CAPS_GIGABIT_MODE_AVAILABLE 0x20000000
|
||||
#define MACB_CAPS_SG_DISABLED 0x40000000
|
||||
#define MACB_CAPS_MACB_IS_GEM 0x80000000
|
||||
#define MACB_CAPS_ISR_CLEAR_ON_WRITE BIT(0)
|
||||
#define MACB_CAPS_USRIO_HAS_CLKEN BIT(1)
|
||||
#define MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII BIT(2)
|
||||
#define MACB_CAPS_NO_GIGABIT_HALF BIT(3)
|
||||
#define MACB_CAPS_USRIO_DISABLED BIT(4)
|
||||
#define MACB_CAPS_JUMBO BIT(5)
|
||||
#define MACB_CAPS_GEM_HAS_PTP BIT(6)
|
||||
#define MACB_CAPS_BD_RD_PREFETCH BIT(7)
|
||||
#define MACB_CAPS_NEEDS_RSTONUBR BIT(8)
|
||||
#define MACB_CAPS_MIIONRGMII BIT(9)
|
||||
#define MACB_CAPS_NEED_TSUCLK BIT(10)
|
||||
#define MACB_CAPS_QUEUE_DISABLE BIT(11)
|
||||
#define MACB_CAPS_QBV BIT(12)
|
||||
#define MACB_CAPS_PCS BIT(24)
|
||||
#define MACB_CAPS_HIGH_SPEED BIT(25)
|
||||
#define MACB_CAPS_CLK_HW_CHG BIT(26)
|
||||
#define MACB_CAPS_MACB_IS_EMAC BIT(27)
|
||||
#define MACB_CAPS_FIFO_MODE BIT(28)
|
||||
#define MACB_CAPS_GIGABIT_MODE_AVAILABLE BIT(29)
|
||||
#define MACB_CAPS_SG_DISABLED BIT(30)
|
||||
#define MACB_CAPS_MACB_IS_GEM BIT(31)
|
||||
|
||||
/* LSO settings */
|
||||
#define MACB_LSO_UFO_ENABLE 0x01
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user