19 #ifndef RTEMS_IRQ_EXTENSION_H 20 #define RTEMS_IRQ_EXTENSION_H 44 #define RTEMS_INTERRUPT_UNIQUE ((rtems_option) 0x00000001) 50 #define RTEMS_INTERRUPT_SHARED ((rtems_option) 0x00000000) 56 #define RTEMS_INTERRUPT_REPLACE ((rtems_option) 0x00000002) 61 #define RTEMS_INTERRUPT_IS_UNIQUE( options) \ 62 ((options) & RTEMS_INTERRUPT_UNIQUE) 67 #define RTEMS_INTERRUPT_IS_SHARED( options) \ 68 (!RTEMS_INTERRUPT_IS_UNIQUE( options)) 73 #define RTEMS_INTERRUPT_IS_REPLACE( options) \ 74 ((options) & RTEMS_INTERRUPT_REPLACE) 215 size_t affinity_size,
216 const cpu_set_t *affinity
233 size_t affinity_size,
254 #define RTEMS_INTERRUPT_SERVER_DEFAULT 0 268 unsigned long errors;
395 uint32_t *server_count
424 uint32_t *server_index
464 uint32_t server_index,
489 uint32_t server_index,
511 uint32_t server_index,
538 uint32_t source_server_index,
540 uint32_t destination_server_index
612 uint32_t server_index,
613 size_t affinity_size,
614 const cpu_set_t *affinity,
632 uint32_t server_index,
697 uint32_t destination_server_index
730 uint32_t server_index,
757 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:777
void rtems_interrupt_server_entry_destroy(rtems_interrupt_server_entry *entry)
Destroys the specified interrupt server entry.
Definition: irq-server.c:799
rtems_status_code rtems_interrupt_server_resume(uint32_t server_index)
Resumes the specified interrupt server.
Definition: irq-server.c:964
uint32_t rtems_attribute
Definition: attr.h:41
Definition: deflate.c:115
#define RTEMS_INTERRUPT_LOCK_MEMBER(_designator)
Defines an interrupt lock member.
Definition: intr.h:209
An interrupt server entry.
Definition: irq-extension.h:337
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
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:741
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:554
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems_mode modes
The initial task modes of the interrupt server.
Definition: irq-extension.h:309
struct rtems_interrupt_server_action rtems_interrupt_server_action
An interrupt server action.
An interrupt server control.
Definition: irq-extension.h:264
RTEMS_INLINE_ROUTINE void rtems_interrupt_server_request_destroy(rtems_interrupt_server_request *request)
Destroys the specified interrupt server request.
Definition: irq-extension.h:794
An interrupt server configuration.
Definition: irq-extension.h:279
size_t storage_size
The task storage size of the interrupt server.
Definition: irq-extension.h:304
rtems_attribute attributes
The task attributes of the interrupt server.
Definition: irq-extension.h:314
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:752
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:758
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:442
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:381
void * storage_area
The task storage area of the interrupt server.
Definition: irq-extension.h:296
uint32_t rtems_option
Definition: options.h:42
rtems_status_code rtems_interrupt_server_delete(uint32_t server_index)
Destroys the interrupt server.
Definition: irq-server.c:696
struct rtems_interrupt_server_control rtems_interrupt_server_control
An interrupt server control.
rtems_status_code rtems_interrupt_server_entry_move(rtems_interrupt_server_entry *entry, uint32_t destination_server_index)
Moves the interrupt server entry to the specified destination interrupt server.
Definition: irq-server.c:775
rtems_status_code rtems_interrupt_server_suspend(uint32_t server_index)
Suspends the specified interrupt server.
Definition: irq-server.c:943
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:826
rtems_status_code rtems_interrupt_server_create(rtems_interrupt_server_control *control, const rtems_interrupt_server_config *config, uint32_t *server_index)
Creates an interrupt server.
Definition: irq-server.c:633
Definition: intercom.c:74
rtems_task_priority priority
The initial task priority of the interrupt server.
Definition: irq-extension.h:288
void(* rtems_interrupt_per_handler_routine)(void *, const char *, rtems_option, rtems_interrupt_handler, void *)
Interrupt handler iteration routine type.
Definition: irq-extension.h:169
void(* rtems_interrupt_handler)(void *)
Interrupt handler routine type.
Definition: irq-extension.h:79
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:892
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:768
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
An interrupt server action.
Definition: irq-extension.h:245
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:40
An interrupt server request.
Definition: irq-extension.h:355
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:986
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:354
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:66
rtems_name name
The task name of the interrupt server.
Definition: irq-extension.h:283
uint32_t rtems_task_priority
Definition: tasks.h:55