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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [machine/] [types.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//==========================================================================
2
//
3
//      include/machine/types.h
4
//
5
//      Architecture/platform specific support for data types
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
 
33
#ifndef _MACHINE_TYPES_H_
34
#define _MACHINE_TYPES_H_
35
 
36
#include <sys/cdefs.h>
37
#include <cyg/infra/cyg_type.h>
38
#include <cyg/hal/hal_arch.h>
39
 
40
#define __BIT_TYPES_DEFINED__
41
typedef __signed char              int8_t;
42
typedef unsigned char            u_int8_t;
43
typedef unsigned char             uint8_t;
44
typedef short                     int16_t;
45
typedef unsigned short          u_int16_t;
46
typedef unsigned short           uint16_t;
47
typedef int                       int32_t;
48
typedef unsigned int            u_int32_t;
49
typedef unsigned int             uint32_t;
50
typedef long long                 int64_t;
51
typedef unsigned long long      u_int64_t;
52
typedef unsigned long long       uint64_t;
53
 
54
// Types inherited from HAL 
55
 
56
typedef CYG_ADDRESS               vaddr_t;
57
typedef CYG_ADDRWORD              vsize_t;
58
typedef CYG_ADDRESS               paddr_t;
59
typedef CYG_ADDRWORD              psize_t;
60
 
61
typedef CYG_ADDRESS           vm_offset_t;
62
typedef CYG_ADDRWORD            vm_size_t;
63
 
64
// No good HAL definition for this
65
 
66
typedef CYG_ADDRWORD           register_t;
67
 
68
 
69
// From <arch/ansi.h>
70
/*
71
 * Types which are fundamental to the implementation and may appear in
72
 * more than one standard header are defined here.  Standard headers
73
 * then use:
74
 *      #ifdef  _BSD_SIZE_T_
75
 *      typedef _BSD_SIZE_T_ size_t;
76
 *      #undef  _BSD_SIZE_T_
77
 *      #endif
78
 */
79
#define _BSD_SSIZE_T_   int              /* byte count or error */
80
#define _BSD_CLOCKID_T_ int
81
#define _BSD_TIMER_T_   int
82
#ifndef __time_t_defined                 // As defined/used by eCos libc
83
#define _BSD_CLOCK_T_   cyg_int64        /* clock() */
84
#define _BSD_TIME_T_    cyg_count32      /* time() */
85
#endif
86
 
87
#endif // _MACHINE_TYPES_H_

powered by: WebSVN 2.1.0

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