From ef643aef2b959c3531c1fd9628c4be9ab43eb50f Mon Sep 17 00:00:00 2001 From: egillett Date: Fri, 31 Aug 2007 14:35:42 -0700 Subject: PSARC/2007/453 MSI-X interrupt limit override 6592959 MSI-X interrupt limit override --- usr/src/uts/common/sys/ddi_intr_impl.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'usr/src/uts/common/sys/ddi_intr_impl.h') 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); -- cgit v1.2.3