1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
3 | * On-Line Applications Research Corporation (OAR). |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.OARcorp.com/rtems/license.html. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <itron.h> |
---|
17 | |
---|
18 | #include <rtems/itron/semaphore.h> |
---|
19 | #include <rtems/itron/task.h> |
---|
20 | #include <rtems/score/tod.h> |
---|
21 | |
---|
22 | /* |
---|
23 | * _ITRON_Semaphore_Manager_initialization |
---|
24 | * |
---|
25 | * DESCRIPTION: |
---|
26 | * |
---|
27 | * This routine initializes all semaphore manager related data structures. |
---|
28 | * |
---|
29 | * Input parameters: |
---|
30 | * maximum_semaphores - maximum configured semaphores |
---|
31 | * |
---|
32 | * Output parameters: NONE |
---|
33 | */ |
---|
34 | |
---|
35 | void _ITRON_Semaphore_Manager_initialization( |
---|
36 | unsigned32 maximum_semaphores |
---|
37 | ) |
---|
38 | { |
---|
39 | _Objects_Initialize_information( |
---|
40 | &_ITRON_Semaphore_Information, /* object information table */ |
---|
41 | OBJECTS_ITRON_API, /* object API */ |
---|
42 | OBJECTS_ITRON_SEMAPHORES, /* object class */ |
---|
43 | maximum_semaphores, /* maximum objects of this class */ |
---|
44 | sizeof( ITRON_Semaphore_Control ), /* size of this object's control block */ |
---|
45 | FALSE, /* TRUE if names for this object are strings */ |
---|
46 | ITRON_MAXIMUM_NAME_LENGTH /* maximum length of each object's name */ |
---|
47 | #if defined(RTEMS_MULTIPROCESSING) |
---|
48 | , |
---|
49 | FALSE, /* TRUE if this is a global object class */ |
---|
50 | NULL /* Proxy extraction support callout */ |
---|
51 | #endif |
---|
52 | ); |
---|
53 | |
---|
54 | /* |
---|
55 | * Register the MP Process Packet routine. |
---|
56 | * |
---|
57 | * NOTE: No MP Support YET in RTEMS ITRON implementation. |
---|
58 | */ |
---|
59 | |
---|
60 | } |
---|
61 | |
---|