OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [itron/] [include/] [rtems/] [itron/] [semaphore.h] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: semaphore.h,v 1.2 2001-09-27 11:59:12 chris Exp $
10
 */
11
 
12
#ifndef __RTEMS_ITRON_SEMAPHORE_h_
13
#define __RTEMS_ITRON_SEMAPHORE_h_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
#include <rtems/itron/object.h>
20
#include <rtems/score/coresem.h>
21
 
22
/*
23
 *  The following defines the control block used to manage each semaphore.
24
 */
25
 
26
typedef struct {
27
  ITRON_Objects_Control   Object;
28
  boolean                 is_priority_blocking;
29
  CORE_semaphore_Control  semaphore;
30
}   ITRON_Semaphore_Control;
31
 
32
/*
33
 *  The following defines the information control block used to manage
34
 *  this class of objects.
35
 */
36
 
37
ITRON_EXTERN Objects_Information  _ITRON_Semaphore_Information;
38
 
39
/*
40
 *  _ITRON_Semaphore_Manager_initialization
41
 *
42
 *  DESCRIPTION:
43
 *
44
 *  This routine performs the initialization necessary for this manager.
45
 */
46
 
47
void _ITRON_Semaphore_Manager_initialization(
48
  unsigned32 maximum_semaphores
49
);
50
 
51
#include <rtems/itron/semaphore.inl>
52
 
53
#ifdef __cplusplus
54
}
55
#endif
56
 
57
#endif
58
/* end of include file */
59
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.