1 | /* |
---|
2 | * Dual Port Memory Manager |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-1999. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #if HAVE_CONFIG_H |
---|
15 | #include "config.h" |
---|
16 | #endif |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/rtems/status.h> |
---|
20 | #include <rtems/rtems/support.h> |
---|
21 | #include <rtems/score/address.h> |
---|
22 | #include <rtems/rtems/dpmem.h> |
---|
23 | #include <rtems/score/object.h> |
---|
24 | #include <rtems/score/thread.h> |
---|
25 | #include <rtems/rtems/dpmem.h> |
---|
26 | |
---|
27 | /*PAGE |
---|
28 | * |
---|
29 | * _Dual_ported_memory_Manager_initialization |
---|
30 | * |
---|
31 | * This routine initializes all dual-ported memory manager related |
---|
32 | * data structures. |
---|
33 | * |
---|
34 | * Input parameters: |
---|
35 | * maximum_ports - number of ports to initialize |
---|
36 | * |
---|
37 | * Output parameters: NONE |
---|
38 | */ |
---|
39 | |
---|
40 | void _Dual_ported_memory_Manager_initialization( |
---|
41 | uint32_t maximum_ports |
---|
42 | ) |
---|
43 | { |
---|
44 | _Objects_Initialize_information( |
---|
45 | &_Dual_ported_memory_Information, /* object information table */ |
---|
46 | OBJECTS_CLASSIC_API, /* object API */ |
---|
47 | OBJECTS_RTEMS_PORTS, /* object class */ |
---|
48 | maximum_ports, /* maximum objects of this class */ |
---|
49 | sizeof( Dual_ported_memory_Control ), |
---|
50 | /* size of this object's control block */ |
---|
51 | FALSE, /* TRUE if names of this object are strings */ |
---|
52 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
---|
53 | #if defined(RTEMS_MULTIPROCESSING) |
---|
54 | , |
---|
55 | FALSE, /* TRUE if this is a global object class */ |
---|
56 | NULL /* Proxy extraction support callout */ |
---|
57 | #endif |
---|
58 | ); |
---|
59 | } |
---|