Commit 20ffb879 authored by Igor Russkikh's avatar Igor Russkikh Committed by David S. Miller

net: aquantia: use macros for better visibility

Improve for better readability
Signed-off-by: default avatarNikita Danilov <ndanilov@aquantia.com>
Signed-off-by: default avatarIgor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67758788
...@@ -350,10 +350,10 @@ static int hw_atl_a0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr) ...@@ -350,10 +350,10 @@ static int hw_atl_a0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)
static int hw_atl_a0_hw_init(struct aq_hw_s *self, u8 *mac_addr) static int hw_atl_a0_hw_init(struct aq_hw_s *self, u8 *mac_addr)
{ {
static u32 aq_hw_atl_igcr_table_[4][2] = { static u32 aq_hw_atl_igcr_table_[4][2] = {
{ 0x20000000U, 0x20000000U }, /* AQ_IRQ_INVALID */ [AQ_HW_IRQ_INVALID] = { 0x20000000U, 0x20000000U },
{ 0x20000080U, 0x20000080U }, /* AQ_IRQ_LEGACY */ [AQ_HW_IRQ_LEGACY] = { 0x20000080U, 0x20000080U },
{ 0x20000021U, 0x20000025U }, /* AQ_IRQ_MSI */ [AQ_HW_IRQ_MSI] = { 0x20000021U, 0x20000025U },
{ 0x20000022U, 0x20000026U } /* AQ_IRQ_MSIX */ [AQ_HW_IRQ_MSIX] = { 0x20000022U, 0x20000026U },
}; };
int err = 0; int err = 0;
......
...@@ -388,10 +388,10 @@ static int hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr) ...@@ -388,10 +388,10 @@ static int hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, u8 *mac_addr)
static int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr) static int hw_atl_b0_hw_init(struct aq_hw_s *self, u8 *mac_addr)
{ {
static u32 aq_hw_atl_igcr_table_[4][2] = { static u32 aq_hw_atl_igcr_table_[4][2] = {
{ 0x20000000U, 0x20000000U }, /* AQ_IRQ_INVALID */ [AQ_HW_IRQ_INVALID] = { 0x20000000U, 0x20000000U },
{ 0x20000080U, 0x20000080U }, /* AQ_IRQ_LEGACY */ [AQ_HW_IRQ_LEGACY] = { 0x20000080U, 0x20000080U },
{ 0x20000021U, 0x20000025U }, /* AQ_IRQ_MSI */ [AQ_HW_IRQ_MSI] = { 0x20000021U, 0x20000025U },
{ 0x20000022U, 0x20000026U } /* AQ_IRQ_MSIX */ [AQ_HW_IRQ_MSIX] = { 0x20000022U, 0x20000026U },
}; };
int err = 0; int err = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment