diff options
Diffstat (limited to 'usr/src/uts/common/sys/ddi_intr_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/ddi_intr_impl.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/ddi_intr_impl.h b/usr/src/uts/common/sys/ddi_intr_impl.h index 84a477998b..b56a6a4c1f 100644 --- a/usr/src/uts/common/sys/ddi_intr_impl.h +++ b/usr/src/uts/common/sys/ddi_intr_impl.h @@ -132,8 +132,18 @@ typedef struct ddi_intr_handle_impl { /* values for ih_flags */ #define DDI_INTR_MSIX_DUP 0x01 /* MSI-X vector which has been dupped */ -/* Default number of MSI/X resources to allocate */ -#define DDI_INTR_DEFAULT_ALLOC 2 +/* Maximum number of MSI resources to allocate */ +#define DDI_MAX_MSI_ALLOC 2 + +/* + * The following MSI-X limits will change with Interrupt Resource Management + * (IRM) support. + */ +/* Default number of MSI-X resources to allocate */ +#define DDI_DEFAULT_MSIX_ALLOC 2 + +/* Maximum number of MSI-X resources to allocate */ +#define DDI_MAX_MSIX_ALLOC 8 struct av_softinfo; @@ -250,6 +260,8 @@ int i_ddi_get_msi_msix_cap_ptr(dev_info_t *dip); void i_ddi_set_msi_msix_cap_ptr(dev_info_t *dip, int cap_ptr); #endif +uint_t i_ddi_get_msix_alloc_limit(dev_info_t *dip); + int32_t i_ddi_get_intr_weight(dev_info_t *); int32_t i_ddi_set_intr_weight(dev_info_t *, int32_t); |