source: rtems/cpukit/sapi/include/rtems/cbs.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1/**
2 * @file rtems/cbs.h
3 *
4 *  This include file contains all the constants and structures associated
5 *  with the CBS library in RTEMS.
6 */
7
8/*
9 *  Copyright (C) 2011 Petr Benes.
10 *  Copyright (C) 2011 On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 */
16
17#ifndef CONFIGURE_SCHEDULER_CBS
18  #error "cbs.h available only with CONFIGURE_SCHEDULER_CBS"
19#endif
20
21#ifndef _RTEMS_CBS_H
22#define _RTEMS_CBS_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <stdint.h>
29#include <rtems/score/schedulercbs.h>
30
31/* Return codes. */
32#define RTEMS_CBS_OK                       SCHEDULER_CBS_OK
33#define RTEMS_CBS_ERROR_GENERIC            SCHEDULER_CBS_ERROR_GENERIC
34#define RTEMS_CBS_ERROR_NO_MEMORY          SCHEDULER_CBS_ERROR_NO_MEMORY
35#define RTEMS_CBS_ERROR_INVALID_PARAMETER  SCHEDULER_CBS_ERROR_INVALID_PARAM
36#define RTEMS_CBS_ERROR_UNAUTHORIZED       SCHEDULER_CBS_ERROR_UNAUTHORIZED
37#define RTEMS_CBS_ERROR_UNIMPLEMENTED      SCHEDULER_CBS_ERROR_UNIMPLEMENTED
38#define RTEMS_CBS_ERROR_MISSING_COMPONENT  SCHEDULER_CBS_ERROR_MISSING_COMPONENT
39#define RTEMS_CBS_ERROR_INCONSISTENT_STATE SCHEDULER_CBS_ERROR_INCONSISTENT_STATE
40#define RTEMS_CBS_ERROR_SYSTEM_OVERLOAD    SCHEDULER_CBS_ERROR_SYSTEM_OVERLOAD
41#define RTEMS_CBS_ERROR_INTERNAL_ERROR     SCHEDULER_CBS_ERROR_INTERNAL_ERROR
42#define RTEMS_CBS_ERROR_NOT_FOUND          SCHEDULER_CBS_ERROR_NOT_FOUND
43#define RTEMS_CBS_ERROR_FULL               SCHEDULER_CBS_ERROR_FULL
44#define RTEMS_CBS_ERROR_EMPTY              SCHEDULER_CBS_ERROR_EMPTY
45#define RTEMS_CBS_ERROR_NOSERVER           SCHEDULER_CBS_ERROR_NOSERVER
46
47/** Callback function invoked when a budget overrun of a task occurs. */
48typedef Scheduler_CBS_Budget_overrun rtems_cbs_budget_overrun;
49
50/** Server id. */
51typedef Scheduler_CBS_Server_id rtems_cbs_server_id;
52
53/** Server parameters. */
54typedef Scheduler_CBS_Parameters rtems_cbs_parameters;
55
56#include <rtems/cbs.inl>
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif
63/* end of include file */
Note: See TracBrowser for help on using the repository browser.