ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/sysdeps.h
Revision: 1.16
Committed: 2005-01-30T21:42:13Z (19 years, 10 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-19, nigel-build-17
Changes since 1.15: +1 -1 lines
Log Message:
Happy New Year!

File Contents

# Content
1 /*
2 * sysdeps.h - System dependent definitions for AmigaOS
3 *
4 * Basilisk II (C) 1997-2005 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
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #ifndef SYSDEPS_H
22 #define SYSDEPS_H
23
24 #include <exec/types.h>
25 #include <devices/timer.h>
26 #include <assert.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #include <time.h>
31
32 #include "user_strings_amiga.h"
33
34 // Mac and host address space are the same
35 #define REAL_ADDRESSING 1
36
37 // Using 68k natively
38 #define EMULATED_68K 0
39
40 // Mac ROM is not write protected
41 #define ROM_IS_WRITE_PROTECTED 0
42 #define USE_SCRATCHMEM_SUBTERFUGE 1
43
44 // ExtFS is supported
45 #define SUPPORTS_EXTFS 1
46
47 // mon is not supported
48 #undef ENABLE_MON
49
50 // Data types
51 typedef unsigned char uint8;
52 typedef signed char int8;
53 typedef unsigned short uint16;
54 typedef signed short int16;
55 typedef unsigned long uint32;
56 typedef signed long int32;
57 typedef unsigned long long uint64;
58 typedef signed long long int64;
59
60 typedef unsigned long long loff_t;
61
62 // Time data type for Time Manager emulation
63 typedef struct timeval tm_time_t;
64
65 // Endianess conversion (not needed)
66 #define ntohs(x) (x)
67 #define ntohl(x) (x)
68 #define htons(x) (x)
69 #define htonl(x) (x)
70
71 // Some systems don't define this (ExecBase->AttnFlags)
72 #ifndef AFF_68060
73 #define AFF_68060 (1L<<7)
74 #endif
75
76 #endif