[c18e0ba] | 1 | /** |
---|
| 2 | * @file |
---|
[ac7d5ef0] | 3 | * |
---|
[c18e0ba] | 4 | * @brief Dual Ported Memory Manager Initialization |
---|
| 5 | * @ingroup ClassicDPMEM |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | /* |
---|
[db80f11] | 9 | * COPYRIGHT (c) 1989-2008. |
---|
[ac7d5ef0] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
[98e4ebf5] | 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. |
---|
[ac7d5ef0] | 15 | */ |
---|
| 16 | |
---|
[1095ec1] | 17 | #if HAVE_CONFIG_H |
---|
| 18 | #include "config.h" |
---|
| 19 | #endif |
---|
| 20 | |
---|
[ac7d5ef0] | 21 | #include <rtems/system.h> |
---|
[db80f11] | 22 | #include <rtems/config.h> |
---|
[af12278] | 23 | #include <rtems/sysinit.h> |
---|
[3a4ae6c] | 24 | #include <rtems/rtems/status.h> |
---|
| 25 | #include <rtems/rtems/support.h> |
---|
[562815c] | 26 | #include <rtems/rtems/dpmemimpl.h> |
---|
[ac7d5ef0] | 27 | |
---|
[af12278] | 28 | Objects_Information _Dual_ported_memory_Information; |
---|
| 29 | |
---|
| 30 | static void _Dual_ported_memory_Manager_initialization(void) |
---|
[ac7d5ef0] | 31 | { |
---|
| 32 | _Objects_Initialize_information( |
---|
[90015e7f] | 33 | &_Dual_ported_memory_Information, /* object information table */ |
---|
| 34 | OBJECTS_CLASSIC_API, /* object API */ |
---|
| 35 | OBJECTS_RTEMS_PORTS, /* object class */ |
---|
[db80f11] | 36 | Configuration_RTEMS_API.maximum_ports, |
---|
| 37 | /* maximum objects of this class */ |
---|
[3235ad9] | 38 | sizeof( Dual_ported_memory_Control ), |
---|
[90015e7f] | 39 | /* size of this object's control block */ |
---|
[9c9c6a9] | 40 | OBJECTS_NO_STRING_NAME, /* maximum length of an object name */ |
---|
[90015e7f] | 41 | NULL /* Proxy extraction support callout */ |
---|
[ac7d5ef0] | 42 | ); |
---|
| 43 | } |
---|
[af12278] | 44 | |
---|
| 45 | RTEMS_SYSINIT_ITEM( |
---|
| 46 | _Dual_ported_memory_Manager_initialization, |
---|
| 47 | RTEMS_SYSINIT_CLASSIC_DUAL_PORTED_MEMORY, |
---|
| 48 | RTEMS_SYSINIT_ORDER_MIDDLE |
---|
| 49 | ); |
---|