OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [macros/] [rtems/] [rtems/] [region.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  region.inl
2
 *
3
 *  This file contains the macro implementation of the inlined
4
 *  routines from the Region Manager.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: region.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
14
 */
15
 
16
#ifndef __REGION_inl
17
#define __REGION_inl
18
 
19
/*PAGE
20
 *
21
 *  _Region_Allocate
22
 *
23
 */
24
 
25
#define _Region_Allocate() \
26
  (Region_Control *) _Objects_Allocate( &_Region_Information )
27
 
28
/*PAGE
29
 *
30
 *  _Region_Free
31
 *
32
 */
33
 
34
#define _Region_Free( _the_region ) \
35
  _Objects_Free( &_Region_Information, &(_the_region)->Object )
36
 
37
/*PAGE
38
 *
39
 *  _Region_Get
40
 *
41
 */
42
 
43
#define _Region_Get( _id, _location ) \
44
  (Region_Control *) \
45
   _Objects_Get( &_Region_Information, (_id), (_location) )
46
 
47
/*PAGE
48
 *
49
 *  _Region_Allocate_segment
50
 *
51
 */
52
 
53
#define _Region_Allocate_segment( _the_region, _size ) \
54
   _Heap_Allocate( &(_the_region)->Memory, (_size) )
55
 
56
/*PAGE
57
 *
58
 *  _Region_Free_segment
59
 *
60
 */
61
 
62
#define _Region_Free_segment( _the_region, _the_segment ) \
63
   _Heap_Free( &(_the_region)->Memory, (_the_segment) )
64
 
65
/*PAGE
66
 *
67
 *  _Region_Is_null
68
 *
69
 */
70
 
71
#define _Region_Is_null( _the_region )   ( (_the_region) == NULL  )
72
 
73
#endif
74
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.