[8ad91ff] | 1 | /** |
---|
| 2 | * @file rtems/score/types.h |
---|
| 3 | */ |
---|
| 4 | |
---|
| 5 | /* |
---|
[098755b3] | 6 | * This include file contains type definitions pertaining to the Opencores |
---|
| 7 | * or1k processor family. |
---|
[5377fed] | 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 |
---|
[c2a45947] | 14 | * http://www.rtems.com/license/LICENSE. |
---|
[5377fed] | 15 | * |
---|
[098755b3] | 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> |
---|
[5377fed] | 19 | */ |
---|
| 20 | |
---|
[af413e95] | 21 | #ifndef __rtems_score_types_h |
---|
| 22 | #define __rtems_score_types_h |
---|
[5377fed] | 23 | |
---|
| 24 | #ifndef ASM |
---|
| 25 | |
---|
| 26 | #ifdef __cplusplus |
---|
| 27 | extern "C" { |
---|
| 28 | #endif |
---|
| 29 | |
---|
| 30 | /* |
---|
| 31 | * This section defines the basic types for this processor. |
---|
| 32 | */ |
---|
| 33 | |
---|
| 34 | typedef unsigned char unsigned8; /* unsigned 8-bit integer */ |
---|
| 35 | typedef unsigned short unsigned16; /* unsigned 16-bit integer */ |
---|
| 36 | typedef unsigned int unsigned32; /* unsigned 32-bit integer */ |
---|
| 37 | typedef unsigned long long unsigned64; /* unsigned 64-bit integer */ |
---|
| 38 | |
---|
| 39 | typedef unsigned16 Priority_Bit_map_control; |
---|
| 40 | |
---|
| 41 | typedef signed char signed8; /* 8-bit signed integer */ |
---|
| 42 | typedef signed short signed16; /* 16-bit signed integer */ |
---|
| 43 | typedef signed int signed32; /* 32-bit signed integer */ |
---|
| 44 | typedef signed long long signed64; /* 64 bit signed integer */ |
---|
| 45 | |
---|
| 46 | typedef unsigned32 boolean; /* Boolean value */ |
---|
| 47 | |
---|
| 48 | typedef float single_precision; /* single precision float */ |
---|
| 49 | typedef double double_precision; /* double precision float */ |
---|
| 50 | |
---|
[098755b3] | 51 | typedef void no_cpu_isr; |
---|
| 52 | typedef void ( *no_cpu_isr_entry )( void ); |
---|
| 53 | |
---|
| 54 | /* |
---|
| 55 | * Turns out the that the disable POSIX option doesn't work |
---|
| 56 | * too well. Specifically, the libc library still wants to know |
---|
| 57 | * these POSIX values. We'll go ahead and include them here |
---|
| 58 | * until such time as someone like OAR who is familiar with this |
---|
| 59 | * can figure out what should really be done. |
---|
| 60 | */ |
---|
| 61 | |
---|
| 62 | #define NAME_MAX 255 |
---|
| 63 | #define LINK_MAX 8 |
---|
[5377fed] | 64 | |
---|
| 65 | #ifdef __cplusplus |
---|
| 66 | } |
---|
| 67 | #endif |
---|
| 68 | |
---|
| 69 | #endif /* !ASM */ |
---|
| 70 | |
---|
| 71 | #endif |
---|
| 72 | /* end of include file */ |
---|