source: rtems/cpukit/score/include/rtems/score/wkspace.h @ a0ed4ed

4.104.114.84.95
Last change on this file since a0ed4ed was a0ed4ed, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/18/04 at 06:13:55

Remove stray white spaces.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*  wkspace.h
2 *
3 *  This include file contains information related to the
4 *  RAM Workspace.  This Handler provides mechanisms which can be used to
5 *  define, initialize and manipulate the workspace.
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#ifndef __WORKSPACE_h
18#define __WORKSPACE_h
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include <rtems/score/heap.h>
25#include <rtems/score/interr.h>
26
27/*
28 *  The following is used to manage the Workspace.
29 *
30 */
31
32SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
33
34/*
35 *  _Workspace_Handler_initialization
36 *
37 *  DESCRIPTION:
38 *
39 *  This routine performs the initialization necessary for this handler.
40 */
41
42void _Workspace_Handler_initialization(
43  void       *starting_address,
44  uint32_t    size
45);
46
47/*
48 *  _Workspace_Allocate_or_fatal_error
49 *
50 *  DESCRIPTION:
51 *
52 *  This routine returns the address of a block of memory of size
53 *  bytes.  If a block of the appropriate size cannot be allocated
54 *  from the workspace, then the internal error handler is invoked.
55 */
56
57void *_Workspace_Allocate_or_fatal_error(
58  uint32_t     size
59);
60
61#ifndef __RTEMS_APPLICATION__
62#include <rtems/score/wkspace.inl>
63#endif
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
70/* end of include file */
Note: See TracBrowser for help on using the repository browser.