diff options
author | Shannon Nelson <snelson@pensando.io> | 2019-09-04 01:28:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 10:24:43 +0300 |
commit | 6461b446f2a0f40c038f1d09c69d1e5565a84a43 (patch) | |
tree | 8447c32eccc50896bf64e13b9df6619cb22a6427 /drivers/net/ethernet/pensando/ionic/ionic_regs.h | |
parent | 1a58e196467f842a40ff3ecfe818ebf7604e04a6 (diff) | |
download | linux-6461b446f2a0f40c038f1d09c69d1e5565a84a43.tar.xz |
ionic: Add interrupts and doorbells
The ionic interrupt model is based on interrupt control blocks
accessed through the PCI BAR. Doorbell registers are used by
the driver to signal to the NIC that requests are waiting on
the message queues. Interrupts are used by the NIC to signal
to the driver that answers are waiting on the completion queues.
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_regs.h')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_regs.h b/drivers/net/ethernet/pensando/ionic/ionic_regs.h index 3523915061ed..03ee5a36472b 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_regs.h +++ b/drivers/net/ethernet/pensando/ionic/ionic_regs.h @@ -22,6 +22,9 @@ struct ionic_intr { u32 rsvd[3]; }; +#define IONIC_INTR_CTRL_REGS_MAX 2048 +#define IONIC_INTR_CTRL_COAL_MAX 0x3F + /** enum ionic_intr_mask_vals - valid values for mask and mask_assert. * @IONIC_INTR_MASK_CLEAR: unmask interrupt. * @IONIC_INTR_MASK_SET: mask interrupt. |