ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/sysdeps.h
Revision: 1.1.1.1 (vendor branch)
Committed: 1999-10-03T14:16:25Z (25 years, 1 month ago) by cebix
Content type: text/plain
Branch: cebix
CVS Tags: release-0_7-2, start
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
Log Message:
Imported sources

File Contents

# Content
1 /*
2 * sysdeps.h - System dependent definitions for AmigaOS
3 *
4 * Basilisk II (C) 1997-1999 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
31 // Are the Mac and the host address space the same?
32 #define REAL_ADDRESSING 1
33
34 // Are we using a 68k emulator or the real thing?
35 #define EMULATED_68K 0
36
37 // Is the Mac ROM write protected?
38 #define ROM_IS_WRITE_PROTECTED 0
39
40 // Data types
41 typedef unsigned char uint8;
42 typedef signed char int8;
43 typedef unsigned short uint16;
44 typedef signed short int16;
45 typedef unsigned long uint32;
46 typedef signed long int32;
47 typedef char bool;
48 #define true 1
49 #define false 0
50 typedef LONG loff_t;
51
52 // Time data type for Time Manager emulation
53 typedef struct timeval tm_time_t;
54
55 // Endianess conversion (not needed)
56 #define ntohs(x) (x)
57 #define ntohl(x) (x)
58 #define htons(x) (x)
59 #define htonl(x) (x)
60
61 #endif