|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
19 #ifndef XEMU_MEGA65_SDCARD_H_INCLUDED
20 #define XEMU_MEGA65_SDCARD_H_INCLUDED
22 #define SD_ST_EXT_BUS 0x80
23 #define SD_ST_ERROR 0x40
24 #define SD_ST_FSM_ERROR 0x20
26 #define SD_ST_MAPPED 0x08
27 #define SD_ST_RESET 0x04
28 #define SD_ST_BUSY1 0x02
29 #define SD_ST_BUSY0 0x01
31 extern int sdcard_init (
const char *
fn,
const int virtsd_flag,
const int default_d81_is_from_sd_in );
56 static inline int has_block_nonzero_byte (
const Uint8 *p )
58 for (
register unsigned int a = 0; a < 512; a++)
64 #ifdef XEMU_SNAPSHOT_SUPPORT
66 extern int sdcard_snapshot_load_state (
const struct xemu_snapshot_definition_st *def ,
struct xemu_snapshot_block_st *
block );
67 extern int sdcard_snapshot_save_state (
const struct xemu_snapshot_definition_st *def );
int sdcard_unmount(const int unit)
int sdcard_default_d81_mount(const int unit)
const char * sdcard_get_mount_info(const int unit, int *is_internal)
Uint8 disk_buffers[0x1000]
const char xemu_external_d81_signature[]
int sdcard_force_external_mount(const int unit, const char *filename, const char *cry)
int sdcard_read_block(Uint32 block, Uint8 *buffer)
int sdcard_write_block(Uint32 block, Uint8 *buffer)
int sdcard_init(const char *fn, const int virtsd_flag, const int default_d81_is_from_sd_in)
void sdcard_write_register(int reg, Uint8 data)
void sdcard_notify_system_start_begin(void)
int sdcard_force_external_mount_with_image_creation(const int unit, const char *filename, const int do_overwrite, const char *cry)
Uint32 sdcard_get_size(void)
Uint8 sdcard_read_register(int reg)
Uint8 * disk_buffer_io_mapped
Uint8 * disk_buffer_cpu_view
void sdcard_notify_system_start_end(void)