2018-08-21 13:28:32 +00:00
|
|
|
#ifndef REIOS_H
|
|
|
|
#define REIOS_H
|
2014-12-29 21:05:35 +00:00
|
|
|
|
2018-08-21 13:28:32 +00:00
|
|
|
#include "types.h"
|
2019-07-30 17:04:51 +00:00
|
|
|
#include "hw/flashrom/flashrom.h"
|
2014-12-29 21:05:35 +00:00
|
|
|
|
2019-09-19 09:49:19 +00:00
|
|
|
bool reios_init();
|
2014-12-29 21:05:35 +00:00
|
|
|
|
2019-09-19 09:49:19 +00:00
|
|
|
void reios_reset(u8* rom, MemChip *flash);
|
2014-12-29 21:05:35 +00:00
|
|
|
|
|
|
|
void reios_term();
|
|
|
|
|
|
|
|
void DYNACALL reios_trap(u32 op);
|
|
|
|
|
2019-09-01 14:35:12 +00:00
|
|
|
void reios_disk_id();
|
|
|
|
|
|
|
|
struct ip_meta_t
|
|
|
|
{
|
|
|
|
char hardware_id[16];
|
|
|
|
char maker_id[16];
|
|
|
|
char ks[5];
|
|
|
|
char disk_type[6];
|
|
|
|
char disk_num[5];
|
|
|
|
char area_symbols[8];
|
|
|
|
char ctrl[4];
|
|
|
|
char dev;
|
|
|
|
char vga;
|
|
|
|
char wince;
|
|
|
|
char _unk1;
|
|
|
|
char product_number[10];
|
|
|
|
char product_version[6];
|
|
|
|
char release_date[8];
|
|
|
|
char _unk2[8];
|
|
|
|
char boot_filename[16];
|
|
|
|
char software_company[16];
|
|
|
|
char software_name[128];
|
|
|
|
|
|
|
|
bool isWindowsCE() { return wince == '1' || memcmp("0WINCEOS.BIN", boot_filename, 12) == 0; }
|
|
|
|
bool supportsVGA() { return vga == '1'; }
|
|
|
|
};
|
|
|
|
extern ip_meta_t ip_meta;
|
2018-05-22 13:20:37 +00:00
|
|
|
|
|
|
|
#define REIOS_OPCODE 0x085B
|
2018-08-21 13:28:32 +00:00
|
|
|
|
|
|
|
#endif //REIOS_H
|