ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/sysdeps.h
Revision: 1.11
Committed: 2001-02-02T20:52:57Z (23 years, 10 months ago) by cebix
Content type: text/plain
Branch: MAIN
CVS Tags: snapshot-17022001, snapshot-29052001, release-0_9-1
Changes since 1.10: +1 -1 lines
Log Message:
- bumped version number to 0.9
- updated copyright dates

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * sysdeps.h - System dependent definitions for AmigaOS
3     *
4 cebix 1.11 * Basilisk II (C) 1997-2001 Christian Bauer
5 cebix 1.1 *
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    
31 cebix 1.2 #include "user_strings_amiga.h"
32    
33 cebix 1.9 // Mac and host address space are the same
34 cebix 1.1 #define REAL_ADDRESSING 1
35    
36 cebix 1.9 // Using 68k natively
37 cebix 1.1 #define EMULATED_68K 0
38    
39 cebix 1.9 // Mac ROM is not write protected
40 cebix 1.1 #define ROM_IS_WRITE_PROTECTED 0
41 cebix 1.10 #define USE_SCRATCHMEM_SUBTERFUGE 1
42 cebix 1.1
43 cebix 1.5 // ExtFS is supported
44     #define SUPPORTS_EXTFS 1
45    
46 cebix 1.6 // mon is not supported
47 cebix 1.9 #undef ENABLE_MON
48 cebix 1.6
49 cebix 1.1 // Data types
50     typedef unsigned char uint8;
51     typedef signed char int8;
52     typedef unsigned short uint16;
53     typedef signed short int16;
54     typedef unsigned long uint32;
55     typedef signed long int32;
56 cebix 1.7 typedef unsigned long long uint64;
57     typedef signed long long int64;
58 cebix 1.4
59     typedef unsigned long long loff_t;
60 cebix 1.1
61     // Time data type for Time Manager emulation
62     typedef struct timeval tm_time_t;
63    
64 cebix 1.3 // Offset Mac->AmigaOS time in seconds
65     #define TIME_OFFSET 0x8b31ef80
66    
67 cebix 1.1 // Endianess conversion (not needed)
68     #define ntohs(x) (x)
69     #define ntohl(x) (x)
70     #define htons(x) (x)
71     #define htonl(x) (x)
72 cebix 1.4
73 cebix 1.7 // Some systems don't define this (ExecBase->AttnFlags)
74 cebix 1.4 #ifndef AFF_68060
75     #define AFF_68060 (1L<<7)
76     #endif
77 cebix 1.1
78     #endif