25 #ifndef RTEMS_IRQ_EXTENSION_H 26 #define RTEMS_IRQ_EXTENSION_H 50 #define RTEMS_INTERRUPT_UNIQUE ((rtems_option) 0x00000001) 56 #define RTEMS_INTERRUPT_SHARED ((rtems_option) 0x00000000) 62 #define RTEMS_INTERRUPT_REPLACE ((rtems_option) 0x00000002) 67 #define RTEMS_INTERRUPT_IS_UNIQUE( options) \ 68 ((options) & RTEMS_INTERRUPT_UNIQUE) 73 #define RTEMS_INTERRUPT_IS_SHARED( options) \ 74 (!RTEMS_INTERRUPT_IS_UNIQUE( options)) 79 #define RTEMS_INTERRUPT_IS_REPLACE( options) \ 80 ((options) & RTEMS_INTERRUPT_REPLACE) 221 size_t affinity_size,
222 const cpu_set_t *affinity
239 size_t affinity_size,
253 rtems_interrupt_handler handler;
260 #define RTEMS_INTERRUPT_SERVER_DEFAULT 0 328 uint32_t *server_count
349 uint32_t server_index,
352 rtems_option options,
353 rtems_interrupt_handler handler,
374 uint32_t server_index,
376 rtems_interrupt_handler handler,
396 uint32_t server_index,
423 uint32_t source_server_index,
425 uint32_t destination_server_index
497 uint32_t server_index,
498 size_t affinity_size,
499 const cpu_set_t *affinity,
517 uint32_t server_index,
538 rtems_interrupt_handler handler,
595 uint32_t server_index,
597 rtems_interrupt_handler handler,
622 request->entry.vector = vector;
RTEMS_INLINE_ROUTINE void rtems_interrupt_server_request_submit(rtems_interrupt_server_request *request)
Submits the specified interrupt server request so that its interrupt server action can be invoked by ...
Definition: irq-extension.h:642
void rtems_interrupt_server_entry_destroy(rtems_interrupt_server_entry *entry)
Destroys the specified interrupt server entry.
Definition: irq-server.c:648
rtems_status_code rtems_interrupt_server_resume(uint32_t server_index)
Resumes the specified interrupt server.
Definition: irq-server.c:813
uint32_t rtems_attribute
Definition: attr.h:41
An interrupt server entry.
Definition: irq-extension.h:273
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
rtems_status_code rtems_interrupt_server_entry_initialize(uint32_t server_index, rtems_interrupt_server_entry *entry)
Initializes the specified interrupt server entry.
Definition: irq-server.c:607
rtems_status_code rtems_interrupt_handler_remove(rtems_vector_number vector, rtems_interrupt_handler handler, void *arg)
Removes the interrupt handler routine handler with argument arg for the interrupt vector with number ...
Definition: irq.c:175
rtems_status_code rtems_interrupt_handler_install(rtems_vector_number vector, const char *info, rtems_option options, rtems_interrupt_handler handler, void *arg)
Installs the interrupt handler routine handler for the interrupt vector with number vector...
Definition: irq.c:127
rtems_status_code rtems_interrupt_server_initialize(rtems_task_priority priority, size_t stack_size, rtems_mode modes, rtems_attribute attributes, uint32_t *server_count)
Initializes the interrupt server tasks.
Definition: irq-server.c:490
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
struct rtems_interrupt_server_action rtems_interrupt_server_action
An interrupt server action.
RTEMS_INLINE_ROUTINE void rtems_interrupt_server_request_destroy(rtems_interrupt_server_request *request)
Destroys the specified interrupt server request.
Definition: irq-extension.h:659
RTEMS_INLINE_ROUTINE void rtems_interrupt_server_request_set_vector(rtems_interrupt_server_request *request, rtems_vector_number vector)
Sets the interrupt vector in the specified interrupt server request.
Definition: irq-extension.h:617
void rtems_interrupt_server_action_prepend(rtems_interrupt_server_entry *entry, rtems_interrupt_server_action *action, rtems_interrupt_handler handler, void *arg)
Prepends the specified interrupt server action to the list of actions of the specified interrupt serv...
Definition: irq-server.c:624
rtems_status_code
Classic API Status.
Definition: status.h:43
rtems_status_code rtems_interrupt_get_affinity(rtems_vector_number vector, size_t affinity_size, cpu_set_t *affinity)
Gets the processor affinity set of an interrupt vector.
Definition: irq-generic.c:592
rtems_status_code rtems_interrupt_server_handler_iterate(uint32_t server_index, rtems_vector_number vector, rtems_interrupt_per_handler_routine routine, void *arg)
Iterates over all interrupt handler of the interrupt vector with number vector which are installed on...
Definition: irq-server.c:458
rtems_status_code rtems_interrupt_server_handler_remove(uint32_t server_index, rtems_vector_number vector, rtems_interrupt_handler handler, void *arg)
Removes the interrupt handler routine handler with argument arg for the interrupt vector with number ...
Definition: irq-server.c:397
uint32_t rtems_option
Definition: options.h:42
rtems_status_code rtems_interrupt_server_suspend(uint32_t server_index)
Suspends the specified interrupt server.
Definition: irq-server.c:792
rtems_status_code rtems_interrupt_server_request_initialize(uint32_t server_index, rtems_interrupt_server_request *request, rtems_interrupt_handler handler, void *arg)
Initializes the specified interrupt server request.
Definition: irq-server.c:675
void(* rtems_interrupt_per_handler_routine)(void *, const char *, rtems_option, rtems_interrupt_handler, void *)
Interrupt handler iteration routine type.
Definition: irq-extension.h:175
void(* rtems_interrupt_handler)(void *)
Interrupt handler routine type.
Definition: irq-extension.h:85
rtems_status_code rtems_interrupt_server_move(uint32_t source_server_index, rtems_vector_number vector, uint32_t destination_server_index)
Moves the interrupt handlers installed on the specified source interrupt server to the destination in...
Definition: irq-server.c:741
void rtems_interrupt_server_entry_submit(rtems_interrupt_server_entry *entry)
Submits the specified interrupt server entry so that its interrupt server actions can be invoked by t...
Definition: irq-server.c:634
An interrupt server action.
Definition: irq-extension.h:251
rtems_status_code rtems_interrupt_set_affinity(rtems_vector_number vector, size_t affinity_size, const cpu_set_t *affinity)
Sets the processor affinity set of an interrupt vector.
Definition: irq-generic.c:568
Definition: mmu-config.c:39
An interrupt server request.
Definition: irq-extension.h:291
rtems_status_code rtems_interrupt_handler_iterate(rtems_vector_number vector, rtems_interrupt_per_handler_routine routine, void *arg)
Iterates over all installed interrupt handler of the interrupt vector with number vector...
Definition: irq.c:210
rtems_status_code rtems_interrupt_server_set_affinity(uint32_t server_index, size_t affinity_size, const cpu_set_t *affinity, rtems_task_priority priority)
Sets the processor affinity of the specified interrupt server.
Definition: irq-server.c:835
uint32_t rtems_mode
Definition: modes.h:41
rtems_status_code rtems_interrupt_server_handler_install(uint32_t server_index, rtems_vector_number vector, const char *info, rtems_option options, rtems_interrupt_handler handler, void *arg)
Installs the interrupt handler routine handler for the interrupt vector with number vector on the ser...
Definition: irq-server.c:370
uint32_t rtems_task_priority
Definition: tasks.h:54