drivers: interrupt_controller: changes in shared irq
Updated the shared IRQ handler function in the shared interrupt controller drivers to include support for the 'irq_number' parameter. When a single driver manages multiple shared IRQs, it becomes challenging to determine which IRQ line is invoking the handler. Therefore, I've introduced an option to share the IRQ number to address this issue. Signed-off-by: Navinkumar Balabakthan <navinkumar.balabakthan@intel.com>
This commit is contained in:
parent
a1e03d079a
commit
a8490c3c3e
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015 Intel Corporation.
|
||||
* Copyright (c) 2015 - 2023 Intel Corporation.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -125,7 +125,7 @@ void shared_irq_isr(const struct device *dev)
|
|||
|
||||
for (i = 0U; i < config->client_count; i++) {
|
||||
if (clients->client[i].isr_dev) {
|
||||
clients->client[i].isr_func(clients->client[i].isr_dev);
|
||||
clients->client[i].isr_func(clients->client[i].isr_dev, config->irq_num);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* shared_irq - Shared interrupt driver */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2015 Intel corporation
|
||||
* Copyright (c) 2015 - 2023 Intel corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
@ -14,7 +14,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef int (*isr_t)(const struct device *dev);
|
||||
typedef int (*isr_t)(const struct device *dev, unsigned int irq_number);
|
||||
|
||||
/* driver API definition */
|
||||
typedef int (*shared_irq_register_t)(const struct device *dev,
|
||||
|
|
Loading…
Reference in a new issue