mirror of
https://github.com/LIV2/WinUAE.git
synced 2025-12-06 00:12:52 +00:00
header guards, include uae/types.h, a few related changes
This commit is contained in:
parent
c619070323
commit
8c712322cd
@ -158,7 +158,7 @@ uae_u32 callfdcallback (TrapContext *context, SB, uae_u32 fd, uae_u32 action)
|
||||
return v;
|
||||
}
|
||||
|
||||
BOOL checksd(TrapContext *context, SB, int sd)
|
||||
bool checksd(TrapContext *context, SB, int sd)
|
||||
{
|
||||
int iCounter;
|
||||
SOCKET s;
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_A2065_H
|
||||
#define UAE_A2065_H
|
||||
|
||||
#ifdef A2065
|
||||
|
||||
@ -10,3 +12,4 @@ extern void rethink_a2065 (void);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* UAE_A2065_H */
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
|
||||
#ifndef A2091_H
|
||||
#define A2091_H
|
||||
#ifndef UAE_A2091_H
|
||||
#define UAE_A2091_H
|
||||
|
||||
#ifdef A2091
|
||||
|
||||
@ -147,6 +146,6 @@ extern int add_wd_scsi_hd (struct wd_state *wd, int ch, struct hd_hardfiledata *
|
||||
extern int add_wd_scsi_cd (struct wd_state *wd, int ch, int unitnum);
|
||||
extern int add_wd_scsi_tape (struct wd_state *wd, int ch, const TCHAR *tape_directory, bool readonly);
|
||||
|
||||
#endif
|
||||
#endif /* A2091 */
|
||||
|
||||
#endif /* A2091H */
|
||||
#endif /* UAE_A2091_H */
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
|
||||
#ifndef UAE_AKIKO_H
|
||||
#define UAE_AKIKO_H
|
||||
|
||||
#define AKIKO_BASE 0xb80000
|
||||
#define AKIKO_BASE_END 0xb80100 /* ?? */
|
||||
@ -11,3 +12,5 @@ extern void AKIKO_hsync_handler (void);
|
||||
extern void akiko_mute (int);
|
||||
|
||||
extern void rethink_akiko (void);
|
||||
|
||||
#endif /* UAE_AKIKO_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_AMAX_H
|
||||
#define UAE_AMAX_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
void amax_diskwrite (uae_u16 w);
|
||||
void amax_bfe001_write (uae_u8 pra, uae_u8 dra);
|
||||
@ -6,3 +10,5 @@ void amax_disk_select (uae_u8 v, uae_u8 ov, int);
|
||||
void amax_reset (void);
|
||||
void amax_init (void);
|
||||
bool amax_active(void);
|
||||
|
||||
#endif /* UAE_AMAX_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_AR_H
|
||||
#define UAE_AR_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
/* disable HRTMon support by commenting this out */
|
||||
#define ACTION_REPLAY_HRTMON
|
||||
@ -67,3 +71,5 @@ extern uae_u32 hrtmem_start, hrtmem_size;
|
||||
extern uae_u8 ar_custom[2*256], ar_ciaa[16], ar_ciab[16];
|
||||
|
||||
extern int hrtmon_lang;
|
||||
|
||||
#endif /* UAE_AR_H */
|
||||
|
||||
@ -28,6 +28,6 @@ extern int arcadia_flag, arcadia_coin[2];
|
||||
#define ARCADIA_BIOS 1
|
||||
#define ARCADIA_GAME 2
|
||||
|
||||
#endif
|
||||
#endif /* ARCADIA */
|
||||
|
||||
#endif // UAE_ARCADIA_H
|
||||
#endif /* UAE_ARCADIA_H */
|
||||
|
||||
151
include/audio.h
151
include/audio.h
@ -1,49 +1,53 @@
|
||||
/*
|
||||
* UAE - The Un*x Amiga Emulator
|
||||
*
|
||||
* Sound emulation stuff
|
||||
*
|
||||
* Copyright 1995, 1996, 1997 Bernd Schmidt
|
||||
*/
|
||||
/*
|
||||
* UAE - The Un*x Amiga Emulator
|
||||
*
|
||||
* Sound emulation stuff
|
||||
*
|
||||
* Copyright 1995, 1996, 1997 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_AUDIO_H
|
||||
#define UAE_AUDIO_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define PERIOD_MAX ULONG_MAX
|
||||
#define MAX_EV ~0u
|
||||
|
||||
extern void aud0_handler (void);
|
||||
extern void aud1_handler (void);
|
||||
extern void aud2_handler (void);
|
||||
extern void aud3_handler (void);
|
||||
void aud0_handler (void);
|
||||
void aud1_handler (void);
|
||||
void aud2_handler (void);
|
||||
void aud3_handler (void);
|
||||
|
||||
extern void AUDxDAT (int nr, uae_u16 value);
|
||||
extern void AUDxDAT (int nr, uae_u16 value, uaecptr addr);
|
||||
extern void AUDxVOL (int nr, uae_u16 value);
|
||||
extern void AUDxPER (int nr, uae_u16 value);
|
||||
extern void AUDxLCH (int nr, uae_u16 value);
|
||||
extern void AUDxLCL (int nr, uae_u16 value);
|
||||
extern void AUDxLEN (int nr, uae_u16 value);
|
||||
void AUDxDAT (int nr, uae_u16 value);
|
||||
void AUDxDAT (int nr, uae_u16 value, uaecptr addr);
|
||||
void AUDxVOL (int nr, uae_u16 value);
|
||||
void AUDxPER (int nr, uae_u16 value);
|
||||
void AUDxLCH (int nr, uae_u16 value);
|
||||
void AUDxLCL (int nr, uae_u16 value);
|
||||
void AUDxLEN (int nr, uae_u16 value);
|
||||
|
||||
extern uae_u16 audio_dmal (void);
|
||||
extern void audio_state_machine (void);
|
||||
extern uaecptr audio_getpt (int nr, bool reset);
|
||||
uae_u16 audio_dmal (void);
|
||||
void audio_state_machine (void);
|
||||
uaecptr audio_getpt (int nr, bool reset);
|
||||
int init_audio (void);
|
||||
void ahi_install (void);
|
||||
void audio_reset (void);
|
||||
void update_audio (void);
|
||||
void audio_evhandler (void);
|
||||
void audio_hsync (void);
|
||||
void audio_update_adkmasks (void);
|
||||
void update_sound (double clk);
|
||||
void update_cda_sound (double clk);
|
||||
void led_filter_audio (void);
|
||||
void set_audio (void);
|
||||
int audio_activate (void);
|
||||
void audio_deactivate (void);
|
||||
void audio_vsync (void);
|
||||
void audio_sampleripper(int);
|
||||
void write_wavheader (struct zfile *wavfile, uae_u32 size, uae_u32 freq);
|
||||
|
||||
extern int init_audio (void);
|
||||
extern void ahi_install (void);
|
||||
extern void audio_reset (void);
|
||||
extern void update_audio (void);
|
||||
extern void audio_evhandler (void);
|
||||
extern void audio_hsync (void);
|
||||
extern void audio_update_adkmasks (void);
|
||||
extern void update_sound (double clk);
|
||||
extern void update_cda_sound (double clk);
|
||||
extern void led_filter_audio (void);
|
||||
extern void set_audio (void);
|
||||
extern int audio_activate (void);
|
||||
extern void audio_deactivate (void);
|
||||
extern void audio_vsync (void);
|
||||
|
||||
extern void audio_sampleripper(int);
|
||||
extern int sampleripper_enabled;
|
||||
extern void write_wavheader (struct zfile *wavfile, uae_u32 size, uae_u32 freq);
|
||||
|
||||
extern void audio_update_sndboard(unsigned int);
|
||||
extern void audio_enable_sndboard(bool);
|
||||
@ -65,40 +69,51 @@ extern int sound_paula_volume[2];
|
||||
#define AUDIO_CHANNEL_CDA_RIGHT 7
|
||||
|
||||
enum {
|
||||
SND_MONO, SND_STEREO, SND_4CH_CLONEDSTEREO, SND_4CH, SND_6CH_CLONEDSTEREO, SND_6CH, SND_NONE };
|
||||
STATIC_INLINE int get_audio_stereomode (int channels)
|
||||
SND_MONO,
|
||||
SND_STEREO,
|
||||
SND_4CH_CLONEDSTEREO,
|
||||
SND_4CH,
|
||||
SND_6CH_CLONEDSTEREO,
|
||||
SND_6CH,
|
||||
SND_NONE
|
||||
};
|
||||
|
||||
static inline int get_audio_stereomode (int channels)
|
||||
{
|
||||
switch (channels)
|
||||
{
|
||||
switch (channels)
|
||||
{
|
||||
case 1:
|
||||
return SND_MONO;
|
||||
return SND_MONO;
|
||||
case 2:
|
||||
return SND_STEREO;
|
||||
return SND_STEREO;
|
||||
case 4:
|
||||
return SND_4CH;
|
||||
return SND_4CH;
|
||||
case 6:
|
||||
return SND_6CH;
|
||||
}
|
||||
return SND_STEREO;
|
||||
}
|
||||
STATIC_INLINE int get_audio_nativechannels (int stereomode)
|
||||
{
|
||||
int ch[] = { 1, 2, 4, 4, 6, 6, 0 };
|
||||
return ch[stereomode];
|
||||
}
|
||||
STATIC_INLINE int get_audio_amigachannels (int stereomode)
|
||||
{
|
||||
int ch[] = { 1, 2, 2, 4, 2, 4, 0 };
|
||||
return ch[stereomode];
|
||||
}
|
||||
STATIC_INLINE int get_audio_ismono (int stereomode)
|
||||
{
|
||||
if (stereomode == 0)
|
||||
return 1;
|
||||
return 0;
|
||||
return SND_6CH;
|
||||
}
|
||||
return SND_STEREO;
|
||||
}
|
||||
|
||||
#define SOUND_MAX_DELAY_BUFFER 1024
|
||||
#define SOUND_MAX_LOG_DELAY 10
|
||||
#define MIXED_STEREO_MAX 16
|
||||
#define MIXED_STEREO_SCALE 32
|
||||
STATIC_INLINE int get_audio_nativechannels (int stereomode)
|
||||
{
|
||||
int ch[] = { 1, 2, 4, 4, 6, 6, 0 };
|
||||
return ch[stereomode];
|
||||
}
|
||||
|
||||
STATIC_INLINE int get_audio_amigachannels (int stereomode)
|
||||
{
|
||||
int ch[] = { 1, 2, 2, 4, 2, 4, 0 };
|
||||
return ch[stereomode];
|
||||
}
|
||||
|
||||
STATIC_INLINE int get_audio_ismono (int stereomode)
|
||||
{
|
||||
return stereomode == 0;
|
||||
}
|
||||
|
||||
#define SOUND_MAX_DELAY_BUFFER 1024
|
||||
#define SOUND_MAX_LOG_DELAY 10
|
||||
#define MIXED_STEREO_MAX 16
|
||||
#define MIXED_STEREO_SCALE 32
|
||||
|
||||
#endif /* UAE_AUDIO_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* (c) 1996 Ed Hanway
|
||||
*/
|
||||
|
||||
#ifndef UAE_AUTOCONF_H
|
||||
#define UAE_AUTOCONF_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define RTAREA_DEFAULT 0xf00000
|
||||
#define RTAREA_BACKUP 0xef0000
|
||||
#define RTAREA_BACKUP_2 0xdb0000
|
||||
@ -31,6 +36,7 @@ extern uaecptr makedatatable (uaecptr resid, uaecptr resname, uae_u8 type, uae_s
|
||||
extern void align (int);
|
||||
|
||||
extern volatile int uae_int_requested, uaenet_int_requested;
|
||||
extern volatile int uaenet_vsync_requested;
|
||||
extern void set_uae_int_flag (void);
|
||||
|
||||
#define RTS 0x4e75
|
||||
@ -102,7 +108,6 @@ extern void uaegfx_install_code (uaecptr);
|
||||
|
||||
extern uae_u32 emulib_target_getcpurate (uae_u32, uae_u32*);
|
||||
|
||||
|
||||
typedef addrbank*(*DEVICE_INIT)(struct romconfig*);
|
||||
typedef void(*DEVICE_ADD)(int, struct uaedev_config_info*, struct romconfig*);
|
||||
typedef bool(*E8ACCESS)(int, uae_u32*, int, bool);
|
||||
@ -190,3 +195,5 @@ struct cpuboardtype
|
||||
int defaultsubtype;
|
||||
};
|
||||
extern const struct cpuboardtype cpuboards[];
|
||||
|
||||
#endif /* UAE_AUTOCONF_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_BLITTER_H
|
||||
#define UAE_BLITTER_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
struct bltinfo {
|
||||
int blitzero;
|
||||
int blitashift, blitbshift, blitdownashift, blitdownbshift;
|
||||
@ -60,3 +65,5 @@ extern uae_u32 blit_masktable[BLITTER_MAX_WORDS];
|
||||
#define BLIT_MODE_APPROXIMATE 0
|
||||
#define BLIT_MODE_COMPATIBLE 1
|
||||
#define BLIT_MODE_EXACT 2
|
||||
|
||||
#endif /* UAE_BLITTER_H */
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ifndef UAE_BLKDEV_H
|
||||
#define UAE_BLKDEV_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define DEVICE_SCSI_BUFSIZE (65536 - 1024)
|
||||
|
||||
#define SCSI_UNIT_DISABLED -1
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef UAE_BSDSOCKET_H
|
||||
#define UAE_BSDSOCKET_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define BSD_TRACING_ENABLED 0
|
||||
|
||||
extern int log_bsd;
|
||||
@ -138,7 +143,6 @@ uae_u32 addmem (uae_u32 * dst, const uae_char *src, int len);
|
||||
extern void bsdsocklib_seterrno (SB, int);
|
||||
extern void bsdsocklib_setherrno (SB, int);
|
||||
|
||||
extern void sockmsg (unsigned int, WPARAM, LPARAM);
|
||||
extern void sockabort (SB);
|
||||
|
||||
extern void addtosigqueue (SB, int);
|
||||
@ -147,7 +151,7 @@ extern void sigsockettasks (void);
|
||||
extern void locksigqueue (void);
|
||||
extern void unlocksigqueue (void);
|
||||
|
||||
extern BOOL checksd(TrapContext*, SB, int sd);
|
||||
extern bool checksd(TrapContext*, SB, int sd);
|
||||
extern void setsd(TrapContext*, SB, int , SOCKET_TYPE);
|
||||
extern int getsd (TrapContext*, SB, SOCKET_TYPE);
|
||||
extern SOCKET_TYPE getsock (SB, int);
|
||||
@ -203,3 +207,9 @@ extern uae_u32 callfdcallback (TrapContext *context, SB, uae_u32 fd, uae_u32 act
|
||||
extern uaecptr bsdlib_startup (uaecptr);
|
||||
extern void bsdlib_install (void);
|
||||
extern void bsdlib_reset (void);
|
||||
|
||||
void bsdsock_fake_int_handler(void);
|
||||
|
||||
extern int volatile bsd_int_requested;
|
||||
|
||||
#endif /* UAE_BSDSOCKET_H */
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
#ifndef UAE_CALC_H
|
||||
#define UAE_CALC_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern bool calc(const TCHAR *input, double *outval);
|
||||
extern bool iscalcformula (const TCHAR *formula);
|
||||
|
||||
#endif /* UAE_CALC_H */
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_CATWEASEL_H
|
||||
#define UAE_CATWEASEL_H
|
||||
|
||||
#ifdef CATWEASEL
|
||||
|
||||
@ -92,4 +94,6 @@ int catweasel_diskready(catweasel_drive *d);
|
||||
int catweasel_track0(catweasel_drive *d);
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* CATWEASEL */
|
||||
|
||||
#endif /* UAE_CATWEASEL_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_CD32_FMV_H
|
||||
#define UAE_CD32_FMV_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern addrbank *cd32_fmv_init (uaecptr);
|
||||
extern void cd32_fmv_reset(void);
|
||||
@ -13,3 +17,5 @@ extern void cd32_fmv_new_border_color(uae_u32);
|
||||
extern void cd32_fmv_set_sync(double svpos, double adjust);
|
||||
|
||||
extern int cd32_fmv_active;
|
||||
|
||||
#endif /* UAE_CD32_FMV_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_CDTV_H
|
||||
#define UAE_CDTV_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifdef CDTV
|
||||
|
||||
@ -25,5 +29,6 @@ extern void cdtv_scsi_clear_int (void);
|
||||
|
||||
extern bool cdtv_front_panel (int);
|
||||
|
||||
#endif
|
||||
#endif /* CDTV */
|
||||
|
||||
#endif /* UAE_CDTV_H */
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_CDTVCR_H
|
||||
#define UAE_CDTVCR_H
|
||||
|
||||
void cdtvcr_reset(void);
|
||||
void cdtvcr_free(void);
|
||||
@ -5,3 +7,4 @@ void rethink_cdtvcr(void);
|
||||
|
||||
extern void CDTVCR_hsync_handler(void);
|
||||
|
||||
#endif /* UAE_CDTVCR_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_CIA_H
|
||||
#define UAE_CIA_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void CIA_reset (void);
|
||||
extern void CIA_vsync_prehandler (void);
|
||||
extern void CIA_hsync_prehandler (void);
|
||||
@ -22,6 +27,7 @@ extern void dumpcia (void);
|
||||
extern void rethink_cias (void);
|
||||
extern int resetwarning_do (int);
|
||||
extern void cia_set_overlay (bool);
|
||||
void cia_heartbeat (void);
|
||||
|
||||
extern int parallel_direct_write_data (uae_u8, uae_u8);
|
||||
extern int parallel_direct_read_data (uae_u8*);
|
||||
@ -29,3 +35,5 @@ extern int parallel_direct_write_status (uae_u8, uae_u8);
|
||||
extern int parallel_direct_read_status (uae_u8*);
|
||||
|
||||
extern void rtc_hardreset (void);
|
||||
|
||||
#endif /* UAE_CIA_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_CLIPBOARD_H
|
||||
#define UAE_CLIPBOARD_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern int amiga_clipboard_want_data (void);
|
||||
extern void amiga_clipboard_got_data (uaecptr data, uae_u32 size, uae_u32 actual);
|
||||
@ -6,4 +10,6 @@ extern void amiga_clipboard_init (void);
|
||||
extern uaecptr amiga_clipboard_proc_start (void);
|
||||
extern void amiga_clipboard_task_start (uaecptr);
|
||||
extern void clipboard_disable (bool);
|
||||
extern void clipboard_vsync (void);
|
||||
extern void clipboard_vsync (void);
|
||||
|
||||
#endif /* UAE_CLIPBOARD_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* Copyright 1997, 2001 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_COMMPIPE_H
|
||||
#define UAE_COMMPIPE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
typedef union {
|
||||
int i;
|
||||
uae_u32 u32;
|
||||
@ -154,3 +159,5 @@ STATIC_INLINE void write_comm_pipe_pvoid (smp_comm_pipe *p, void *data, int no_b
|
||||
foo.pv = data;
|
||||
write_comm_pipe_pt (p, foo, no_buffer);
|
||||
}
|
||||
|
||||
#endif /* UAE_COMMPIPE_H */
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
#ifndef UAE_CONSOLEHOOK_H
|
||||
#define UAE_CONSOLEHOOK_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
int consolehook_activate (void);
|
||||
void consolehook_ret (uaecptr condev, uaecptr oldbeginio);
|
||||
uaecptr consolehook_beginio (uaecptr request);
|
||||
void consolehook_config (struct uae_prefs *p);
|
||||
|
||||
#endif /* UAE_CONSOLEHOOK_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_CPU_PREFETCH_H
|
||||
#define UAE_CPU_PREFETCH_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifdef CPUEMU_20
|
||||
|
||||
@ -502,3 +506,5 @@ STATIC_INLINE uae_u32 get_disp_ea_000 (uae_u32 base, uae_u32 dp)
|
||||
regd = (uae_s32)(uae_s16)regd;
|
||||
return base + (uae_s8)dp + regd;
|
||||
}
|
||||
|
||||
#endif /* UAE_CPU_PREFETCH_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_CPUBOARD_H
|
||||
#define UAE_CPUBOARD_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern addrbank *cpuboard_autoconfig_init(struct romconfig*);
|
||||
extern bool cpuboard_maprom(void);
|
||||
@ -27,6 +31,10 @@ extern uae_u32 cyberstorm_scsi_ram_get(uaecptr addr);
|
||||
extern int REGPARAM3 cyberstorm_scsi_ram_check(uaecptr addr, uae_u32 size) REGPARAM;
|
||||
extern uae_u8 *REGPARAM3 cyberstorm_scsi_ram_xlate(uaecptr addr) REGPARAM;
|
||||
|
||||
void cyberstorm_irq(int level);
|
||||
void cyberstorm_mk3_ppc_irq(int level);
|
||||
void blizzardppc_irq(int level);
|
||||
|
||||
#define BOARD_MEMORY_Z2 1
|
||||
#define BOARD_MEMORY_Z3 2
|
||||
#define BOARD_MEMORY_HIGHMEM 3
|
||||
@ -80,3 +88,4 @@ extern uae_u8 *REGPARAM3 cyberstorm_scsi_ram_xlate(uaecptr addr) REGPARAM;
|
||||
#define BOARD_IC 11
|
||||
#define BOARD_IC_ACA500 0
|
||||
|
||||
#endif /* UAE_CPUBOARD_H */
|
||||
|
||||
@ -24,8 +24,10 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CPUMMU_H
|
||||
#define CPUMMU_H
|
||||
#ifndef UAE_CPUMMU_H
|
||||
#define UAE_CPUMMU_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#include "mmu_common.h"
|
||||
|
||||
@ -921,4 +923,4 @@ extern void m68k_do_rts_mmu060 (void);
|
||||
extern void m68k_do_rte_mmu060 (uaecptr a7);
|
||||
extern void m68k_do_bsr_mmu060 (uaecptr oldpc, uae_s32 offset);
|
||||
|
||||
#endif /* CPUMMU_H */
|
||||
#endif /* UAE_CPUMMU_H */
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#ifndef CPUMMU030_H
|
||||
#define CPUMMU030_H
|
||||
#ifndef UAE_CPUMMU030_H
|
||||
#define UAE_CPUMMU030_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#include "mmu_common.h"
|
||||
|
||||
@ -470,4 +472,4 @@ extern void m68k_do_rte_mmu030 (uaecptr a7);
|
||||
extern void flush_mmu030 (uaecptr, int);
|
||||
extern void m68k_do_bsr_mmu030 (uaecptr oldpc, uae_s32 offset);
|
||||
|
||||
#endif
|
||||
#endif /* UAE_CPUMMU030_H */
|
||||
|
||||
@ -1,6 +1,13 @@
|
||||
#ifndef UAE_CRC32_H
|
||||
#define UAE_CRC32_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern uae_u32 get_crc32 (void *p, int size);
|
||||
extern uae_u16 get_crc16 (void *p, int size);
|
||||
extern uae_u32 get_crc32_val (uae_u8 v, uae_u32 crc);
|
||||
extern void get_sha1 (void *p, int size, void *out);
|
||||
extern const TCHAR *get_sha1_txt (void *p, int size);
|
||||
#define SHA1_SIZE 20
|
||||
|
||||
#endif /* UAE_CRC32_H */
|
||||
|
||||
@ -6,9 +6,10 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef CUSTOM_H
|
||||
#define CUSTOM_H
|
||||
#ifndef UAE_CUSTOM_H
|
||||
#define UAE_CUSTOM_H
|
||||
|
||||
#include "uae/types.h"
|
||||
#include "machdep/rpt.h"
|
||||
|
||||
/* These are the masks that are ORed together in the chipset_mask option.
|
||||
@ -238,5 +239,6 @@ extern int current_maxvpos (void);
|
||||
extern struct chipset_refresh *get_chipset_refresh (void);
|
||||
extern void compute_framesync (void);
|
||||
extern void getsyncregisters(uae_u16 *phsstrt, uae_u16 *phsstop, uae_u16 *pvsstrt, uae_u16 *pvsstop);
|
||||
int is_bitplane_dma (int hpos);
|
||||
|
||||
#endif /* CUSTOM_H */
|
||||
#endif /* UAE_CUSTOM_H */
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef UAE_DEBUG_H
|
||||
#define UAE_DEBUG_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifdef DEBUGGER
|
||||
|
||||
#define MAX_HIST 500
|
||||
@ -166,4 +171,6 @@ extern void debug_draw_cycles (uae_u8 *buf, int bpp, int line, int width, int he
|
||||
|
||||
STATIC_INLINE void activate_debugger (void) { };
|
||||
|
||||
#endif
|
||||
#endif /* DEBUGGER */
|
||||
|
||||
#endif /* UAE_DEBUG_H */
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_DEVICES_H
|
||||
#define UAE_DEVICES_H
|
||||
|
||||
void devices_reset(int hardreset);
|
||||
void devices_vsync_pre(void);
|
||||
@ -10,4 +12,6 @@ void devices_update_sync(double svpos, double syncadjust);
|
||||
void reset_all_systems(void);
|
||||
void do_leave_program(void);
|
||||
void virtualdevice_init(void);
|
||||
void devices_restore_start(void);
|
||||
void devices_restore_start(void);
|
||||
|
||||
#endif /* UAE_DEVICES_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_DISK_H
|
||||
#define UAE_DISK_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
typedef enum { DRV_NONE = -1, DRV_35_DD = 0, DRV_35_HD, DRV_525_SD, DRV_35_DD_ESCOM, DRV_PC_ONLY_40, DRV_PC_ONLY_80 } drive_type;
|
||||
|
||||
#define HISTORY_FLOPPY 0
|
||||
@ -99,3 +104,4 @@ extern int disk_debug_track;
|
||||
|
||||
#define MAX_PREVIOUS_IMAGES 50
|
||||
|
||||
#endif /* UAE_DISK_H */
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
#ifndef UAE_DISKUTIL_H
|
||||
#define UAE_DISKUTIL_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
int isamigatrack (uae_u16 *amigamfmbuffer, uae_u8 *mfmdata, int len, uae_u8 *writebuffer, uae_u8 *writebuffer_ok, int track, int *outsize);
|
||||
int ispctrack (uae_u16 *amigamfmbuffer, uae_u8 *mfmdata, int len, uae_u8 *writebuffer, uae_u8 *writebuffer_ok, int track, int *outsize);
|
||||
|
||||
#endif /* UAE_DISKUTIL_H */
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
#ifndef UAE_DONGLE_H
|
||||
#define UAE_DONGLE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void dongle_reset (void);
|
||||
extern uae_u8 dongle_cia_read (int, int, uae_u8);
|
||||
extern void dongle_cia_write (int, int, uae_u8);
|
||||
@ -5,4 +10,6 @@ extern void dongle_joytest (uae_u16);
|
||||
extern uae_u16 dongle_joydat (int, uae_u16);
|
||||
extern void dongle_potgo (uae_u16);
|
||||
extern uae_u16 dongle_potgor (uae_u16);
|
||||
extern int dongle_analogjoy (int, int);
|
||||
extern int dongle_analogjoy (int, int);
|
||||
|
||||
#endif /* UAE_DONGLE_H */
|
||||
|
||||
@ -4,6 +4,11 @@
|
||||
* Copyright 1996-1998 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_DRAWING_H
|
||||
#define UAE_DRAWING_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define SMART_UPDATE 1
|
||||
|
||||
#ifdef SUPPORT_PENGUINS
|
||||
@ -289,6 +294,7 @@ extern void set_custom_limits (int w, int h, int dx, int dy);
|
||||
extern void check_custom_limits (void);
|
||||
extern void get_custom_topedge (int *x, int *y, bool max);
|
||||
extern void get_custom_raw_limits (int *pw, int *ph, int *pdx, int *pdy);
|
||||
void get_custom_mouse_limits (int *pw, int *ph, int *pdx, int *pdy, int dbl);
|
||||
extern void putpixel (uae_u8 *buf, int bpp, int x, xcolnr c8, int opaq);
|
||||
extern void allocvidbuffer (struct vidbuffer *buf, int width, int height, int depth);
|
||||
extern void freevidbuffer (struct vidbuffer *buf);
|
||||
@ -315,3 +321,5 @@ STATIC_INLINE void toggle_inhibit_frame (int bit)
|
||||
{
|
||||
inhibit_frame ^= 1 << bit;
|
||||
}
|
||||
|
||||
#endif /* UAE_DRAWING_H */
|
||||
|
||||
@ -6,6 +6,10 @@
|
||||
* Copyright 2004 James Bagg, Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_DRIVECLICK_H
|
||||
#define UAE_DRIVECLICK_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define CLICK_TRACKS 84
|
||||
|
||||
@ -48,4 +52,6 @@ extern void driveclick_fdrawcmd_detect (void);
|
||||
extern void driveclick_fdrawcmd_seek (int, int);
|
||||
extern void driveclick_fdrawcmd_motor (int, int);
|
||||
extern void driveclick_fdrawcmd_vsync (void);
|
||||
extern int driveclick_pcdrivemask, driveclick_pcdrivenum;
|
||||
extern int driveclick_pcdrivemask, driveclick_pcdrivenum;
|
||||
|
||||
#endif /* UAE_DRIVECLICK_H */
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#ifndef UAE__ENFORCER_H
|
||||
#define UAE__ENFORCER_H
|
||||
#ifndef UAE_ENFORCER_H
|
||||
#define UAE_ENFORCER_H
|
||||
|
||||
int enforcer_enable(int);
|
||||
int enforcer_disable(void);
|
||||
|
||||
extern int enforcermode;
|
||||
|
||||
#endif
|
||||
#endif /* UAE_ENFORCER_H */
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef UAE_EPSONPRINTER_H
|
||||
#define UAE_EPSONPRINTER_H
|
||||
|
||||
#define Bit16u uae_u16
|
||||
#define Bit16s uae_s16
|
||||
#define Bit8u uae_u8
|
||||
@ -24,11 +27,8 @@
|
||||
#define Bits uae_s32
|
||||
#define Bit32u uae_u32
|
||||
|
||||
#if !defined __PRINTER_H
|
||||
#define __PRINTER_H
|
||||
|
||||
#ifndef WINFONT
|
||||
s#include "ft2build.h"
|
||||
#include "ft2build.h"
|
||||
#include FT_FREETYPE_H
|
||||
#endif
|
||||
|
||||
@ -83,6 +83,4 @@ enum Typeface
|
||||
svjittra = 31
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* UAE_EPSONPRINTER_H */
|
||||
|
||||
@ -6,7 +6,14 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_ERSATZ_H
|
||||
#define UAE_ERSATZ_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void init_ersatz_rom (uae_u8 *data);
|
||||
extern void ersatz_chipcopy (void);
|
||||
extern void ersatz_perform (uae_u16);
|
||||
extern void DISK_ersatz_read (int,int, uaecptr);
|
||||
|
||||
#endif /* UAE_ERSATZ_H */
|
||||
|
||||
@ -1,6 +1,3 @@
|
||||
#ifndef EVENTS_H
|
||||
#define EVENTS_H
|
||||
|
||||
/*
|
||||
* UAE - The Un*x Amiga Emulator
|
||||
*
|
||||
@ -12,6 +9,11 @@
|
||||
* Copyright 1995-1998 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_EVENTS_H
|
||||
#define UAE_EVENTS_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#undef EVENT_DEBUG
|
||||
|
||||
#include "machdep/rpt.h"
|
||||
@ -153,5 +155,4 @@ STATIC_INLINE void event2_remevent (int no)
|
||||
eventtab2[no].active = 0;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif /* UAE_EVENTS_H */
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_EXECIO_H
|
||||
#define UAE_EXECIO_H
|
||||
|
||||
#define IOERR_OPENFAIL -1
|
||||
#define IOERR_ABORTED -2
|
||||
@ -115,3 +117,5 @@
|
||||
#define NSCMD_TD_WRITE64 0xc001
|
||||
#define NSCMD_TD_SEEK64 0xc002
|
||||
#define NSCMD_TD_FORMAT64 0xc003
|
||||
|
||||
#endif /* UAE_EXECIO_H */
|
||||
|
||||
@ -6,6 +6,9 @@
|
||||
* Copyright 1996 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_EXECLIB_H
|
||||
#define UAE_EXECLIB_H
|
||||
|
||||
#define CMD_INVALID 0
|
||||
#define CMD_RESET 1
|
||||
#define CMD_READ 2
|
||||
@ -45,3 +48,5 @@
|
||||
#define MEMF_REVERSE (1<<18)
|
||||
#define MEMF_TOTAL (1<<19)
|
||||
#endif
|
||||
|
||||
#endif /* UAE_EXECLIB_H */
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
#ifndef __FDI2RAW_H
|
||||
#define __FDI2RAW_H
|
||||
#ifndef UAE_FDI2RAW_H
|
||||
#define UAE_FDI2RAW_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
//#include "types.h"
|
||||
#include <stdio.h>
|
||||
typedef struct fdi FDI;
|
||||
|
||||
#ifdef __cplusplus
|
||||
@ -25,4 +25,4 @@ extern int fdi2raw_get_write_protect (FDI *);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* UAE_FDI2RAW_H */
|
||||
|
||||
@ -6,8 +6,10 @@
|
||||
* Copyright 1997 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef FILESYS_H
|
||||
#define FILESYS_H
|
||||
#ifndef UAE_FILESYS_H
|
||||
#define UAE_FILESYS_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
struct hardfilehandle;
|
||||
|
||||
@ -156,4 +158,4 @@ extern void getchsgeometry (uae_u64 size, int *pcyl, int *phead, int *psectorspe
|
||||
extern void getchsgeometry_hdf (struct hardfiledata *hfd, uae_u64 size, int *pcyl, int *phead, int *psectorspertrack);
|
||||
extern void getchspgeometry (uae_u64 total, int *pcyl, int *phead, int *psectorspertrack, bool idegeometry);
|
||||
|
||||
#endif /* MEMORY_H */
|
||||
#endif /* UAE_FILESYS_H */
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef NATIVE_FLAGS_X86_H
|
||||
#define NATIVE_FLAGS_X86_H
|
||||
#ifndef UAE_FLAGS_X86_H
|
||||
#define UAE_FLAGS_X86_H
|
||||
|
||||
/* Native integer code conditions */
|
||||
enum {
|
||||
@ -44,4 +44,4 @@ enum {
|
||||
NATIVE_CC_LE = 14
|
||||
};
|
||||
|
||||
#endif /* NATIVE_FLAGS_X86_H */
|
||||
#endif /* UAE_FLAGS_X86_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_FLASHROM_H
|
||||
#define UAE_FLASHROM_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
/* FLASH */
|
||||
|
||||
@ -23,4 +27,4 @@ int eeprom_i2c_set(void *i2c, int line, int level);
|
||||
#define FLASHROM_EVERY_OTHER_BYTE_ODD 2
|
||||
#define FLASHROM_PARALLEL_EEPROM 4
|
||||
|
||||
|
||||
#endif /* UAE_FLASHROM_H */
|
||||
|
||||
@ -9,6 +9,12 @@
|
||||
* Copyright 1999 Sam Jordan
|
||||
*/
|
||||
|
||||
#ifndef UAE_FPP_IEEE_BE_H
|
||||
#define UAE_FPP_IEEE_BE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
|
||||
STATIC_INLINE double to_single (uae_u32 value)
|
||||
{
|
||||
union {
|
||||
@ -62,3 +68,5 @@ STATIC_INLINE void from_double(double src, uae_u32 * wrd1, uae_u32 * wrd2)
|
||||
|
||||
/* Get the rest of the conversion functions defined. */
|
||||
#include "fpp-unknown.h"
|
||||
|
||||
#endif /* UAE_FPP_IEEE_BE_H */
|
||||
|
||||
@ -8,6 +8,11 @@
|
||||
* Copyright 1996 Herman ten Brugge
|
||||
*/
|
||||
|
||||
#ifndef UAE_FPP_UNKNOWN_H
|
||||
#define UAE_FPP_UNKNOWN_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifndef HAVE_to_single
|
||||
STATIC_INLINE double to_single (uae_u32 value)
|
||||
{
|
||||
@ -137,3 +142,5 @@ STATIC_INLINE void from_double(double src, uae_u32 * wrd1, uae_u32 * wrd2)
|
||||
*wrd2 = (uae_u32) (frac * 9007199254740992.0 - tmp * 4294967296.0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* UAE_FPP_UNKNOWN_H */
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
* Copyright 1999 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_FSDB_H
|
||||
#define UAE_FSDB_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifndef FSDB_FILE
|
||||
#define FSDB_FILE _T("_UAEFSDB.___")
|
||||
#endif
|
||||
@ -85,9 +90,9 @@ typedef struct a_inode_struct {
|
||||
uae_u32 uniq;
|
||||
/* For a directory that is being ExNext()ed, the number of child ainos
|
||||
which must be kept locked in core. */
|
||||
unsigned long locked_children;
|
||||
unsigned int locked_children;
|
||||
/* How many ExNext()s are going on in this directory? */
|
||||
unsigned long exnext_count;
|
||||
unsigned int exnext_count;
|
||||
/* AmigaOS locking bits. */
|
||||
int shlock;
|
||||
long db_offset;
|
||||
@ -192,3 +197,5 @@ extern int custom_fsdb_used_as_nname (a_inode *base, const TCHAR *nname);
|
||||
#define MYVOLUMEINFO_CDFS 16
|
||||
|
||||
extern int my_getvolumeinfo (const TCHAR *root);
|
||||
|
||||
#endif /* UAE_FSDB_H */
|
||||
|
||||
@ -1,19 +1,24 @@
|
||||
/* fsusage.h -- declarations for filesystem space usage info
|
||||
Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
|
||||
*
|
||||
* 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, 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. */
|
||||
|
||||
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, or (at your option)
|
||||
any later version.
|
||||
#ifndef UAE_FSUSAGE_H
|
||||
#define UAE_FSUSAGE_H
|
||||
|
||||
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. */
|
||||
#include "uae/types.h"
|
||||
|
||||
/* Space usage statistics for a filesystem. Blocks are 512-byte. */
|
||||
struct fs_usage
|
||||
@ -26,3 +31,5 @@ struct fs_usage
|
||||
};
|
||||
|
||||
int get_fs_usage (const TCHAR *path, const TCHAR *disk, struct fs_usage *fsp);
|
||||
|
||||
#endif /* UAE_FSUSAGE_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_GAYLE_H
|
||||
#define UAE_GAYLE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void gayle_reset (int);
|
||||
extern void gayle_hsync (void);
|
||||
@ -17,4 +21,6 @@ extern int gary_timeout; // non-existing memory access = delay
|
||||
#define PCMCIA_COMMON_START 0x600000
|
||||
#define PCMCIA_COMMON_SIZE 0x400000
|
||||
|
||||
extern void gayle_dataflyer_enable(bool);
|
||||
extern void gayle_dataflyer_enable(bool);
|
||||
|
||||
#endif /* UAE_GAYLE_H */
|
||||
|
||||
@ -7,9 +7,14 @@
|
||||
* Copyright 1996 Alessandro Bissacco
|
||||
*/
|
||||
|
||||
#ifndef UAE_GENBLITTER_H
|
||||
#define UAE_GENBLITTER_H
|
||||
|
||||
struct blitop {
|
||||
const char *s;
|
||||
int used;
|
||||
};
|
||||
|
||||
extern struct blitop blitops[256];
|
||||
|
||||
#endif /* UAE_GENBLITTER_H */
|
||||
|
||||
@ -7,13 +7,15 @@
|
||||
* Copyright 1997 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_GENSOUND_H
|
||||
#define UAE_GENSOUND_H
|
||||
|
||||
extern int sound_available;
|
||||
|
||||
extern void (*sample_handler) (void);
|
||||
/* sample_evtime is in normal Amiga cycles; scaled_sample_evtime is in our
|
||||
event cycles. */
|
||||
extern float scaled_sample_evtime;
|
||||
extern float scaled_sample_evtime_orig;
|
||||
|
||||
/* Determine if we can produce any sound at all. This can be only a guess;
|
||||
* if unsure, say yes. Any call to init_sound may change the value. */
|
||||
@ -28,3 +30,4 @@ extern void sample16s_handler (void);
|
||||
extern void sample16ss_handler (void);
|
||||
extern void sample8s_handler (void);
|
||||
|
||||
#endif /* UAE_GENSOUND_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_GFXFILTER_H
|
||||
#define UAE_GFXFILTER_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifdef GFXFILTER
|
||||
|
||||
@ -88,4 +92,7 @@ uae_u8 *getrtgbuffer (int *widthp, int *heightp, int *pitch, int *depth, uae_u8
|
||||
void freertgbuffer (uae_u8 *dst);
|
||||
|
||||
extern void getrtgfilterrect2 (RECT *sr, RECT *dr, RECT *zr, int dst_width, int dst_height);
|
||||
#endif
|
||||
|
||||
#endif /* GFXFILTER */
|
||||
|
||||
#endif /* UAE_GFXFILTER_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* Copyright 1996 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_GUI_H
|
||||
#define UAE_GUI_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern int gui_init (void);
|
||||
extern int gui_update (void);
|
||||
extern void gui_exit (void);
|
||||
@ -73,13 +78,32 @@ extern void gui_update_gfx (void);
|
||||
void notify_user (int msg);
|
||||
void notify_user_parms (int msg, const TCHAR *parms, ...);
|
||||
int translate_message (int msg, TCHAR *out);
|
||||
|
||||
typedef enum {
|
||||
NUMSG_NEEDEXT2, NUMSG_NOROM, NUMSG_NOROMKEY,
|
||||
NUMSG_KSROMCRCERROR, NUMSG_KSROMREADERROR, NUMSG_NOEXTROM,
|
||||
NUMSG_MODRIP_NOTFOUND, NUMSG_MODRIP_FINISHED, NUMSG_MODRIP_SAVE,
|
||||
NUMSG_KS68EC020, NUMSG_KS68020, NUMSG_KS68030,
|
||||
NUMSG_ROMNEED, NUMSG_EXPROMNEED, NUMSG_NOZLIB, NUMSG_STATEHD,
|
||||
NUMSG_NOCAPS, NUMSG_OLDCAPS, NUMSG_KICKREP, NUMSG_KICKREPNO,
|
||||
NUMSG_KS68030PLUS, NUMSG_NO_PPC, NUMSG_UAEBOOTROM_PPC
|
||||
NUMSG_NEEDEXT2, // 0
|
||||
NUMSG_NOROM,
|
||||
NUMSG_NOROMKEY,
|
||||
NUMSG_KSROMCRCERROR,
|
||||
NUMSG_KSROMREADERROR,
|
||||
NUMSG_NOEXTROM, // 5
|
||||
NUMSG_MODRIP_NOTFOUND,
|
||||
NUMSG_MODRIP_FINISHED,
|
||||
NUMSG_MODRIP_SAVE,
|
||||
NUMSG_KS68EC020,
|
||||
NUMSG_KS68020, // 10
|
||||
NUMSG_KS68030,
|
||||
NUMSG_ROMNEED,
|
||||
NUMSG_EXPROMNEED,
|
||||
NUMSG_NOZLIB,
|
||||
NUMSG_STATEHD, // 15
|
||||
NUMSG_NOCAPS,
|
||||
NUMSG_OLDCAPS,
|
||||
NUMSG_KICKREP,
|
||||
NUMSG_KICKREPNO,
|
||||
NUMSG_KS68030PLUS, // 20
|
||||
NUMSG_NO_PPC,
|
||||
NUMSG_UAEBOOTROM_PPC,
|
||||
NUMSG_LAST
|
||||
} notify_user_msg;
|
||||
|
||||
#endif /* UAE_GUI_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_IDE_H
|
||||
#define UAE_IDE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
/* IDE drive registers */
|
||||
#define IDE_DATA 0x00
|
||||
@ -130,30 +134,32 @@ uae_u8 *ide_save_state(uae_u8 *dst, struct ide_hdf *ide);
|
||||
uae_u8 *ide_restore_state(uae_u8 *src, struct ide_hdf *ide);
|
||||
|
||||
#define IDE_MEMORY_FUNCTIONS(x, y, z) \
|
||||
static void REGPARAM2 x ## _bput(uaecptr addr, uae_u32 b) \
|
||||
void REGPARAM2 x ## _bput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _write_byte(## z, addr, b); \
|
||||
y ## _write_byte(z, addr, b); \
|
||||
} \
|
||||
static void REGPARAM2 x ## _wput(uaecptr addr, uae_u32 b) \
|
||||
void REGPARAM2 x ## _wput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _write_word(## z, addr, b); \
|
||||
y ## _write_word(z, addr, b); \
|
||||
} \
|
||||
static void REGPARAM2 x ## _lput(uaecptr addr, uae_u32 b) \
|
||||
void REGPARAM2 x ## _lput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _write_word(## z, addr, b >> 16); \
|
||||
y ## _write_word(## z, addr + 2, b); \
|
||||
y ## _write_word(z, addr, b >> 16); \
|
||||
y ## _write_word(z, addr + 2, b); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _bget(uaecptr addr) \
|
||||
uae_u32 REGPARAM2 x ## _bget(uaecptr addr) \
|
||||
{ \
|
||||
return y ## _read_byte(## z, addr); \
|
||||
return y ## _read_byte(z, addr); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _wget(uaecptr addr) \
|
||||
uae_u32 REGPARAM2 x ## _wget(uaecptr addr) \
|
||||
{ \
|
||||
return y ## _read_word(## z, addr); \
|
||||
return y ## _read_word(z, addr); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _lget(uaecptr addr) \
|
||||
uae_u32 REGPARAM2 x ## _lget(uaecptr addr) \
|
||||
{ \
|
||||
uae_u32 v = y ## _read_word(## z, addr) << 16; \
|
||||
v |= y ## _read_word(## z, addr + 2); \
|
||||
uae_u32 v = y ## _read_word(z, addr) << 16; \
|
||||
v |= y ## _read_word(z, addr + 2); \
|
||||
return v; \
|
||||
}
|
||||
|
||||
#endif /* UAE_IDE_H */
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
#ifndef UAE_IDECONTROLLERS_H
|
||||
#define UAE_IDECONTROLLERS_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
// Other IDE controllers
|
||||
|
||||
void idecontroller_free(void);
|
||||
@ -45,3 +50,5 @@ addrbank *x86_at_hd_init_2(struct romconfig *rc);
|
||||
void x86_add_at_hd_unit_2(int ch, struct uaedev_config_info *ci, struct romconfig *rc);
|
||||
addrbank *x86_at_hd_init_xt(struct romconfig *rc);
|
||||
void x86_add_at_hd_unit_xt(int ch, struct uaedev_config_info *ci, struct romconfig *rc);
|
||||
|
||||
#endif /* UAE_IDECONTROLLERS_H */
|
||||
|
||||
@ -5,6 +5,11 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef UAE_IDENTIFY_H
|
||||
#define UAE_IDENTIFY_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
struct mem_labels
|
||||
{
|
||||
const TCHAR *name;
|
||||
@ -32,3 +37,4 @@ extern const struct mem_labels int_labels[];
|
||||
extern const struct mem_labels trap_labels[];
|
||||
extern const struct customData custd[];
|
||||
|
||||
#endif /* UAE_IDENTIFY_H */
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
* Copyright 2001-2002 Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_INPUTDEVICE_H
|
||||
#define UAE_INPUTDEVICE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define DIR_LEFT_BIT 0
|
||||
#define DIR_RIGHT_BIT 1
|
||||
#define DIR_UP_BIT 2
|
||||
@ -88,23 +93,23 @@ struct inputevent {
|
||||
#define ID_FLAG_GAMEPORTSCUSTOM_MASK (ID_FLAG_GAMEPORTSCUSTOM1 | ID_FLAG_GAMEPORTSCUSTOM2)
|
||||
#define ID_FLAG_AUTOFIRE_MASK (ID_FLAG_TOGGLE | ID_FLAG_INVERTTOGGLE | ID_FLAG_AUTOFIRE)
|
||||
|
||||
#define ID_FLAG_QUALIFIER1 0x000000100000000
|
||||
#define ID_FLAG_QUALIFIER1_R 0x000000200000000
|
||||
#define ID_FLAG_QUALIFIER2 0x000000400000000
|
||||
#define ID_FLAG_QUALIFIER3 0x000001000000000
|
||||
#define ID_FLAG_QUALIFIER4 0x000004000000000
|
||||
#define ID_FLAG_QUALIFIER5 0x000010000000000
|
||||
#define ID_FLAG_QUALIFIER6 0x000040000000000
|
||||
#define ID_FLAG_QUALIFIER7 0x000100000000000
|
||||
#define ID_FLAG_QUALIFIER8 0x000400000000000
|
||||
#define ID_FLAG_QUALIFIER_SPECIAL 0x001000000000000
|
||||
#define ID_FLAG_QUALIFIER_SPECIAL_R 0x002000000000000
|
||||
#define ID_FLAG_QUALIFIER_SHIFT 0x004000000000000
|
||||
#define ID_FLAG_QUALIFIER_CONTROL 0x010000000000000
|
||||
#define ID_FLAG_QUALIFIER_ALT 0x040000000000000
|
||||
#define ID_FLAG_QUALIFIER_WIN 0x100000000000000
|
||||
#define ID_FLAG_QUALIFIER_MASK 0xfffffff00000000
|
||||
#define ID_FLAG_QUALIFIER_MASK_R 0xaaaaaaa00000000
|
||||
#define ID_FLAG_QUALIFIER1 0x000000100000000ULL
|
||||
#define ID_FLAG_QUALIFIER1_R 0x000000200000000ULL
|
||||
#define ID_FLAG_QUALIFIER2 0x000000400000000ULL
|
||||
#define ID_FLAG_QUALIFIER3 0x000001000000000ULL
|
||||
#define ID_FLAG_QUALIFIER4 0x000004000000000ULL
|
||||
#define ID_FLAG_QUALIFIER5 0x000010000000000ULL
|
||||
#define ID_FLAG_QUALIFIER6 0x000040000000000ULL
|
||||
#define ID_FLAG_QUALIFIER7 0x000100000000000ULL
|
||||
#define ID_FLAG_QUALIFIER8 0x000400000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_SPECIAL 0x001000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_SPECIAL_R 0x002000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_SHIFT 0x004000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_CONTROL 0x010000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_ALT 0x040000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_WIN 0x100000000000000ULL
|
||||
#define ID_FLAG_QUALIFIER_MASK 0xfffffff00000000ULL
|
||||
#define ID_FLAG_QUALIFIER_MASK_R 0xaaaaaaa00000000ULL
|
||||
|
||||
#define ID_FLAG_SAVE_MASK_CONFIG 0x000001ff
|
||||
#define ID_FLAG_SAVE_MASK_QUALIFIERS ID_FLAG_QUALIFIER_MASK
|
||||
@ -126,20 +131,20 @@ struct inputevent {
|
||||
#define IDEV_MAPPED_SET_ONOFF 128
|
||||
#define IDEV_MAPPED_SET_ONOFF_VAL 256
|
||||
|
||||
#define IDEV_MAPPED_QUALIFIER1 0x000000100000000
|
||||
#define IDEV_MAPPED_QUALIFIER2 0x000000400000000
|
||||
#define IDEV_MAPPED_QUALIFIER3 0x000001000000000
|
||||
#define IDEV_MAPPED_QUALIFIER4 0x000004000000000
|
||||
#define IDEV_MAPPED_QUALIFIER5 0x000010000000000
|
||||
#define IDEV_MAPPED_QUALIFIER6 0x000040000000000
|
||||
#define IDEV_MAPPED_QUALIFIER7 0x000100000000000
|
||||
#define IDEV_MAPPED_QUALIFIER8 0x000400000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_SPECIAL 0x001000000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_SHIFT 0x004000000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_CONTROL 0x010000000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_ALT 0x040000000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_WIN 0x100000000000000
|
||||
#define IDEV_MAPPED_QUALIFIER_MASK 0xfffffff00000000
|
||||
#define IDEV_MAPPED_QUALIFIER1 0x000000100000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER2 0x000000400000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER3 0x000001000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER4 0x000004000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER5 0x000010000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER6 0x000040000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER7 0x000100000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER8 0x000400000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_SPECIAL 0x001000000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_SHIFT 0x004000000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_CONTROL 0x010000000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_ALT 0x040000000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_WIN 0x100000000000000ULL
|
||||
#define IDEV_MAPPED_QUALIFIER_MASK 0xfffffff00000000ULL
|
||||
|
||||
#define SET_ONOFF_ON_VALUE 0x7fffff01
|
||||
#define SET_ONOFF_OFF_VALUE 0x7fffff00
|
||||
@ -195,7 +200,7 @@ extern int input_get_default_keyboard (int num);
|
||||
#define DEFEVENT(A, B, C, D, E, F) INPUTEVENT_ ## A,
|
||||
enum inputevents {
|
||||
INPUTEVENT_ZERO,
|
||||
#include "inputevents.def"
|
||||
#include "../inputevents.def"
|
||||
INPUTEVENT_END
|
||||
};
|
||||
#undef DEFEVENT
|
||||
@ -337,3 +342,5 @@ extern void inputdevice_settest (int);
|
||||
extern int inputdevice_testread_count (void);
|
||||
|
||||
extern bool target_can_autoswitchdevice(void);
|
||||
|
||||
#endif /* UAE_INPUTDEVICE_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* Copyright 2010 Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_INPUTRECORD_H
|
||||
#define UAE_INPUTRECORD_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern int inputrecord_debug;
|
||||
|
||||
//#define INPREC_JOYPORT 1
|
||||
@ -53,4 +58,6 @@ extern void inprec_playdebug_cia (uae_u32, uae_u32, uae_u32);
|
||||
extern int inprec_getposition (void);
|
||||
extern void inprec_setposition (int offset, int replaycounter);
|
||||
extern bool inprec_realtime (void);
|
||||
extern void inprec_getstatus (TCHAR*);
|
||||
extern void inprec_getstatus (TCHAR*);
|
||||
|
||||
#endif /* UAE_INPUTRECORD_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_ISOFS_API_H
|
||||
#define UAE_ISOFS_API_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
struct cd_opendir_s;
|
||||
struct cd_openfile_s;
|
||||
@ -30,3 +34,5 @@ void isofs_closefile(struct cd_openfile_s*);
|
||||
uae_s64 isofs_lseek(struct cd_openfile_s*, uae_s64, int);
|
||||
uae_s64 isofs_fsize(struct cd_openfile_s*);
|
||||
uae_s64 isofs_read(struct cd_openfile_s*, void*, unsigned int);
|
||||
|
||||
#endif /* UAE_ISOFS_API_H */
|
||||
|
||||
@ -6,6 +6,9 @@
|
||||
* (c) 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_KEYBOARD_H
|
||||
#define UAE_KEYBOARD_H
|
||||
|
||||
/* First, two dummies */
|
||||
#define AK_mousestuff 0x100
|
||||
#define AK_inhibit 0x101
|
||||
@ -174,4 +177,6 @@ enum aks { AKS_ENTERGUI = 0x200, AKS_SCREENSHOT_FILE, AKS_SCREENSHOT_CLIPBOARD,
|
||||
|
||||
#define AKS_FIRST AKS_ENTERGUI
|
||||
|
||||
extern int target_checkcapslock (int, int *);
|
||||
extern int target_checkcapslock (int, int *);
|
||||
|
||||
#endif /* UAE_KEYBOARD_H */
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
* (c) 1996 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_KEYBUF_H
|
||||
#define UAE_KEYBUF_H
|
||||
|
||||
extern int get_next_key (void);
|
||||
extern int keys_available (void);
|
||||
extern int record_key (int);
|
||||
@ -14,3 +17,5 @@ extern int record_key_direct (int);
|
||||
extern void keybuf_init (void);
|
||||
extern int getcapslockstate (void);
|
||||
extern void setcapslockstate (int);
|
||||
|
||||
#endif /* UAE_KEYBUF_H */
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
* Copyright 2013 Frode SOlheim
|
||||
*/
|
||||
|
||||
#ifndef LUASCRIPT_H_
|
||||
#define LUASCRIPT_H_
|
||||
#ifndef UAE_LUASCRIPT_H
|
||||
#define UAE_LUASCRIPT_H
|
||||
|
||||
#ifdef WITH_LUA
|
||||
#include <lauxlib.h>
|
||||
@ -21,6 +21,6 @@ void uae_lua_run_handler(const char *name);
|
||||
void uae_lua_aquire_lock();
|
||||
void uae_lua_release_lock();
|
||||
|
||||
#endif // WITH_LUA
|
||||
#endif /* WITH_LUA */
|
||||
|
||||
#endif // LUASCRIPT_H_
|
||||
#endif /* UAE_LUASCRIPT_H */
|
||||
|
||||
@ -6,6 +6,9 @@
|
||||
* (c) 1996 Ernesto Corvi
|
||||
*/
|
||||
|
||||
#ifndef UAE_MACKBD_H
|
||||
#define UAE_MACKBD_H
|
||||
|
||||
#define kUpArrowKeyMap 0x7E /* key map offset for up arrow */
|
||||
#define kDownArrowKeyMap 0x7D /* key map offset for down arrow */
|
||||
#define kRightArrowKeyMap 0x7C /* key map offset for right arrow */
|
||||
@ -107,3 +110,5 @@
|
||||
#define kKP7KeyMap 0x59
|
||||
#define kKP8KeyMap 0x5B
|
||||
#define kKP9KeyMap 0x5C
|
||||
|
||||
#endif /* UAE_MACKBD_H */
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
* Copyright 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef MEMORY_H
|
||||
#define MEMORY_H
|
||||
#ifndef UAE_MEMORY_H
|
||||
#define UAE_MEMORY_H
|
||||
|
||||
extern void memory_reset (void);
|
||||
extern void a1000_reset (void);
|
||||
@ -281,16 +281,28 @@ static uae_u8 *REGPARAM2 name ## _xlate (uaecptr addr) \
|
||||
#endif
|
||||
|
||||
#define DECLARE_MEMORY_FUNCTIONS(name) \
|
||||
static uae_u32 REGPARAM3 name ## _lget (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 name ## _lgeti (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 name ## _wget (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 name ## _wgeti (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 name ## _bget (uaecptr) REGPARAM; \
|
||||
static void REGPARAM3 name ## _lput (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 name ## _wput (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 name ## _bput (uaecptr, uae_u32) REGPARAM; \
|
||||
static int REGPARAM3 name ## _check (uaecptr addr, uae_u32 size) REGPARAM; \
|
||||
static uae_u8 *REGPARAM3 name ## _xlate (uaecptr addr) REGPARAM;
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _lget) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _lgeti) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _wget) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _wgeti) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _bget) (uaecptr) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _lput) (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _wput) (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _bput) (uaecptr, uae_u32) REGPARAM; \
|
||||
static int REGPARAM3 NOWARN_UNUSED(name ## _check) (uaecptr addr, uae_u32 size) REGPARAM; \
|
||||
static uae_u8 *REGPARAM3 NOWARN_UNUSED(name ## _xlate) (uaecptr addr) REGPARAM;
|
||||
|
||||
#define DECLARE_MEMORY_FUNCTIONS_WITH_SUFFIX(name, suffix) \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _lget_ ## suffix) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _lgeti_ ## suffix) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _wget_ ## suffix) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _wgeti_ ## suffix) (uaecptr) REGPARAM; \
|
||||
static uae_u32 REGPARAM3 NOWARN_UNUSED(name ## _bget_ ## suffix) (uaecptr) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _lput_ ## suffix) (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _wput_ ## suffix) (uaecptr, uae_u32) REGPARAM; \
|
||||
static void REGPARAM3 NOWARN_UNUSED(name ## _bput_ ## suffix) (uaecptr, uae_u32) REGPARAM; \
|
||||
static int REGPARAM3 NOWARN_UNUSED(name ## _check_ ## suffix) (uaecptr addr, uae_u32 size) REGPARAM; \
|
||||
static uae_u8 *REGPARAM3 NOWARN_UNUSED(name ## _xlate_ ## suffix) (uaecptr addr) REGPARAM;
|
||||
|
||||
#define MEMORY_FUNCTIONS(name) \
|
||||
MEMORY_LGET(name, 0); \
|
||||
@ -437,6 +449,9 @@ extern void reload_roms(void);
|
||||
|
||||
STATIC_INLINE uae_u32 get_long (uaecptr addr)
|
||||
{
|
||||
#if 0
|
||||
printf("get_long %08x -> %08x\n", addr, longget(addr));
|
||||
#endif
|
||||
return longget (addr);
|
||||
}
|
||||
STATIC_INLINE uae_u32 get_word (uaecptr addr)
|
||||
@ -583,6 +598,8 @@ typedef struct shmpiece_reg {
|
||||
|
||||
extern shmpiece *shm_start;
|
||||
|
||||
extern uae_u8* natmem_offset;
|
||||
|
||||
#endif
|
||||
|
||||
extern bool mapped_malloc (addrbank*);
|
||||
@ -599,7 +616,7 @@ extern void memcpyah_safe (uae_u8 *dst, uaecptr src, int size);
|
||||
extern void memcpyah (uae_u8 *dst, uaecptr src, int size);
|
||||
|
||||
extern uae_s32 getz2size (struct uae_prefs *p);
|
||||
extern ULONG getz2endaddr (void);
|
||||
uae_u32 getz2endaddr (void);
|
||||
|
||||
#define UAE_MEMORY_REGIONS_MAX 64
|
||||
#define UAE_MEMORY_REGION_NAME_LENGTH 64
|
||||
@ -612,7 +629,7 @@ extern ULONG getz2endaddr (void);
|
||||
|
||||
typedef struct UaeMemoryRegion {
|
||||
uaecptr start;
|
||||
int size;
|
||||
uae_u32 size;
|
||||
TCHAR name[UAE_MEMORY_REGION_NAME_LENGTH];
|
||||
TCHAR rom_name[UAE_MEMORY_REGION_NAME_LENGTH];
|
||||
uaecptr alias;
|
||||
@ -627,4 +644,4 @@ typedef struct UaeMemoryMap {
|
||||
|
||||
void uae_memory_map(UaeMemoryMap *map);
|
||||
|
||||
#endif /* MEMORY_H */
|
||||
#endif /* UAE_MEMORY_H */
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
#ifndef UAE_MMU_COMMON_H
|
||||
#define UAE_MMU_COMMON_H
|
||||
|
||||
#ifndef MMU_COMMON_H
|
||||
#define MMU_COMMON_H
|
||||
#include "uae/types.h"
|
||||
#include "uae/likely.h"
|
||||
|
||||
#define MMUDEBUG 0
|
||||
#define MMUINSDEBUG 0
|
||||
#define MMUDEBUGMISC 0
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define unlikely(x) x
|
||||
#define likely(x) x
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
struct m68k_exception {
|
||||
int prb;
|
||||
@ -156,4 +153,4 @@ extern void(*x_phys_put_byte)(uaecptr, uae_u32);
|
||||
extern void(*x_phys_put_word)(uaecptr, uae_u32);
|
||||
extern void(*x_phys_put_long)(uaecptr, uae_u32);
|
||||
|
||||
#endif
|
||||
#endif /* UAE_MMU_COMMON_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_MODULERIPPER_H
|
||||
#define UAE_MODULERIPPER_H
|
||||
|
||||
extern "C" int prowizard_search (unsigned char *in_data, int in_size);
|
||||
extern void moduleripper (void);
|
||||
|
||||
#endif /* UAE_MODULERIPPER_H */
|
||||
|
||||
@ -10,8 +10,11 @@
|
||||
* and some of it needs thread support.
|
||||
*/
|
||||
|
||||
#include "native2amiga_api.h"
|
||||
#ifndef UAE_NATIVE2AMIGA_H
|
||||
#define UAE_NATIVE2AMIGA_H
|
||||
|
||||
#include "uae/types.h"
|
||||
#include "native2amiga_api.h"
|
||||
#include "traps.h"
|
||||
|
||||
/*
|
||||
@ -52,3 +55,5 @@ STATIC_INLINE void do_uae_int_requested (void)
|
||||
uae_int_requested |= 1;
|
||||
set_uae_int_flag ();
|
||||
}
|
||||
|
||||
#endif /* UAE_NATIVE2AMIGA_H */
|
||||
|
||||
@ -3,6 +3,12 @@
|
||||
* Amiga counterpart, but can be called in situation where calling
|
||||
* the exec.library functions is impossible.
|
||||
*/
|
||||
|
||||
#ifndef UAE_NATIVE2AMIGA_API_H
|
||||
#define UAE_NATIVE2AMIGA_API_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#ifdef SUPPORT_THREADS
|
||||
void uae_Cause(uaecptr interrupt);
|
||||
void uae_ReplyMsg(uaecptr msg);
|
||||
@ -11,4 +17,6 @@ void uae_Signal(uaecptr task, uae_u32 mask);
|
||||
void uae_NotificationHack(uaecptr, uaecptr);
|
||||
#endif
|
||||
void uae_NewList(uaecptr list);
|
||||
int native2amiga_isfree (void);
|
||||
int native2amiga_isfree (void);
|
||||
|
||||
#endif /* UAE_NATIVE2AMIGA_API_H */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#ifndef UAE_NCR9X_SCSI_H
|
||||
#define UAE_NCR9X_SCSI_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void ncr9x_init(void);
|
||||
extern void ncr9x_free(void);
|
||||
@ -40,3 +43,4 @@ void ncr_masoboshi_autoconfig_init(struct romconfig*, uaecptr);
|
||||
#define CYBERSTORM_MK1_DMA_OFFSET 0xf800
|
||||
#define CYBERSTORM_MK1_JUMPER_OFFSET 0xfc02
|
||||
|
||||
#endif /* UAE_NCR9X_SCSI_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_NCR_SCSI_H
|
||||
#define UAE_NCR_SCSI_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
void ncr710_io_bput_a4000t(uaecptr, uae_u32);
|
||||
uae_u32 ncr710_io_bget_a4000t(uaecptr);
|
||||
@ -28,3 +32,4 @@ extern void blizzardppc_add_scsi_unit(int ch, struct uaedev_config_info *ci, str
|
||||
extern void a4091_add_scsi_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc);
|
||||
extern void wildfire_add_scsi_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc);
|
||||
|
||||
#endif /* UAE_NCR_SCSI_H */
|
||||
|
||||
@ -6,10 +6,13 @@
|
||||
* Copyright 1995 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_NEWCPU_H
|
||||
#define UAE_NEWCPU_H
|
||||
|
||||
#include "uae/types.h"
|
||||
#include "readcpu.h"
|
||||
#include "machdep/m68k.h"
|
||||
#include "events.h"
|
||||
|
||||
#ifdef WITH_SOFTFLOAT
|
||||
#include <softfloat.h>
|
||||
#endif
|
||||
@ -650,11 +653,11 @@ extern cpuop_func *cpufunctbl[65536] ASM_SYM_FOR_FUNC ("cpufunctbl");
|
||||
extern void flush_icache(uaecptr, int);
|
||||
extern void flush_icache_hard(uaecptr, int);
|
||||
extern void compemu_reset(void);
|
||||
extern bool check_prefs_changed_comp (void);
|
||||
#else
|
||||
#define flush_icache(uaecptr, int) do {} while (0)
|
||||
#define flush_icache_hard(uaecptr, int) do {} while (0)
|
||||
#endif
|
||||
bool check_prefs_changed_comp (void);
|
||||
extern void flush_dcache (uaecptr, int);
|
||||
extern void flush_mmu (uaecptr, int);
|
||||
|
||||
@ -686,3 +689,5 @@ void cpu_semaphore_get(void);
|
||||
void cpu_semaphore_release(void);
|
||||
bool execute_other_cpu(int until);
|
||||
void execute_other_cpu_single(void);
|
||||
|
||||
#endif /* UAE_NEWCPU_H */
|
||||
|
||||
@ -10,6 +10,8 @@
|
||||
#ifndef UAE_OPTIONS_H
|
||||
#define UAE_OPTIONS_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define UAEMAJOR 3
|
||||
#define UAEMINOR 2
|
||||
#define UAESUBREV 0
|
||||
@ -676,7 +678,7 @@ struct uae_prefs {
|
||||
bool win32_filesystem_mangle_reserved_names;
|
||||
bool right_control_is_right_win_key;
|
||||
#ifdef WITH_SLIRP
|
||||
struct slirp_redir slirp_redirs[MAX_SLIRP_REDIRS];
|
||||
struct slirp_redir slirp_redirs[MAX_SLIRP_REDIRS];
|
||||
#endif
|
||||
int statecapturerate, statecapturebuffersize;
|
||||
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* Copyright 1996 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_OSEMU_H
|
||||
#define UAE_OSEMU_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
STATIC_INLINE char *raddr(uaecptr p)
|
||||
{
|
||||
return p == 0 ? NULL : (char *)get_real_address (p);
|
||||
@ -17,3 +22,4 @@ extern void gfxlib_install(void);
|
||||
|
||||
extern int GFX_WritePixel(uaecptr rp, int x, int y);
|
||||
|
||||
#endif /* UAE_OSEMU_H */
|
||||
|
||||
@ -1,5 +1,2 @@
|
||||
#ifdef _MSC_VER
|
||||
#define PACKED
|
||||
#pragma pack(push,1)
|
||||
#endif
|
||||
|
||||
|
||||
@ -1,7 +1,13 @@
|
||||
#ifndef UAE_PARALLEL_H
|
||||
#define UAE_PARALLEL_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern int isprinter (void);
|
||||
extern void doprinter (uae_u8);
|
||||
extern void flushprinter (void);
|
||||
extern void closeprinter (void);
|
||||
extern int isprinteropen (void);
|
||||
extern void initparallel (void);
|
||||
extern void initparallel (void);
|
||||
|
||||
#endif /* UAE_PARALLEL_H */
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
#ifndef UAE_PCI_H
|
||||
#define UAE_PCI_H
|
||||
|
||||
extern void pci_free(void);
|
||||
extern void pci_reset(void);
|
||||
@ -11,3 +13,5 @@ extern addrbank *cbvision_init(struct romconfig *rc);;
|
||||
extern addrbank *grex_init(struct romconfig *rc);
|
||||
extern addrbank *mediator_init(struct romconfig *rc);
|
||||
extern addrbank *mediator_init2(struct romconfig *rc);
|
||||
|
||||
#endif /* UAE_PCI_H */
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
#ifndef UAE_PCI_HW_H
|
||||
#define UAE_PCI_HW_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define MAX_PCI_BOARDS 6
|
||||
#define MAX_PCI_BARS 7
|
||||
@ -120,3 +123,5 @@ extern const struct pci_board es1370_pci_board;
|
||||
extern const struct pci_board fm801_pci_board;
|
||||
extern const struct pci_board fm801_pci_board_func1;
|
||||
extern const struct pci_board solo1_pci_board;
|
||||
|
||||
#endif /* UAE_PCI_HW_H */
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
#ifndef UAE_PICASSO96_H
|
||||
#define UAE_PICASSO96_H
|
||||
|
||||
#include "uae/types.h"
|
||||
#include "traps.h"
|
||||
|
||||
void picasso96_alloc (TrapContext* ctx);
|
||||
uae_u32 picasso_demux (uae_u32 arg, TrapContext *ctx);
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
@ -585,3 +593,5 @@ extern int p96refresh_active;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* UAE_PICASSO96_H */
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#ifndef READCPU_H
|
||||
#define READCPU_H
|
||||
#ifndef UAE_READCPU_H
|
||||
#define UAE_READCPU_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
ENUMDECL {
|
||||
Dreg, Areg, Aind, Aipi, Apdi, Ad16, Ad8r,
|
||||
@ -114,4 +116,4 @@ extern void do_merges (void);
|
||||
extern int get_no_mismatches (void);
|
||||
extern int nr_cpuop_funcs;
|
||||
|
||||
#endif /* READCPU_H */
|
||||
#endif /* UAE_READCPU_H */
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
#ifndef UAE_RTGMODES_H
|
||||
#define UAE_RTGMODES_H
|
||||
|
||||
/* Types for RGBFormat used */
|
||||
typedef enum {
|
||||
RGBFB_NONE, /* no valid RGB format (should not happen) */
|
||||
@ -63,3 +66,5 @@ typedef enum {
|
||||
|
||||
#define RGBFB_PLANAR RGBFB_NONE
|
||||
#define RGBFB_CHUNKY RGBFB_CLUT
|
||||
|
||||
#endif /* UAE_RTGMODES_H */
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
#ifndef UAE_SAMPLER_H
|
||||
#define UAE_SAMPLER_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern uae_u8 sampler_getsample (int);
|
||||
extern int sampler_init (void);
|
||||
extern void sampler_free (void);
|
||||
extern void sampler_vsync (void);
|
||||
|
||||
#endif /* UAE_SAMPLER_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* (c) 2007 Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_SANA2_H
|
||||
#define UAE_SANA2_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define MAX_TOTAL_NET_DEVICES 10
|
||||
|
||||
uaecptr netdev_startup (uaecptr resaddr);
|
||||
@ -14,3 +19,5 @@ void netdev_reset (void);
|
||||
void netdev_start_threads (void);
|
||||
|
||||
extern int log_net;
|
||||
|
||||
#endif /* UAE_SANA2_H */
|
||||
|
||||
@ -6,6 +6,10 @@
|
||||
* (c) 1999-2001 Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_SAVESTATE_H
|
||||
#define UAE_SAVESTATE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
/* functions to save byte,word or long word
|
||||
* independent of CPU's endianess */
|
||||
@ -248,3 +252,5 @@ extern int savestate_dorewind (int);
|
||||
extern void savestate_listrewind (void);
|
||||
extern void statefile_save_recording (const TCHAR*);
|
||||
extern void savestate_capture_request (void);
|
||||
|
||||
#endif /* UAE_SAVESTATE_H */
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
#ifndef UAE_SCP_H
|
||||
#define UAE_SCP_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
int scp_open(struct zfile *zf, int drv, int *num_tracks);
|
||||
void scp_close(int drv);
|
||||
int scp_loadtrack(
|
||||
@ -7,3 +12,5 @@ int scp_loadtrack(
|
||||
void scp_loadrevolution(
|
||||
uae_u16 *mfmbuf, int drv, uae_u16 *tracktiming,
|
||||
int *tracklength);
|
||||
|
||||
#endif /* UAE_SCP_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_SCSI_H
|
||||
#define UAE_SCSI_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define SCSI_DEFAULT_DATA_BUFFER_SIZE (256 * 512)
|
||||
|
||||
@ -126,27 +130,27 @@ void scsi_addnative(struct scsi_data **sd);
|
||||
#define SCSI_MEMORY_FUNCTIONS(x, y, z) \
|
||||
static void REGPARAM2 x ## _bput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _bput(& ## z, addr, b); \
|
||||
y ## _bput(&z, addr, b); \
|
||||
} \
|
||||
static void REGPARAM2 x ## _wput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _wput(& ## z, addr, b); \
|
||||
y ## _wput(&z, addr, b); \
|
||||
} \
|
||||
static void REGPARAM2 x ## _lput(uaecptr addr, uae_u32 b) \
|
||||
{ \
|
||||
y ## _lput(& ## z, addr, b); \
|
||||
y ## _lput(&z, addr, b); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _bget(uaecptr addr) \
|
||||
{ \
|
||||
return y ## _bget(& ## z, addr); \
|
||||
return y ## _bget(&z, addr); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _wget(uaecptr addr) \
|
||||
{ \
|
||||
return y ## _wget(& ## z, addr); \
|
||||
return y ## _wget(&z, addr); \
|
||||
} \
|
||||
static uae_u32 REGPARAM2 x ## _lget(uaecptr addr) \
|
||||
{ \
|
||||
return y ## _lget(& ## z, addr); \
|
||||
return y ## _lget(&z, addr); \
|
||||
}
|
||||
|
||||
void soft_scsi_put(uaecptr addr, int size, uae_u32 v);
|
||||
@ -237,3 +241,5 @@ void x86_xt_hd_bput(int, uae_u8);
|
||||
uae_u8 x86_xt_hd_bget(int);
|
||||
addrbank *x86_xt_hd_init(struct romconfig *rc);
|
||||
void x86_add_xt_hd_unit(int ch, struct uaedev_config_info *ci, struct romconfig *rc);
|
||||
|
||||
#endif /* UAE_SCSI_H */
|
||||
|
||||
@ -8,6 +8,11 @@
|
||||
* (c) 2001-2005 Toni Wilen
|
||||
*/
|
||||
|
||||
#ifndef UAE_SCSIDEV_H
|
||||
#define UAE_SCSIDEV_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
uaecptr scsidev_startup (uaecptr resaddr);
|
||||
void scsidev_install (void);
|
||||
void scsidev_reset (void);
|
||||
@ -25,4 +30,6 @@ extern int log_scsi;
|
||||
#define UAESCSI_SPTI 1
|
||||
#define UAESCSI_SPTISCAN 2
|
||||
#define UAESCSI_LAST 2
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* UAE_SCSIDEV_H */
|
||||
|
||||
@ -7,6 +7,11 @@
|
||||
* Copyright 1997 Christian Schmitt <schmitt@freiburg.linux.de>
|
||||
*/
|
||||
|
||||
#ifndef UAE_SERIAL_H
|
||||
#define UAE_SERIAL_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void serial_init (void);
|
||||
extern void serial_exit (void);
|
||||
extern void serial_dtr_off (void);
|
||||
@ -29,7 +34,7 @@ extern void serial_flush_buffer (void);
|
||||
extern void serial_hsynchandler (void);
|
||||
extern void serial_check_irq (void);
|
||||
|
||||
extern int uaeser_getdatalenght (void);
|
||||
extern int uaeser_getdatalength (void);
|
||||
extern int uaeser_getbytespending (void*);
|
||||
extern int uaeser_open (void*, void*, int);
|
||||
extern void uaeser_close (void*);
|
||||
@ -47,3 +52,5 @@ extern int enet_readseravail (void);
|
||||
extern int enet_readser (uae_u16 *buffer);
|
||||
extern int enet_open (TCHAR *name);
|
||||
extern void enet_close (void);
|
||||
|
||||
#endif /* UAE_SERIAL_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_SNDBOARD_H
|
||||
#define UAE_SNDBOARD_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
addrbank *sndboard_init(int devnum);
|
||||
void sndboard_free(void);
|
||||
@ -8,3 +12,4 @@ void update_sndboard_sound(double);
|
||||
void sndboard_reset(void);
|
||||
void sndboard_ext_volume(void);
|
||||
|
||||
#endif /* UAE_SNDBOARD_H */
|
||||
|
||||
@ -1,7 +1,13 @@
|
||||
#ifndef UAE_SPECIALMONITORS_H
|
||||
#define UAE_SPECIALMONITORS_H
|
||||
|
||||
bool emulate_specialmonitors (struct vidbuffer*, struct vidbuffer*);
|
||||
#include "memory.h"
|
||||
|
||||
bool emulate_specialmonitors(struct vidbuffer *src, struct vidbuffer *dst);
|
||||
void specialmonitor_store_fmode(int vpos, int hpos, uae_u16 fmode);
|
||||
void specialmonitor_reset(void);
|
||||
bool specialmonitor_need_genlock(void);
|
||||
addrbank *specialmonitor_autoconfig_init(int devnum);
|
||||
bool emulate_genlock(struct vidbuffer*, struct vidbuffer*);
|
||||
|
||||
#endif /* UAE_SPECIALMONITORS_H */
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ifndef UAE_STATUSLINE_H
|
||||
#define UAE_STATUSLINE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
#define TD_PADX 4
|
||||
#define TD_PADY 2
|
||||
#define TD_WIDTH 30
|
||||
@ -39,4 +41,4 @@ extern void statusline_updated(void);
|
||||
extern bool has_statusline_updated(void);
|
||||
extern const TCHAR *statusline_fetch(void);
|
||||
|
||||
#endif // UAE_STATUSLINE_H
|
||||
#endif /* UAE_STATUSLINE_H */
|
||||
|
||||
@ -14,8 +14,13 @@
|
||||
*
|
||||
* Copyright 1996, 1997 Bernd Schmidt
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
#include <string>
|
||||
using namespace std;
|
||||
#else
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
@ -282,8 +287,11 @@ extern void to_upper (TCHAR *s, int len);
|
||||
#define DONT_HAVE_POSIX
|
||||
#endif
|
||||
|
||||
#if defined _WIN32
|
||||
#if !defined(FSUAE) && defined _WIN32
|
||||
|
||||
//#ifdef FSUAE
|
||||
//#error _WIN32 should not be defined here
|
||||
//#endif
|
||||
#if defined __WATCOMC__
|
||||
|
||||
#define O_NDELAY 0
|
||||
@ -294,9 +302,22 @@ extern void to_upper (TCHAR *s, int len);
|
||||
|
||||
#elif defined __MINGW32__
|
||||
|
||||
#include <winsock.h>
|
||||
|
||||
#define O_NDELAY 0
|
||||
|
||||
#define FILEFLAG_DIR 0x1
|
||||
#define FILEFLAG_ARCHIVE 0x2
|
||||
#define FILEFLAG_WRITE 0x4
|
||||
#define FILEFLAG_READ 0x8
|
||||
#define FILEFLAG_EXECUTE 0x10
|
||||
#define FILEFLAG_SCRIPT 0x20
|
||||
#define FILEFLAG_PURE 0x40
|
||||
|
||||
#define mkdir(a,b) mkdir(a)
|
||||
|
||||
#include "uae/regparam.h"
|
||||
|
||||
#elif defined _MSC_VER
|
||||
|
||||
#ifdef HAVE_GETTIMEOFDAY
|
||||
@ -443,8 +464,8 @@ extern void mallocemu_free (void *ptr);
|
||||
#endif
|
||||
|
||||
#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 6
|
||||
extern void write_log (const TCHAR *, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
extern void write_log (char *, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
extern void write_log (const TCHAR *, ...);
|
||||
extern void write_log (const char *, ...) __attribute__ ((format (printf, 1, 2)));
|
||||
#else
|
||||
extern void write_log (const TCHAR *, ...);
|
||||
extern void write_log (const char *, ...);
|
||||
@ -492,7 +513,6 @@ extern void log_close (FILE *f);
|
||||
#define NORETURN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Every Amiga hardware clock cycle takes this many "virtual" cycles. This
|
||||
used to be hardcoded as 1, but using higher values allows us to time some
|
||||
stuff more precisely.
|
||||
@ -538,8 +558,6 @@ extern void log_close (FILE *f);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
|
||||
#define xmalloc(T, N) malloc(sizeof (T) * (N))
|
||||
@ -563,3 +581,11 @@ extern void xfree (const void*);
|
||||
#endif
|
||||
|
||||
#define DBLEQU(f, i) (abs ((f) - (i)) < 0.000001)
|
||||
|
||||
#ifdef HAVE_VAR_ATTRIBUTE_UNUSED
|
||||
#define NOWARN_UNUSED(x) __attribute__((unused)) x
|
||||
#else
|
||||
#define NOWARN_UNUSED(x) x
|
||||
#endif
|
||||
|
||||
#endif /* UAE_SYSDEPS_H */
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
#ifndef UAE_TABLETLIBRARY_H
|
||||
#define UAE_TABLETLIBRARY_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
uaecptr tabletlib_startup (uaecptr resaddr);
|
||||
void tabletlib_install (void);
|
||||
@ -6,3 +10,5 @@ extern void tabletlib_tablet (int x, int y, int z,
|
||||
int pressure, int maxpressure, uae_u32 buttonbits, int inproximity,
|
||||
int ax, int ay, int az);
|
||||
extern void tabletlib_tablet_info (int maxx, int maxy, int maxz, int maxax, int maxay, int maxaz, int xres, int yres);
|
||||
|
||||
#endif /* UAE_TABLETLIBRARY_H */
|
||||
|
||||
@ -10,8 +10,10 @@
|
||||
* Copyright 1996 Ed Hanway
|
||||
*/
|
||||
|
||||
#ifndef TRAPS_H
|
||||
#define TRAPS_H
|
||||
#ifndef UAE_TRAPS_H
|
||||
#define UAE_TRAPS_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
/*
|
||||
* Data passed to a trap handler
|
||||
@ -55,4 +57,4 @@ void init_extended_traps (void);
|
||||
#define deftrap2(f, mode, str) define_trap((f), (mode), (str))
|
||||
#define deftrapres(f, mode, str) define_trap((f), (mode | TRAPFLAG_UAERES), (str))
|
||||
|
||||
#endif
|
||||
#endif /* UAE_TRAPS_H */
|
||||
|
||||
@ -6,6 +6,11 @@
|
||||
* Copyright 1996 Bernd Schmidt
|
||||
*/
|
||||
|
||||
#ifndef UAE_UAE_H
|
||||
#define UAE_UAE_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
extern void do_start_program (void);
|
||||
extern void start_program (void);
|
||||
extern void leave_program (void);
|
||||
@ -75,3 +80,10 @@ extern uae_u32 uaerand (void);
|
||||
extern uae_u32 uaesrand (uae_u32 seed);
|
||||
extern uae_u32 uaerandgetseed (void);
|
||||
|
||||
/* the following prototypes should probably be moved somewhere else */
|
||||
|
||||
int get_guid_target (uae_u8 *out);
|
||||
void filesys_addexternals (void);
|
||||
void jit_abort (const TCHAR *format,...);
|
||||
|
||||
#endif /* UAE_UAE_H */
|
||||
|
||||
@ -21,4 +21,6 @@
|
||||
#define UAE_PRINTF_FORMAT(f, a)
|
||||
#endif
|
||||
|
||||
#define UAE_WPRINTF_FORMAT(f, a)
|
||||
|
||||
#endif /* UAE_ATTRIBUTES_H */
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
#ifndef UAE_CDROM_H
|
||||
#define UAE_CDROM_H
|
||||
|
||||
#include "uae/types.h"
|
||||
|
||||
void encode_l2(uae_u8 *p, int address);
|
||||
|
||||
#endif /* UAE_CDROM_H */
|
||||
|
||||
@ -17,6 +17,8 @@
|
||||
#define UAE_DLHANDLE void *
|
||||
#endif
|
||||
|
||||
/* General loadable module support */
|
||||
|
||||
UAE_DLHANDLE uae_dlopen(const TCHAR *path);
|
||||
void *uae_dlsym(UAE_DLHANDLE handle, const char *symbol);
|
||||
void uae_dlclose(UAE_DLHANDLE handle);
|
||||
|
||||
16
include/uae/likely.h
Normal file
16
include/uae/likely.h
Normal file
@ -0,0 +1,16 @@
|
||||
#ifndef UAE_LIKELY_H
|
||||
#define UAE_LIKELY_H
|
||||
|
||||
#ifdef HAVE___BUILTIN_EXPECT
|
||||
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
#define unlikely(x) __builtin_expect(!!(x), 0)
|
||||
|
||||
#else
|
||||
|
||||
#define likely(x) x
|
||||
#define unlikely(x) x
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* UAE_LIKELY_H */
|
||||
@ -6,8 +6,8 @@
|
||||
* See the file 'COPYING' for full license text.
|
||||
*/
|
||||
|
||||
#ifndef UAE_LOGGING_H
|
||||
#define UAE_LOGGING_H
|
||||
#ifndef UAE_LOG_H
|
||||
#define UAE_LOG_H
|
||||
|
||||
/* This file is intended to be included by external libraries as well,
|
||||
* so don't pull in too much UAE-specific stuff. */
|
||||
@ -47,6 +47,10 @@ void uae_fatal(const char *format, ...) UAE_PRINTF_FORMAT(1, 2);
|
||||
|
||||
/* Helpers to log use of stubbed functions */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
#define UAE_LOG_STUB(format, ...) \
|
||||
{ \
|
||||
uae_log(" -- stub -- %s " format "\n", __func__, ##__VA_ARGS__); \
|
||||
@ -75,7 +79,7 @@ void uae_fatal(const char *format, ...) UAE_PRINTF_FORMAT(1, 2);
|
||||
|
||||
void write_log (const char *, ...) UAE_PRINTF_FORMAT(1, 2);
|
||||
#if SIZEOF_TCHAR != 1
|
||||
void write_log (const TCHAR *, ...) UAE_PRINTF_FORMAT(1, 2);
|
||||
void write_log (const TCHAR *, ...) UAE_WPRINTF_FORMAT(1, 2);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@ -91,4 +95,4 @@ void write_log (const TCHAR *, ...) UAE_PRINTF_FORMAT(1, 2);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* UAE_LOGGING_H */
|
||||
#endif /* UAE_LOG_H */
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
#ifdef UAE
|
||||
|
||||
void uae_ppc_get_model(const TCHAR **model, uint32_t *hid1);
|
||||
|
||||
void uae_ppc_doze(void);
|
||||
void uae_ppc_crash(void);
|
||||
void uae_ppc_cpu_reboot(void);
|
||||
@ -94,7 +95,7 @@ typedef struct PPCMemoryRegion {
|
||||
uint32_t start;
|
||||
uint32_t size;
|
||||
void *memory;
|
||||
const char *name;
|
||||
char *name;
|
||||
uint32_t alias;
|
||||
} PPCMemoryRegion;
|
||||
|
||||
@ -120,6 +121,7 @@ void PPCCALL ppc_cpu_reset(void);
|
||||
//int PPCCALL ppc_cpu_get_state();
|
||||
bool PPCCALL ppc_cpu_check_state(int state);
|
||||
void PPCCALL ppc_cpu_set_state(int state);
|
||||
|
||||
/* Other PPC defines */
|
||||
|
||||
#define PPC_IMPLEMENTATION_AUTO 0
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user