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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [itron/] [macros/] [rtems/] [itron/] [port.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9
 *  port.inl,v 1.1 2000/12/01 19:00:04 joel Exp
10
 */
11
 
12
#ifndef __ITRON_PORT_inl_
13
#define __ITRON_PORT_inl_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
/*
20
 *  _ITRON_Port_Allocate
21
 */
22
 
23
#define _ITRON_Port_Allocate( _porid ) \
24
  (ITRON_Port_Control *)_ITRON_Objects_Allocate_by_index( \
25
    &_ITRON_Port_Information, \
26
    (_porid), \
27
    sizeof(ITRON_Port_Control) \
28
  )
29
 
30
/*
31
 *  _ITRON_Port_Clarify_allocation_id_error
32
 */
33
 
34
#define _ITRON_Port_Clarify_allocation_id_error( _id ) \
35
  _ITRON_Objects_Clarify_allocation_id_error( \
36
      &_ITRON_Port_Information, (_id) )
37
 
38
/*
39
 *  _ITRON_Port_Clarify_get_id_error
40
 */
41
 
42
#define _ITRON_Port_Clarify_get_id_error( _id ) \
43
 _ITRON_Objects_Clarify_get_id_error( &_ITRON_Port_Information, (_id) )
44
 
45
/*
46
 *  _ITRON_Port_Free
47
 */
48
 
49
#define _ITRON_Port_Free( _the_port ) \
50
  _ITRON_Objects_Free( &_ITRON_Port_Information, &(_the_port)->Object )
51
 
52
/*PAGE
53
 *
54
 *  _ITRON_Port_Get
55
 */
56
 
57
#define _ITRON_Port_Get( _id, _location ) \
58
  (ITRON_Port_Control *) \
59
    _ITRON_Objects_Get( &_ITRON_Port_Information, (_id), (_location) )
60
 
61
/*PAGE
62
 *
63
 *  _ITRON_Port_Is_null
64
 */
65
 
66
#define _ITRON_Port_Is_null( _the_port ) \
67
  ( (_the_port) == NULL )
68
 
69
#ifdef __cplusplus
70
}
71
#endif
72
 
73
#endif
74
/* end of include file */
75
 

powered by: WebSVN 2.1.0

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