]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: aquantia: add link interrupt fields
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Mon, 29 Apr 2019 10:04:40 +0000 (10:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 13:30:15 +0000 (09:30 -0400)
Declare macroes and nic fields to support link interrupt
handling

Signed-off-by: Nikita Danilov <ndanilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_hw.h
drivers/net/ethernet/aquantia/atlantic/aq_nic.h

index f1bc96c6f3b945391efdaf6888f9a071d618965b..95fd6c852a9dd7410eb73415a729a76ca0790294 100644 (file)
@@ -88,6 +88,8 @@ struct aq_stats_s {
 #define AQ_HW_IRQ_MSI     2U
 #define AQ_HW_IRQ_MSIX    3U
 
+#define AQ_HW_SERVICE_IRQS   1U
+
 #define AQ_HW_POWER_STATE_D0   0U
 #define AQ_HW_POWER_STATE_D3   3U
 
index b1372430f62f4e494568f8fa4e1b86c7ea5a9a1c..0409cf5ca3abb8b74a76ba06d8b3eb63066b7731 100644 (file)
@@ -26,7 +26,8 @@ struct aq_nic_cfg_s {
        u64 features;
        u32 rxds;               /* rx ring size, descriptors # */
        u32 txds;               /* tx ring size, descriptors # */
-       u32 vecs;               /* vecs==allocated irqs */
+       u32 vecs;               /* allocated rx/tx vectors */
+       u32 link_irq_vec;
        u32 irq_type;
        u32 itr;
        u16 rx_itr;