1999-10-03 14:16:26 +00:00
|
|
|
/*
|
|
|
|
* sysdeps.h - System dependent definitions for AmigaOS
|
|
|
|
*
|
2008-01-01 09:40:36 +00:00
|
|
|
* Basilisk II (C) 1997-2008 Christian Bauer
|
1999-10-03 14:16:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SYSDEPS_H
|
|
|
|
#define SYSDEPS_H
|
|
|
|
|
|
|
|
#include <exec/types.h>
|
|
|
|
#include <devices/timer.h>
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2001-10-14 18:00:44 +00:00
|
|
|
#include <time.h>
|
1999-10-03 14:16:26 +00:00
|
|
|
|
1999-10-12 20:00:56 +00:00
|
|
|
#include "user_strings_amiga.h"
|
|
|
|
|
2000-07-22 16:00:36 +00:00
|
|
|
// Mac and host address space are the same
|
1999-10-03 14:16:26 +00:00
|
|
|
#define REAL_ADDRESSING 1
|
|
|
|
|
2000-07-22 16:00:36 +00:00
|
|
|
// Using 68k natively
|
1999-10-03 14:16:26 +00:00
|
|
|
#define EMULATED_68K 0
|
|
|
|
|
2000-07-22 16:00:36 +00:00
|
|
|
// Mac ROM is not write protected
|
1999-10-03 14:16:26 +00:00
|
|
|
#define ROM_IS_WRITE_PROTECTED 0
|
2000-10-09 17:05:17 +00:00
|
|
|
#define USE_SCRATCHMEM_SUBTERFUGE 1
|
1999-10-03 14:16:26 +00:00
|
|
|
|
1999-10-21 22:40:04 +00:00
|
|
|
// ExtFS is supported
|
|
|
|
#define SUPPORTS_EXTFS 1
|
|
|
|
|
1999-10-25 08:07:58 +00:00
|
|
|
// mon is not supported
|
2000-07-22 16:00:36 +00:00
|
|
|
#undef ENABLE_MON
|
1999-10-25 08:07:58 +00:00
|
|
|
|
1999-10-03 14:16:26 +00:00
|
|
|
// Data types
|
|
|
|
typedef unsigned char uint8;
|
|
|
|
typedef signed char int8;
|
|
|
|
typedef unsigned short uint16;
|
|
|
|
typedef signed short int16;
|
|
|
|
typedef unsigned long uint32;
|
|
|
|
typedef signed long int32;
|
1999-11-01 16:24:15 +00:00
|
|
|
typedef unsigned long long uint64;
|
|
|
|
typedef signed long long int64;
|
1999-10-19 19:28:28 +00:00
|
|
|
|
|
|
|
typedef unsigned long long loff_t;
|
1999-10-03 14:16:26 +00:00
|
|
|
|
|
|
|
// Time data type for Time Manager emulation
|
|
|
|
typedef struct timeval tm_time_t;
|
|
|
|
|
|
|
|
// Endianess conversion (not needed)
|
|
|
|
#define ntohs(x) (x)
|
|
|
|
#define ntohl(x) (x)
|
|
|
|
#define htons(x) (x)
|
|
|
|
#define htonl(x) (x)
|
|
|
|
|
1999-11-01 16:24:15 +00:00
|
|
|
// Some systems don't define this (ExecBase->AttnFlags)
|
1999-10-19 19:28:28 +00:00
|
|
|
#ifndef AFF_68060
|
|
|
|
#define AFF_68060 (1L<<7)
|
|
|
|
#endif
|
|
|
|
|
1999-10-03 14:16:26 +00:00
|
|
|
#endif
|