source: rtems/cpukit/rtems/include/rtems/rtems/attr.h @ 1d496f6

4.104.114.84.95
Last change on this file since 1d496f6 was 1d496f6, checked in by Ralf Corsepius <ralf.corsepius@…>, on 03/29/04 at 16:04:42

2004-03-29 Ralf Corsepius <ralf_corsepius@…>

  • rtems/include/rtems.h, rtems/include/rtems/rtems/asr.h, rtems/include/rtems/rtems/attr.h, rtems/include/rtems/rtems/clock.h, rtems/include/rtems/rtems/config.h, rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/eventset.h, rtems/include/rtems/rtems/message.h, rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/msgmp.h, rtems/include/rtems/rtems/options.h, rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/ratemon.h, rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/regionmp.h, rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/support.h, rtems/include/rtems/rtems/taskmp.h, rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h, rtems/inline/rtems/rtems/part.inl, rtems/inline/rtems/rtems/region.inl, rtems/macros/rtems/rtems/part.inl, rtems/src/attr.c, rtems/src/dpmem.c, rtems/src/dpmemcreate.c, rtems/src/dpmemexternal2internal.c, rtems/src/dpmeminternal2external.c, rtems/src/eventseize.c, rtems/src/msg.c, rtems/src/msgmp.c, rtems/src/msgqallocate.c, rtems/src/msgqbroadcast.c, rtems/src/msgqcreate.c, rtems/src/msgqflush.c, rtems/src/msgqgetnumberpending.c, rtems/src/msgqident.c, rtems/src/msgqreceive.c, rtems/src/msgqsend.c, rtems/src/msgqsubmit.c, rtems/src/msgqtranslatereturncode.c, rtems/src/msgqurgent.c, rtems/src/part.c, rtems/src/partcreate.c, rtems/src/partident.c, rtems/src/partmp.c, rtems/src/ratemon.c, rtems/src/region.c, rtems/src/regioncreate.c, rtems/src/regionextend.c, rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c, rtems/src/regionmp.c, rtems/src/regionreturnsegment.c, rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/semcreate.c, rtems/src/semident.c, rtems/src/semmp.c, rtems/src/semobtain.c, rtems/src/semtranslatereturncode.c, rtems/src/taskcreate.c, rtems/src/taskgetnote.c, rtems/src/taskident.c, rtems/src/taskinitusers.c, rtems/src/taskmp.c, rtems/src/taskrestart.c, rtems/src/tasks.c, rtems/src/tasksetnote.c, rtems/src/taskstart.c, rtems/src/timerserver.c: Convert to using c99 fixed size types.
  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  attr.h
2 *
3 *  This include file contains all information about the Object Attributes
4 *  Handler.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef __RTEMS_ATTRIBUTES_h
17#define __RTEMS_ATTRIBUTES_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* types */
24
25typedef uint32_t   rtems_attribute;
26
27/* constants */
28
29#define RTEMS_DEFAULT_ATTRIBUTES  0x00000000
30
31#define RTEMS_NO_FLOATING_POINT   0x00000000 /* don't use FP HW */
32#define RTEMS_FLOATING_POINT      0x00000001 /* utilize coprocessor */
33
34#define RTEMS_LOCAL               0x00000000 /* local resource */
35#define RTEMS_GLOBAL              0x00000002 /* global resource */
36
37#define RTEMS_FIFO                0x00000000 /* process RTEMS_FIFO */
38#define RTEMS_PRIORITY            0x00000004 /* process by priority */
39
40#define RTEMS_SEMAPHORE_CLASS         0x00000030 /* mask */
41#define RTEMS_COUNTING_SEMAPHORE      0x00000000
42#define RTEMS_BINARY_SEMAPHORE        0x00000010
43#define RTEMS_SIMPLE_BINARY_SEMAPHORE 0x00000020
44
45#define RTEMS_NO_INHERIT_PRIORITY 0x00000000
46#define RTEMS_INHERIT_PRIORITY    0x00000040
47
48#define RTEMS_NO_PRIORITY_CEILING 0x00000000
49#define RTEMS_PRIORITY_CEILING    0x00000080
50
51#define RTEMS_APPLICATION_TASK    0x00000000
52#define RTEMS_SYSTEM_TASK         0x00000100
53
54
55#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
56#define ATTRIBUTES_NOT_SUPPORTED       0
57#else
58#define ATTRIBUTES_NOT_SUPPORTED       RTEMS_FLOATING_POINT
59#endif
60
61#if ( CPU_ALL_TASKS_ARE_FP == TRUE )
62#define ATTRIBUTES_REQUIRED            RTEMS_FLOATING_POINT
63#else
64#define ATTRIBUTES_REQUIRED            0
65#endif
66
67/*
68 *  _Attributes_Handler_initialization
69 *
70 *  DESCRIPTION:
71 *
72 *  This routine performs initialization for this handler.
73 *
74 *  NOTE: There is no initialization required in C.  Conditional compilation
75 *        takes care of this in C.
76 */
77
78#define _Attributes_Handler_initialization()
79
80#ifndef __RTEMS_APPLICATION__
81#include <rtems/rtems/attr.inl>
82#endif
83
84#ifdef __cplusplus
85}
86#endif
87
88#endif
89/* end of include file */
Note: See TracBrowser for help on using the repository browser.