1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Dual Ported Memory Manager Initialization |
---|
5 | * @ingroup ClassicDPMEM |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2008. |
---|
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 |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/system.h> |
---|
22 | #include <rtems/config.h> |
---|
23 | #include <rtems/sysinit.h> |
---|
24 | #include <rtems/rtems/status.h> |
---|
25 | #include <rtems/rtems/support.h> |
---|
26 | #include <rtems/rtems/dpmemimpl.h> |
---|
27 | |
---|
28 | Objects_Information _Dual_ported_memory_Information; |
---|
29 | |
---|
30 | static void _Dual_ported_memory_Manager_initialization(void) |
---|
31 | { |
---|
32 | _Objects_Initialize_information( |
---|
33 | &_Dual_ported_memory_Information, /* object information table */ |
---|
34 | OBJECTS_CLASSIC_API, /* object API */ |
---|
35 | OBJECTS_RTEMS_PORTS, /* object class */ |
---|
36 | Configuration_RTEMS_API.maximum_ports, |
---|
37 | /* maximum objects of this class */ |
---|
38 | sizeof( Dual_ported_memory_Control ), |
---|
39 | /* size of this object's control block */ |
---|
40 | false, /* true if names of this object are strings */ |
---|
41 | RTEMS_MAXIMUM_NAME_LENGTH, /* maximum length of each object's name */ |
---|
42 | NULL /* Proxy extraction support callout */ |
---|
43 | ); |
---|
44 | } |
---|
45 | |
---|
46 | RTEMS_SYSINIT_ITEM( |
---|
47 | _Dual_ported_memory_Manager_initialization, |
---|
48 | RTEMS_SYSINIT_CLASSIC_DUAL_PORTED_MEMORY, |
---|
49 | RTEMS_SYSINIT_ORDER_MIDDLE |
---|
50 | ); |
---|