Changeset fb78f91 in rtems


Ignore:
Timestamp:
Apr 23, 2012, 1:10:04 PM (8 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, 5, master
Children:
c24d9823
Parents:
4012792
git-author:
Gedare Bloom <gedare@…> (04/23/12 13:10:04)
git-committer:
Gedare Bloom <gedare@…> (04/23/12 13:26:34)
Message:

PR1908: consolidate libqos code and fix installed header location

Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    r4012792 rfb78f91  
    1616SUBDIRS += libmd
    1717SUBDIRS += libgnat
    18 SUBDIRS += libqos
    1918SUBDIRS += wrapup
    2019
     
    167166include_rtems_HEADERS += libmisc/mouse/serial_mouse.h
    168167
     168## libqos
     169include_rtems_HEADERS += libqos/qreslib.h
     170
    169171## shell
    170172if LIBSHELL
  • cpukit/configure.ac

    r4012792 rfb78f91  
    381381libi2c/Makefile
    382382libmd/Makefile
    383 libqos/Makefile
    384383zlib/Makefile
    385384ftpd/Makefile
  • cpukit/libqos/qreslib.h

    r4012792 rfb78f91  
    7272} qres_params_t;
    7373
    74 #include <qreslib.inl>
     74/**
     75 *  @brief qres init
     76 *
     77 *  Initializes the QoS RES library.
     78 *
     79 *  @return status code.
     80 */
     81RTEMS_INLINE_ROUTINE qos_rv qres_init ( void )
     82{
     83  return _Scheduler_CBS_Initialize();
     84}
     85
     86/**
     87 *  @brief qres cleanup
     88 *
     89 *  Cleanup resources associated to the QoS RES Library.
     90 *
     91 *  @return status code.
     92 */
     93RTEMS_INLINE_ROUTINE qos_rv qres_cleanup ( void )
     94{
     95  return _Scheduler_CBS_Cleanup();
     96}
     97
     98/**
     99 *  @brief qres create server
     100 *
     101 *  Create a new server with specified parameters.
     102 *
     103 *  @return status code.
     104 */
     105RTEMS_INLINE_ROUTINE qos_rv qres_create_server (
     106  qres_params_t *params,
     107  qres_sid_t    *server_id
     108)
     109{
     110  return _Scheduler_CBS_Create_server(
     111             (Scheduler_CBS_Parameters *) params,
     112             NULL,
     113             server_id
     114         );
     115}
     116
     117/**
     118 *  @brief qres attach thread
     119 *
     120 *  Attach a task to an already existing server.
     121 *
     122 *  @return status code.
     123 */
     124RTEMS_INLINE_ROUTINE qos_rv qres_attach_thread (
     125  qres_sid_t server_id,
     126  pid_t      pid,
     127  tid_t      task_id
     128)
     129{
     130  return _Scheduler_CBS_Attach_thread( server_id, task_id );
     131}
     132
     133/**
     134 *  @brief qres detach thread
     135 *
     136 *  Detach from the QoS Server.
     137 *
     138 *  @return status code.
     139 */
     140RTEMS_INLINE_ROUTINE qos_rv qres_detach_thread (
     141  qres_sid_t server_id,
     142  pid_t      pid,
     143  tid_t      task_id
     144)
     145{
     146  return _Scheduler_CBS_Detach_thread( server_id, task_id );
     147}
     148
     149/**
     150 *  @brief qres destroy server
     151 *
     152 *  Detach all tasks from a server and destroy it.
     153 *
     154 *  @return status code.
     155 */
     156RTEMS_INLINE_ROUTINE qos_rv qres_destroy_server (
     157  qres_sid_t server_id
     158)
     159{
     160  return _Scheduler_CBS_Destroy_server( server_id );
     161}
     162
     163/**
     164 *  @brief qres get server id
     165 *
     166 *  Get a thread server id, or QOS_E_NOT_FOUND if it is not
     167 *  attached to any server.
     168 *
     169 *  @return status code.
     170 */
     171RTEMS_INLINE_ROUTINE qos_rv qres_get_sid (
     172  pid_t       pid,
     173  tid_t       task_id,
     174  qres_sid_t *server_id
     175)
     176{
     177  return _Scheduler_CBS_Get_server_id( task_id, server_id );
     178}
     179
     180/**
     181 *  @brief qres get params
     182 *
     183 *  Retrieve QoS scheduling parameters.
     184 *
     185 *  @return status code.
     186 */
     187RTEMS_INLINE_ROUTINE qos_rv qres_get_params (
     188  qres_sid_t     server_id,
     189  qres_params_t *params
     190)
     191{
     192  return _Scheduler_CBS_Get_parameters(
     193             server_id,
     194             (Scheduler_CBS_Parameters *) params
     195         );
     196}
     197
     198/**
     199 *  @brief qres set params
     200 *
     201 *  Change QoS scheduling parameters.
     202 *
     203 *  @return status code.
     204 */
     205RTEMS_INLINE_ROUTINE qos_rv qres_set_params (
     206  qres_sid_t     server_id,
     207  qres_params_t *params
     208)
     209{
     210  return _Scheduler_CBS_Set_parameters(
     211             server_id,
     212             (Scheduler_CBS_Parameters *) params
     213         );
     214}
     215
     216/**
     217 *  @brief qres get execution time
     218 *
     219 *  Retrieve time info relative to the current server.
     220 *
     221 *  @return status code.
     222 */
     223RTEMS_INLINE_ROUTINE qos_rv qres_get_exec_time (
     224  qres_sid_t    server_id,
     225  qres_time_t  *exec_time,
     226  qres_atime_t *abs_time
     227)
     228{
     229  return _Scheduler_CBS_Get_execution_time( server_id, exec_time, abs_time );
     230}
     231
     232/**
     233 *  @brief qres get current budget
     234 *
     235 *  Retrieve remaining budget for the current server instance.
     236 *
     237 *  @return status code.
     238 */
     239RTEMS_INLINE_ROUTINE qos_rv qres_get_curr_budget (
     240  qres_sid_t   server_id,
     241  qres_time_t *current_budget
     242)
     243{
     244  return _Scheduler_CBS_Get_remaining_budget( server_id, current_budget );
     245}
     246
     247/**
     248 *  @brief qres get approved budget
     249 *
     250 *  Retrieve the budget that has been approved for the subsequent
     251 *  server instances.
     252 *
     253 *  @return status code.
     254 */
     255RTEMS_INLINE_ROUTINE qos_rv qres_get_appr_budget (
     256  qres_sid_t   server_id,
     257  qres_time_t *appr_budget
     258)
     259{
     260  return _Scheduler_CBS_Get_approved_budget( server_id, appr_budget );
     261}
    75262
    76263#ifdef __cplusplus
  • cpukit/preinstall.am

    r4012792 rfb78f91  
    338338PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/serial_mouse.h
    339339
     340$(PROJECT_INCLUDE)/rtems/qreslib.h: libqos/qreslib.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
     341        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/qreslib.h
     342PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/qreslib.h
     343
    340344if LIBSHELL
    341345$(PROJECT_INCLUDE)/rtems/shell.h: libmisc/shell/shell.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
  • testsuites/sptests/spqreslib/system.h

    r4012792 rfb78f91  
    4949#include <rtems/score/isr.h>
    5050#include <rtems/rtems/intr.h>
    51 #include <qreslib.h>
     51#include <rtems/qreslib.h>
    5252
    5353/* global variables */
Note: See TracChangeset for help on using the changeset viewer.