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 */ |
---|