1 | /** |
---|
2 | * @file rtems/score/types.h |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * This include file contains type definitions pertaining to the Opencores |
---|
7 | * or1k processor family. |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989-1999. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * This file adapted from no_cpu example of the RTEMS distribution. |
---|
17 | * The body has been modified for the Opencores Or1k implementation by |
---|
18 | * Chris Ziomkowski. <chris@asics.ws> |
---|
19 | */ |
---|
20 | |
---|
21 | #ifndef __rtems_score_types_h |
---|
22 | #define __rtems_score_types_h |
---|
23 | |
---|
24 | #ifndef ASM |
---|
25 | |
---|
26 | #include <rtems/stdint.h> |
---|
27 | |
---|
28 | #ifdef __cplusplus |
---|
29 | extern "C" { |
---|
30 | #endif |
---|
31 | |
---|
32 | /* |
---|
33 | * This section defines the basic types for this processor. |
---|
34 | */ |
---|
35 | |
---|
36 | typedef unsigned long long unsigned64; /* unsigned 64-bit integer */ |
---|
37 | |
---|
38 | typedef unsigned16 Priority_Bit_map_control; |
---|
39 | |
---|
40 | typedef signed long long signed64; /* 64 bit signed integer */ |
---|
41 | |
---|
42 | typedef unsigned32 boolean; /* Boolean value */ |
---|
43 | |
---|
44 | typedef float single_precision; /* single precision float */ |
---|
45 | typedef double double_precision; /* double precision float */ |
---|
46 | |
---|
47 | typedef void no_cpu_isr; |
---|
48 | typedef void ( *no_cpu_isr_entry )( void ); |
---|
49 | |
---|
50 | /* |
---|
51 | * Turns out the that the disable POSIX option doesn't work |
---|
52 | * too well. Specifically, the libc library still wants to know |
---|
53 | * these POSIX values. We'll go ahead and include them here |
---|
54 | * until such time as someone like OAR who is familiar with this |
---|
55 | * can figure out what should really be done. |
---|
56 | */ |
---|
57 | |
---|
58 | #define NAME_MAX 255 |
---|
59 | #define LINK_MAX 8 |
---|
60 | |
---|
61 | #ifdef __cplusplus |
---|
62 | } |
---|
63 | #endif |
---|
64 | |
---|
65 | #endif /* !ASM */ |
---|
66 | |
---|
67 | #endif |
---|