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

4.104.114.84.95
Last change on this file since df49c60 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.1 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-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$
14 */
15
16#ifndef __MACROS_DPMEM_h
17#define __MACROS_DPMEM_h
18
19/*PAGE
20 *
21 *  _Dual_ported_memory_Allocate
22 *
23 */
24
25#define _Dual_ported_memory_Allocate() \
26  (Dual_ported_memory_Control *) \
27     _Objects_Allocate( &_Dual_ported_memory_Information )
28
29/*PAGE
30 *
31 *  _Dual_ported_memory_Free
32 *
33 */
34
35#define _Dual_ported_memory_Free( _the_port ) \
36  _Objects_Free( &_Dual_ported_memory_Information, &(_the_port)->Object )
37
38/*PAGE
39 *
40 *  _Dual_ported_memory_Get
41 *
42 */
43
44#define _Dual_ported_memory_Get( _id, _location ) \
45  (Dual_ported_memory_Control *) \
46     _Objects_Get( &_Dual_ported_memory_Information, (_id), (_location) )
47
48
49/*PAGE
50 *
51 *  _Dual_ported_memory_Is_null
52 */
53
54#define _Dual_ported_memory_Is_null( _the_port ) \
55  ( (_the_port) == NULL )
56
57#endif
58/* end of include file */
Note: See TracBrowser for help on using the repository browser.