diff options
author | anish <none@none> | 2006-07-25 10:48:24 -0700 |
---|---|---|
committer | anish <none@none> | 2006-07-25 10:48:24 -0700 |
commit | d626b9f59e1c5bee634be7c06eb14aeb91a188c3 (patch) | |
tree | c7d098298ab5f9a57030b17013cc1c3243bec133 /usr/src/uts/common/sys/ddi_intr_impl.h | |
parent | 32179a937cd39df5c52c5da98963043caeee8a12 (diff) | |
download | illumos-gate-d626b9f59e1c5bee634be7c06eb14aeb91a188c3.tar.gz |
6445492 ddi_intr_add_handler() failed when an ISR is already present for a given 'inum'
6451382 interrupts allocation succeeded for negative inum
6451427 ddi_intr_alloc():Validating interrupt type is not correct
Diffstat (limited to 'usr/src/uts/common/sys/ddi_intr_impl.h')
-rw-r--r-- | usr/src/uts/common/sys/ddi_intr_impl.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/uts/common/sys/ddi_intr_impl.h b/usr/src/uts/common/sys/ddi_intr_impl.h index 515563b5ed..8fb35a4018 100644 --- a/usr/src/uts/common/sys/ddi_intr_impl.h +++ b/usr/src/uts/common/sys/ddi_intr_impl.h @@ -121,12 +121,14 @@ typedef struct ddi_intr_handle_impl { #define DDI_INTR_IS_MSI_OR_MSIX(type) \ ((type) == DDI_INTR_TYPE_MSI || (type) == DDI_INTR_TYPE_MSIX) -#define DDI_INTR_SUP_TYPES DDI_INTR_TYPE_FIXED|DDI_INTR_TYPE_MSI|\ - DDI_INTR_TYPE_MSIX - #define DDI_INTR_BEHAVIOR_FLAG_VALID(f) \ (((f) == DDI_INTR_ALLOC_NORMAL) || ((f) == DDI_INTR_ALLOC_STRICT)) +#define DDI_INTR_TYPE_FLAG_VALID(t) \ + (((t) == DDI_INTR_TYPE_FIXED) || \ + ((t) == DDI_INTR_TYPE_MSI) || \ + ((t) == DDI_INTR_TYPE_MSIX)) + /* values for ih_flags */ #define DDI_INTR_MSIX_DUP 0x01 /* MSI-X vector which has been dupped */ |