source:
rtems/cpukit/rtems/src/dpmemident.c
@
66cb142
Last change on this file since 66cb142 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47 | |
---|---|
|
|
File size: 883 bytes |
Rev | Line | |
---|---|---|
[205dbb9d] | 1 | /** |
2 | * @file | |
[1dc030f] | 3 | * |
[205dbb9d] | 4 | * @brief RTEMS Port Name to Id |
5 | * @ingroup ClassicDPMEM | |
6 | */ | |
7 | ||
8 | /* | |
[08311cc3] | 9 | * COPYRIGHT (c) 1989-1999. |
[1dc030f] | 10 | * On-Line Applications Research Corporation (OAR). |
11 | * | |
12 | * The license and distribution terms for this file may be | |
13 | * found in the file LICENSE in this distribution or at | |
[c499856] | 14 | * http://www.rtems.org/license/LICENSE. |
[1dc030f] | 15 | */ |
16 | ||
[1095ec1] | 17 | #if HAVE_CONFIG_H |
18 | #include "config.h" | |
19 | #endif | |
20 | ||
[1dc030f] | 21 | #include <rtems/system.h> |
[faa2f8c4] | 22 | #include <rtems/rtems/statusimpl.h> |
[1dc030f] | 23 | #include <rtems/rtems/support.h> |
24 | #include <rtems/score/address.h> | |
[562815c] | 25 | #include <rtems/rtems/dpmemimpl.h> |
[1dc030f] | 26 | #include <rtems/score/thread.h> |
27 | ||
28 | rtems_status_code rtems_port_ident( | |
[d3b72ca3] | 29 | rtems_name name, |
30 | rtems_id *id | |
[1dc030f] | 31 | ) |
32 | { | |
[1e2e6fe0] | 33 | Objects_Name_or_id_lookup_errors status; |
[1dc030f] | 34 | |
[ce19f1fa] | 35 | status = _Objects_Name_to_id_u32( |
[1dc030f] | 36 | &_Dual_ported_memory_Information, |
[ce19f1fa] | 37 | name, |
[1dc030f] | 38 | OBJECTS_SEARCH_ALL_NODES, |
39 | id | |
40 | ); | |
41 | ||
42 | return _Status_Object_name_errors_to_status[ status ]; | |
43 | } |
Note: See TracBrowser
for help on using the repository browser.