ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/sysdeps.h
(Generate patch)

Comparing BasiliskII/src/BeOS/sysdeps.h (file contents):
Revision 1.7 by cebix, 1999-10-28T09:31:41Z vs.
Revision 1.18 by gbeauche, 2004-05-15T16:21:37Z

# Line 1 | Line 1
1   /*
2   *  sysdeps.h - System dependent definitions for BeOS
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2004 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 21 | Line 21
21   #ifndef SYSDEPS_H
22   #define SYSDEPS_H
23  
24 + #ifdef __POWERPC__
25 + #define NO_STD_NAMESPACE
26 + #endif
27 +
28   #include <assert.h>
29   #include <support/SupportDefs.h>
30   #include <support/ByteOrder.h>
# Line 36 | Line 40
40   #define WORDS_BIGENDIAN 1
41   #endif
42  
43 < // Are we using a 68k emulator or the real thing?
43 > // Using 68k emulator
44   #define EMULATED_68K 1
45  
46 < // Is the Mac ROM write protected?
46 > // Mac ROM is write protected
47   #define ROM_IS_WRITE_PROTECTED 1
48  
49   // ExtFS is supported
50   #define SUPPORTS_EXTFS 1
51  
52 + // BSD socket API is supported
53 + #define SUPPORTS_UDP_TUNNEL 1
54 +
55   // mon is not supported
56 < #define ENABLE_MON 0
56 > #undef ENABLE_MON
57  
58   // Time data type for Time Manager emulation
59   typedef bigtime_t tm_time_t;
60  
54 // Offset Mac->BeOS time in seconds
55 #define TIME_OFFSET 0x7c25b080
56
61   // 64 bit file offsets
62   typedef off_t loff_t;
63  
64 + // Networking types
65 + #define PF_INET AF_INET
66 + typedef int socklen_t;
67 +
68   // UAE CPU data types
69   #define uae_s8 int8
70   #define uae_u8 uint8
# Line 69 | Line 77 | typedef off_t loff_t;
77   typedef uae_u32 uaecptr;
78   #define VAL64(a) (a ## LL)
79   #define UVAL64(a) (a ## uLL)
80 + typedef uint32 uintptr;
81 + typedef int32 intptr;
82 +
83 + /* Timing functions */
84 + extern void Delay_usec(uint32 usec);
85  
86   // UAE CPU defines
87   #ifdef __i386__
# Line 91 | Line 104 | static inline void do_put_mem_word(uae_u
104   #endif
105  
106   #define X86_ASSEMBLY
107 + #define UNALIGNED_PROFITABLE
108 + #define OPTIMIZED_FLAGS
109   #define ASM_SYM_FOR_FUNC(a) __asm__(a)
110   #define REGPARAM __attribute__((regparm(3)))
111  
# Line 103 | Line 118 | static inline void do_put_mem_long(uae_u
118   static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;}
119  
120   #undef X86_ASSEMBLY
121 + #define UNALIGNED_PROFITABLE
122 + #undef OPTIMIZED_FLAGS
123   #define ASM_SYM_FOR_FUNC(a)
124   #define REGPARAM
125   #endif
# Line 114 | Line 131 | static inline void do_put_mem_word(uae_u
131   #define call_mem_put_func(func, addr, v) ((*func)(addr, v))
132   #define __inline__ inline
133   #define CPU_EMU_SIZE 0
117 #undef USE_MAPPED_MEMORY
118 #undef CAN_MAP_MEMORY
134   #undef NO_INLINE_MEMORY_ACCESS
135   #undef MD_HAVE_MEM_1_FUNCS
136   #undef USE_COMPILER

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines