summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/ddi_intr_impl.h
diff options
context:
space:
mode:
authoregillett <none@none>2007-08-31 14:35:42 -0700
committeregillett <none@none>2007-08-31 14:35:42 -0700
commitef643aef2b959c3531c1fd9628c4be9ab43eb50f (patch)
tree2739f17775bcabd302b476f6abf5114a9ba9c484 /usr/src/uts/common/sys/ddi_intr_impl.h
parent477032463b6ad98ae85035185348e42f6092fe3a (diff)
downloadillumos-gate-ef643aef2b959c3531c1fd9628c4be9ab43eb50f.tar.gz
PSARC/2007/453 MSI-X interrupt limit override
6592959 MSI-X interrupt limit override
Diffstat (limited to 'usr/src/uts/common/sys/ddi_intr_impl.h')
-rw-r--r--usr/src/uts/common/sys/ddi_intr_impl.h16
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);