diff options
author | Shannon Nelson <snelson@pensando.io> | 2019-10-23 17:48:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-25 20:52:36 -0700 |
commit | 97ca486592c0e940a85a06b3ca37dcb6962b2a04 (patch) | |
tree | 4ba9b317f69d18e6b1227508ec2c2cbb006a2f8d /drivers/net/ethernet/pensando/ionic/ionic_dev.h | |
parent | ionic: reverse an interrupt coalesce calculation (diff) | |
download | linux-dev-97ca486592c0e940a85a06b3ca37dcb6962b2a04.tar.xz linux-dev-97ca486592c0e940a85a06b3ca37dcb6962b2a04.zip |
ionic: add heartbeat check
Most of our firmware has a heartbeat feature that the driver
can watch for to see if the FW is still alive and likely to
answer a dev_cmd or AdminQ request.
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/pensando/ionic/ionic_dev.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_dev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_dev.h b/drivers/net/ethernet/pensando/ionic/ionic_dev.h index 9610aeb7d5f4..1ffb3e4dec5d 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_dev.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_dev.h @@ -123,6 +123,9 @@ struct ionic_dev { union ionic_dev_info_regs __iomem *dev_info_regs; union ionic_dev_cmd_regs __iomem *dev_cmd_regs; + unsigned long last_hb_time; + u32 last_hb; + u64 __iomem *db_pages; dma_addr_t phy_db_pages; @@ -295,5 +298,6 @@ void ionic_q_post(struct ionic_queue *q, bool ring_doorbell, ionic_desc_cb cb, void ionic_q_rewind(struct ionic_queue *q, struct ionic_desc_info *start); void ionic_q_service(struct ionic_queue *q, struct ionic_cq_info *cq_info, unsigned int stop_index); +int ionic_heartbeat_check(struct ionic *ionic); #endif /* _IONIC_DEV_H_ */ |