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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [include/] [rtems/] [rtems/] [types.h] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  types.h
2
 *
3
 *  This include file defines the types used by the RTEMS API.
4
 *
5
 *  COPYRIGHT (c) 1989-1999.
6
 *  On-Line Applications Research Corporation (OAR).
7
 *
8
 *  The license and distribution terms for this file may be
9
 *  found in the file LICENSE in this distribution or at
10
 *  http://www.OARcorp.com/rtems/license.html.
11
 *
12
 *  $Id: types.h,v 1.2 2001-09-27 11:59:18 chris Exp $
13
 */
14
 
15
#ifndef __RTEMS_RTEMS_TYPES_h
16
#define __RTEMS_RTEMS_TYPES_h
17
 
18
#ifdef __cplusplus
19
extern "C" {
20
#endif
21
 
22
#include <rtems/score/object.h>
23
#include <rtems/score/priority.h>
24
#include <rtems/score/tod.h>
25
#include <rtems/score/watchdog.h>
26
#include <rtems/rtems/modes.h>
27
#if defined(RTEMS_MULTIPROCESSING)
28
#include <rtems/score/mpci.h>
29
#include <rtems/score/mppkt.h>
30
#endif
31
 
32
/*
33
 *  RTEMS basic type definitions
34
 */
35
 
36
typedef unsigned8       rtems_unsigned8;  /* unsigned 8-bit value  */
37
typedef unsigned16      rtems_unsigned16; /* unsigned 16-bit value */
38
typedef unsigned32      rtems_unsigned32; /* unsigned 32-bit value */
39
 
40
typedef signed8         rtems_signed8;    /* signed 8-bit value  */
41
typedef signed16        rtems_signed16;   /* signed 16-bit value */
42
typedef signed32        rtems_signed32;   /* signed 32-bit value */
43
 
44
/*
45
 * some C++ compilers (eg: HP's) don't do 'long long'
46
 */
47
#if defined(__GNUC__)
48
typedef unsigned64      rtems_unsigned64; /* unsigned 64-bit value */
49
typedef signed64        rtems_signed64;   /* signed 64-bit value */
50
#endif
51
 
52
typedef single_precision rtems_single;    /* single precision float */
53
typedef double_precision rtems_double;    /* double precision float */
54
 
55
typedef boolean          rtems_boolean;
56
 
57
typedef unsigned32       rtems_name;
58
typedef Objects_Id       rtems_id;
59
 
60
typedef Context_Control            rtems_context;
61
typedef Context_Control_fp         rtems_context_fp;
62
typedef CPU_Interrupt_frame        rtems_interrupt_frame;
63
 
64
/*
65
 *  Time related
66
 */
67
 
68
typedef Watchdog_Interval rtems_interval;
69
typedef TOD_Control       rtems_time_of_day;
70
 
71
/*
72
 *  Define the type for an RTEMS API task mode.
73
 */
74
 
75
typedef Modes_Control rtems_mode;
76
 
77
/*
78
 *  MPCI related entries
79
 */
80
 
81
#if defined(RTEMS_MULTIPROCESSING)
82
typedef MP_packet_Classes          rtems_mp_packet_classes;
83
typedef MP_packet_Prefix           rtems_packet_prefix;
84
 
85
typedef MPCI_initialization_entry  rtems_mpci_initialization_entry;
86
typedef MPCI_get_packet_entry      rtems_mpci_get_packet_entry;
87
typedef MPCI_return_packet_entry   rtems_mpci_return_packet_entry;
88
typedef MPCI_send_entry            rtems_mpci_send_packet_entry;
89
typedef MPCI_receive_entry         rtems_mpci_receive_packet_entry;
90
 
91
typedef MPCI_Entry rtems_mpci_entry;
92
 
93
typedef MPCI_Control rtems_mpci_table;
94
#endif
95
 
96
#ifdef __cplusplus
97
}
98
#endif
99
 
100
#endif
101
/* end of include file */

powered by: WebSVN 2.1.0

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