source: rtems/c/src/exec/rtems/macros/dpmem.inl @ eb5a7e07

4.104.114.84.95
Last change on this file since eb5a7e07 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  macros/dpmem.h
2 *
3 *  This include file contains the inline routine used in conjunction
4 *  with the Dual Ported Memory Manager
5 *
6 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
7 *  On-Line Applications Research Corporation (OAR).
8 *  All rights assigned to U.S. Government, 1994.
9 *
10 *  This material may be reproduced by or for the U.S. Government pursuant
11 *  to the copyright license under the clause at DFARS 252.227-7013.  This
12 *  notice must appear in all copies of this file and its derivatives.
13 *
14 *  $Id$
15 */
16
17#ifndef __MACROS_DPMEM_h
18#define __MACROS_DPMEM_h
19
20/*PAGE
21 *
22 *  _Dual_ported_memory_Allocate
23 *
24 */
25
26#define _Dual_ported_memory_Allocate() \
27  (Dual_ported_memory_Control *) \
28     _Objects_Allocate( &_Dual_ported_memory_Information )
29
30/*PAGE
31 *
32 *  _Dual_ported_memory_Free
33 *
34 */
35
36#define _Dual_ported_memory_Free( _the_port ) \
37  _Objects_Free( &_Dual_ported_memory_Information, &(_the_port)->Object )
38
39/*PAGE
40 *
41 *  _Dual_ported_memory_Get
42 *
43 */
44
45#define _Dual_ported_memory_Get( _id, _location ) \
46  (Dual_ported_memory_Control *) \
47     _Objects_Get( &_Dual_ported_memory_Information, (_id), (_location) )
48
49
50/*PAGE
51 *
52 *  _Dual_ported_memory_Is_null
53 */
54
55#define _Dual_ported_memory_Is_null( _the_port ) \
56  ( (_the_port) == NULL )
57
58#endif
59/* end of include file */
Note: See TracBrowser for help on using the repository browser.