Re-worked the MVR framework to allow for custom RTC chips. Fixes EuroPC and Tosh T1000/1200.
Cleaned up and re-integrated the Toshiba T1000/T1200 machines. Moved LZF files to floppy/, as that is the only module using them. Various bugfixes and cleanups here and there.
This commit is contained in:
21
src/plat.h
21
src/plat.h
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Define the various platform support functions.
|
||||
*
|
||||
* Version: @(#)plat.h 1.0.4 2018/03/07
|
||||
* Version: @(#)plat.h 1.0.5 2018/03/10
|
||||
*
|
||||
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||
*
|
||||
@@ -132,6 +132,17 @@ extern void set_language(int id);
|
||||
extern wchar_t *plat_get_string(int id);
|
||||
|
||||
|
||||
/* Dynamic Module Loader interface. */
|
||||
typedef struct {
|
||||
const char *name;
|
||||
void *func;
|
||||
} dllimp_t;
|
||||
|
||||
|
||||
extern void *dynld_module(const char *, dllimp_t *);
|
||||
extern void dynld_close(void *);
|
||||
|
||||
|
||||
/* Emulator start/stop support functions. */
|
||||
extern void do_start(void);
|
||||
extern void do_stop(void);
|
||||
@@ -153,6 +164,14 @@ extern int ioctl_open(uint8_t id, char d);
|
||||
extern void ioctl_reset(uint8_t id);
|
||||
extern void ioctl_close(uint8_t id);
|
||||
|
||||
extern void plat_midi_init(void);
|
||||
extern void plat_midi_close(void);
|
||||
extern void plat_midi_play_msg(uint8_t* val);
|
||||
extern void plat_midi_play_sysex(uint8_t* data, unsigned int len);
|
||||
extern int plat_midi_write(uint8_t val);
|
||||
extern int plat_midi_get_num_devs();
|
||||
extern void plat_midi_get_dev_name(int num, char *s);
|
||||
|
||||
|
||||
/* Thread support. */
|
||||
typedef void thread_t;
|
||||
|
||||
Reference in New Issue
Block a user