Changeset bd91f446 in rtems


Ignore:
Timestamp:
Dec 8, 2015, 7:34:08 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
9736283
Parents:
60c5461
git-author:
Sebastian Huber <sebastian.huber@…> (12/08/15 07:34:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/08/15 07:38:10)
Message:

score: Delete unused API extensions

Update #2408.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    r60c5461 rbd91f446  
    165165    _MPCI_Create_server();
    166166  #endif
    167 
    168   #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    169     /*
    170      *  Run the API and BSPs predriver hook.
    171      */
    172     _API_extensions_Run_predriver();
    173   #endif
    174167}
    175168
  • cpukit/score/include/rtems/score/apiext.h

    r60c5461 rbd91f446  
    2020
    2121#include <rtems/score/chainimpl.h>
    22 #include <rtems/score/thread.h>
    2322
    2423#ifdef __cplusplus
     
    4039/**@{*/
    4140
    42 #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    43   /**
    44    *  This type defines the prototype of the Predriver Hook.
    45    */
    46   typedef void (*API_extensions_Predriver_hook)(void);
    47 #endif
    48 
    4941/**
    5042 *  This type defines the prototype of the Postdriver Hook.
     
    5951  /** This field allows this structure to be used with the Chain Handler. */
    6052  Chain_Node                      Node;
    61   #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    62     /**
    63      * This field is the callout invoked during RTEMS initialization after
    64      * RTEMS data structures are initialized before device driver initialization
    65      * has occurred.
    66      *
    67      * @note If this field is NULL, no extension is invoked.
    68      */
    69     API_extensions_Predriver_hook   predriver_hook;
    70   #endif
     53
    7154  /**
    7255   * This field is the callout invoked during RTEMS initialization after
     
    9073);
    9174
    92 #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    93 /**
    94  *  @brief Execute all pre-driver extensions.
    95  *
    96  *  This routine executes all of the predriver callouts.
    97  */
    98   void _API_extensions_Run_predriver( void );
    99 #endif
    100 
    10175/**
    10276 *  @brief Execute all post-driver extensions.
  • cpukit/score/src/apiext.c

    r60c5461 rbd91f446  
    3131}
    3232
    33 #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    34 
    35   void _API_extensions_Run_predriver( void )
    36   {
    37     Chain_Node             *the_node;
    38     API_extensions_Control *the_extension;
    39 
    40     for ( the_node = _Chain_First( &_API_extensions_List );
    41           !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
    42           the_node = the_node->next ) {
    43 
    44       the_extension = (API_extensions_Control *) the_node;
    45 
    46       if ( the_extension->predriver_hook )
    47         (*the_extension->predriver_hook)();
    48     }
    49   }
    50 #endif
    51 
    5233void _API_extensions_Run_postdriver( void )
    5334{
     
    6445     *  Currently all APIs configure this hook so it is always non-NULL.
    6546     */
    66 #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
    67     if ( the_extension->postdriver_hook )
    68 #endif
    69       (*the_extension->postdriver_hook)();
     47    (*the_extension->postdriver_hook)();
    7048  }
    7149}
Note: See TracChangeset for help on using the changeset viewer.