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

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.2 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-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
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.OARcorp.com/rtems/license.html.
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.