RTEMS CPU Kit with SuperCore  4.11.3
dpmem.h
Go to the documentation of this file.
1 
24 /* COPYRIGHT (c) 1989-2008.
25  * On-Line Applications Research Corporation (OAR).
26  *
27  * The license and distribution terms for this file may be
28  * found in the file LICENSE in this distribution or at
29  * http://www.rtems.org/license/LICENSE.
30  */
31 
32 #ifndef _RTEMS_RTEMS_DPMEM_H
33 #define _RTEMS_RTEMS_DPMEM_H
34 
35 #include <rtems/rtems/types.h>
36 #include <rtems/rtems/status.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
57 typedef struct {
65  uint32_t length;
67 
89  rtems_name name,
90  void *internal_start,
91  void *external_start,
92  uint32_t length,
93  rtems_id *id
94 );
95 
109  rtems_name name,
110  rtems_id *id
111 );
112 
126  rtems_id id
127 );
128 
145  rtems_id id,
146  void *external,
147  void **internal
148 );
149 
167  rtems_id id,
168  void *internal,
169  void **external
170 );
171 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #endif
179 /* end of include file */
The following defines the Object Control Block used to manage each object local to this node...
Definition: object.h:232
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:80
void * external_base
This field is the base external address of the port.
Definition: dpmem.h:63
The following structure defines the port control block.
Definition: dpmem.h:57
rtems_status_code rtems_port_create(rtems_name name, void *internal_start, void *external_start, uint32_t length, rtems_id *id)
Creates a port into a dual-ported memory area.
Definition: dpmemcreate.c:28
rtems_status_code
Classic API Status.
Definition: status.h:46
uint32_t rtems_name
Classic API object name type.
Definition: types.h:74
uint32_t length
This field is the length of dual-ported area of the port.
Definition: dpmem.h:65
rtems_status_code rtems_port_external_to_internal(rtems_id id, void *external, void **internal)
RTEMS Port External to Internal.
Definition: dpmemexternal2internal.c:28
void * internal_base
This field is the base internal address of the port.
Definition: dpmem.h:61
Objects_Control Object
This field is the object management portion of a Port instance.
Definition: dpmem.h:59
rtems_status_code rtems_port_ident(rtems_name name, rtems_id *id)
RTEMS Port Name to Id.
Definition: dpmemident.c:28
rtems_status_code rtems_port_delete(rtems_id id)
RTEMS Delete Port.
Definition: dpmemdelete.c:28
rtems_status_code rtems_port_internal_to_external(rtems_id id, void *internal, void **external)
RTEMS Port Internal to External.
Definition: dpmeminternal2external.c:28