|
RTEMS CPU Kit with SuperCore
4.10.99.0
|
00001 00011 /* 00012 * Copyright (C) 2011 Petr Benes. 00013 * Copyright (C) 2011 On-Line Applications Research Corporation (OAR). 00014 * 00015 * The license and distribution terms for this file may be 00016 * found in the file LICENSE in this distribution or at 00017 * http://www.rtems.com/license/LICENSE. 00018 */ 00019 00020 #ifndef CONFIGURE_SCHEDULER_CBS 00021 #error "cbs.h available only with CONFIGURE_SCHEDULER_CBS" 00022 #endif 00023 00024 #ifndef _RTEMS_CBS_H 00025 #define _RTEMS_CBS_H 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00031 #include <stdint.h> 00032 #include <rtems/score/schedulercbs.h> 00033 00034 /* Return codes. */ 00035 #define RTEMS_CBS_OK SCHEDULER_CBS_OK 00036 #define RTEMS_CBS_ERROR_GENERIC SCHEDULER_CBS_ERROR_GENERIC 00037 #define RTEMS_CBS_ERROR_NO_MEMORY SCHEDULER_CBS_ERROR_NO_MEMORY 00038 #define RTEMS_CBS_ERROR_INVALID_PARAMETER SCHEDULER_CBS_ERROR_INVALID_PARAM 00039 #define RTEMS_CBS_ERROR_UNAUTHORIZED SCHEDULER_CBS_ERROR_UNAUTHORIZED 00040 #define RTEMS_CBS_ERROR_UNIMPLEMENTED SCHEDULER_CBS_ERROR_UNIMPLEMENTED 00041 #define RTEMS_CBS_ERROR_MISSING_COMPONENT SCHEDULER_CBS_ERROR_MISSING_COMPONENT 00042 #define RTEMS_CBS_ERROR_INCONSISTENT_STATE SCHEDULER_CBS_ERROR_INCONSISTENT_STATE 00043 #define RTEMS_CBS_ERROR_SYSTEM_OVERLOAD SCHEDULER_CBS_ERROR_SYSTEM_OVERLOAD 00044 #define RTEMS_CBS_ERROR_INTERNAL_ERROR SCHEDULER_CBS_ERROR_INTERNAL_ERROR 00045 #define RTEMS_CBS_ERROR_NOT_FOUND SCHEDULER_CBS_ERROR_NOT_FOUND 00046 #define RTEMS_CBS_ERROR_FULL SCHEDULER_CBS_ERROR_FULL 00047 #define RTEMS_CBS_ERROR_EMPTY SCHEDULER_CBS_ERROR_EMPTY 00048 #define RTEMS_CBS_ERROR_NOSERVER SCHEDULER_CBS_ERROR_NOSERVER 00049 00051 typedef Scheduler_CBS_Budget_overrun rtems_cbs_budget_overrun; 00052 00054 typedef Scheduler_CBS_Server_id rtems_cbs_server_id; 00055 00057 typedef Scheduler_CBS_Parameters rtems_cbs_parameters; 00058 00059 #include <rtems/cbs.inl> 00060 00061 #ifdef __cplusplus 00062 } 00063 #endif 00064 00065 #endif 00066 /* end of include file */
1.7.5