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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [macros/] [rtems/] [rtems/] [dpmem.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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: dpmem.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
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 */

powered by: WebSVN 2.1.0

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