source: rtems/cpukit/rtems/include/rtems/rtems/attr.h @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 2.1 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.OARcorp.com/rtems/license.html.
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 unsigned32 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_COUNTING_SEMAPHORE  0x00000000
41#define RTEMS_BINARY_SEMAPHORE    0x00000010
42
43#define RTEMS_NO_INHERIT_PRIORITY 0x00000000
44#define RTEMS_INHERIT_PRIORITY    0x00000020
45
46#define RTEMS_NO_PRIORITY_CEILING 0x00000000
47#define RTEMS_PRIORITY_CEILING    0x00000040
48
49#define RTEMS_APPLICATION_TASK    0x00000000
50#define RTEMS_SYSTEM_TASK         0x00000080
51
52#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
53#define ATTRIBUTES_NOT_SUPPORTED       0
54#else
55#define ATTRIBUTES_NOT_SUPPORTED       RTEMS_FLOATING_POINT
56#endif
57
58#if ( CPU_ALL_TASKS_ARE_FP == TRUE )
59#define ATTRIBUTES_REQUIRED            RTEMS_FLOATING_POINT
60#else
61#define ATTRIBUTES_REQUIRED            0
62#endif
63
64/*
65 *  _Attributes_Handler_initialization
66 *
67 *  DESCRIPTION:
68 *
69 *  This routine performs initialization for this handler.
70 *
71 *  NOTE: There is no initialization required in C.  Conditional compilation
72 *        takes care of this in C.
73 */
74
75#define _Attributes_Handler_initialization()
76
77#ifndef __RTEMS_APPLICATION__
78#include <rtems/rtems/attr.inl>
79#endif
80
81#ifdef __cplusplus
82}
83#endif
84
85#endif
86/* end of include file */
Note: See TracBrowser for help on using the repository browser.