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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [itron/] [macros/] [rtems/] [itron/] [fmempool.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9
 *  fmempool.inl,v 1.1 2000/12/01 19:00:04 joel Exp
10
 */
11
 
12
#ifndef __ITRON_FIXED_MEMORY_POOL_inl_
13
#define __ITRON_FIXED_MEMORY_POOL_inl_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
/*
20
 *  _ITRON_Fixed_memory_pool_Allocate
21
 */
22
 
23
#define _ITRON_Fixed_memory_pool_Allocate( _mpfid ) \
24
  (ITRON_Fixed_memory_pool_Control *)_ITRON_Objects_Allocate_by_index( \
25
    &_ITRON_Fixed_memory_pool_Information, \
26
    (_mpfid), \
27
    sizeof(ITRON_Fixed_memory_pool_Control) \
28
  )
29
 
30
/*
31
 *  _ITRON_Fixed_memory_pool_Clarify_allocation_id_error
32
 */
33
 
34
#define _ITRON_Fixed_memory_pool_Clarify_allocation_id_error( _id ) \
35
  _ITRON_Objects_Clarify_allocation_id_error( \
36
      &_ITRON_Fixed_memory_pool_Information, (_id) )
37
 
38
/*
39
 *  _ITRON_Fixed_memory_pool_Clarify_get_id_error
40
 */
41
 
42
#define _ITRON_Fixed_memory_pool_Clarify_get_id_error( _id ) \
43
 _ITRON_Objects_Clarify_get_id_error( \
44
    &_ITRON_Fixed_memory_pool_Information, (_id) )
45
 
46
/*
47
 *  _ITRON_Fixed_memory_pool_Free
48
 */
49
 
50
#define _ITRON_Fixed_memory_pool_Free( _the_fixed_memory_pool ) \
51
  _ITRON_Objects_Free( \
52
    &_ITRON_Fixed_memory_pool_Information, \
53
    &(_the_fixed_memory_pool)->Object \
54
  )
55
 
56
/*
57
 *  _ITRON_Fixed_memory_pool_Get
58
 */
59
 
60
#define _ITRON_Fixed_memory_pool_Get( _id, _location ) \
61
  (ITRON_Fixed_memory_pool_Control *) \
62
    _ITRON_Objects_Get( &_ITRON_Fixed_memory_pool_Information, \
63
        (_id), (_location) )
64
 
65
/*
66
 *  _ITRON_Fixed_memory_pool_Is_null
67
 */
68
 
69
#define _ITRON_Fixed_memory_pool_Is_null( _the_fixed_memory_pool ) \
70
  ( (_the_fixed_memory_pool) == NULL )
71
 
72
#ifdef __cplusplus
73
}
74
#endif
75
 
76
#endif
77
/* end of include file */
78
 

powered by: WebSVN 2.1.0

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