drivers: intc: shared_irq: remove internal structs from header
Move the internal structs used by the generic, shared interrupt driver from the public header file into the implementation file. Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
94cd9dd207
commit
e8ffafae12
2 changed files with 18 additions and 20 deletions
|
@ -18,6 +18,24 @@
|
||||||
#include <drivers/interrupt_controller/ioapic.h>
|
#include <drivers/interrupt_controller/ioapic.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef void (*shared_irq_config_irq_t)(void);
|
||||||
|
|
||||||
|
struct shared_irq_config {
|
||||||
|
uint32_t irq_num;
|
||||||
|
shared_irq_config_irq_t config;
|
||||||
|
uint32_t client_count;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct shared_irq_client {
|
||||||
|
const struct device *isr_dev;
|
||||||
|
isr_t isr_func;
|
||||||
|
uint32_t enabled;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct shared_irq_runtime {
|
||||||
|
struct shared_irq_client client[CONFIG_SHARED_IRQ_NUM_CLIENTS];
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Register a device ISR
|
* @brief Register a device ISR
|
||||||
* @param dev Pointer to device structure for SHARED_IRQ driver instance.
|
* @param dev Pointer to device structure for SHARED_IRQ driver instance.
|
||||||
|
|
|
@ -32,26 +32,6 @@ struct shared_irq_driver_api {
|
||||||
shared_irq_disable_t disable;
|
shared_irq_disable_t disable;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int shared_irq_initialize(const struct device *port);
|
|
||||||
|
|
||||||
typedef void (*shared_irq_config_irq_t)(void);
|
|
||||||
|
|
||||||
struct shared_irq_config {
|
|
||||||
uint32_t irq_num;
|
|
||||||
shared_irq_config_irq_t config;
|
|
||||||
uint32_t client_count;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct shared_irq_client {
|
|
||||||
const struct device *isr_dev;
|
|
||||||
isr_t isr_func;
|
|
||||||
uint32_t enabled;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct shared_irq_runtime {
|
|
||||||
struct shared_irq_client client[CONFIG_SHARED_IRQ_NUM_CLIENTS];
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Register a device ISR
|
* @brief Register a device ISR
|
||||||
* @param dev Pointer to device structure for SHARED_IRQ driver instance.
|
* @param dev Pointer to device structure for SHARED_IRQ driver instance.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue