Changeset 8777d4c in rtems


Ignore:
Timestamp:
Oct 4, 2018, 9:29:03 AM (14 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b131cb2
Parents:
313f897
git-author:
Sebastian Huber <sebastian.huber@…> (10/04/18 09:29:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/04/18 09:32:25)
Message:

Add rtems_interrupt_server_request_set_vector()

By default, the interrupt vector of an interrupt server request is set
to a special value which is outside the range of vectors supported by
the interrupt controller hardware.

Add rtems_interrupt_server_request_set_vector() to set the interrupt
vector in an interrupt server request.

Calls to rtems_interrupt_server_request_submit() will disable the interrupt
vector of the request. After processing of the request by the interrupt
server the interrupt vector will be enabled again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/irq-extension.h

    r313f897 r8777d4c  
    285285 *
    286286 * @see rtems_interrupt_server_request_initialize(),
     287 *   rtems_interrupt_server_request_set_vector(),
    287288 *   rtems_interrupt_server_request_submit(), and
    288289 *   rtems_interrupt_server_request_destroy().
     
    588589 * @retval RTEMS_INCORRECT_STATE The interrupt servers are not initialized.
    589590 * @retval RTEMS_INVALID_ID If the interrupt server index is invalid.
     591 *
     592 * @see rtems_interrupt_server_request_set_vector().
    590593 */
    591594rtems_status_code rtems_interrupt_server_request_initialize(
     
    595598  void                           *arg
    596599);
     600
     601/**
     602 * @brief Sets the interrupt vector in the specified interrupt server request.
     603 *
     604 * By default, the interrupt vector of an interrupt server request is set to a
     605 * special value which is outside the range of vectors supported by the
     606 * interrupt controller hardware.
     607 *
     608 * Calls to rtems_interrupt_server_request_submit() will disable the interrupt
     609 * vector of the request.  After processing of the request by the interrupt
     610 * server the interrupt vector will be enabled again.
     611 *
     612 * @param[in] request The initialized interrupt server request.
     613 * @param[in] vector The interrupt vector number.
     614 *
     615 * @see rtems_interrupt_server_request_initialize().
     616 */
     617RTEMS_INLINE_ROUTINE void rtems_interrupt_server_request_set_vector(
     618  rtems_interrupt_server_request *request,
     619  rtems_vector_number             vector
     620)
     621{
     622  request->entry.vector = vector;
     623}
    597624
    598625/**
Note: See TracChangeset for help on using the changeset viewer.