Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Macros | Functions | Variables
sdcard.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SD_ST_EXT_BUS   0x80
 
#define SD_ST_ERROR   0x40
 
#define SD_ST_FSM_ERROR   0x20
 
#define SD_ST_MAPPED   0x08
 
#define SD_ST_RESET   0x04
 
#define SD_ST_BUSY1   0x02
 
#define SD_ST_BUSY0   0x01
 

Functions

int sdcard_init (const char *fn, const int virtsd_flag, const int default_d81_is_from_sd_in)
 
Uint32 sdcard_get_size (void)
 
void sdcard_write_register (int reg, Uint8 data)
 
Uint8 sdcard_read_register (int reg)
 
int sdcard_read_block (Uint32 block, Uint8 *buffer)
 
int sdcard_write_block (Uint32 block, Uint8 *buffer)
 
int sdcard_force_external_mount (const int unit, const char *filename, const char *cry)
 
int sdcard_force_external_mount_with_image_creation (const int unit, const char *filename, const int do_overwrite, const char *cry)
 
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)
 
void sdcard_notify_system_start_begin (void)
 
void sdcard_notify_system_start_end (void)
 

Variables

Uint8 disk_buffers [0x1000]
 
Uint8disk_buffer_cpu_view
 
Uint8disk_buffer_io_mapped
 
Uint8 sd_status
 
const char xemu_external_d81_signature []
 

Macro Definition Documentation

◆ SD_ST_BUSY0

#define SD_ST_BUSY0   0x01

Definition at line 29 of file sdcard.h.

◆ SD_ST_BUSY1

#define SD_ST_BUSY1   0x02

Definition at line 28 of file sdcard.h.

◆ SD_ST_ERROR

#define SD_ST_ERROR   0x40

Definition at line 23 of file sdcard.h.

◆ SD_ST_EXT_BUS

#define SD_ST_EXT_BUS   0x80

Definition at line 22 of file sdcard.h.

◆ SD_ST_FSM_ERROR

#define SD_ST_FSM_ERROR   0x20

Definition at line 24 of file sdcard.h.

◆ SD_ST_MAPPED

#define SD_ST_MAPPED   0x08

Definition at line 26 of file sdcard.h.

◆ SD_ST_RESET

#define SD_ST_RESET   0x04

Definition at line 27 of file sdcard.h.

Function Documentation

◆ sdcard_default_d81_mount()

int sdcard_default_d81_mount ( const int  unit)

Definition at line 821 of file sdcard.c.

◆ sdcard_force_external_mount()

int sdcard_force_external_mount ( const int  unit,
const char *  filename,
const char *  cry 
)

Definition at line 925 of file sdcard.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdcard_force_external_mount_with_image_creation()

int sdcard_force_external_mount_with_image_creation ( const int  unit,
const char *  filename,
const int  do_overwrite,
const char *  cry 
)

Definition at line 951 of file sdcard.c.

Here is the call graph for this function:

◆ sdcard_get_mount_info()

const char* sdcard_get_mount_info ( const int  unit,
int *  is_internal 
)

Definition at line 917 of file sdcard.c.

◆ sdcard_get_size()

Uint32 sdcard_get_size ( void  )

Definition at line 305 of file sdcard.c.

◆ sdcard_init()

int sdcard_init ( const char *  fn,
const int  virtsd_flag,
const int  default_d81_is_from_sd_in 
)

Definition at line 328 of file sdcard.c.

◆ sdcard_notify_system_start_begin()

void sdcard_notify_system_start_begin ( void  )

Definition at line 778 of file sdcard.c.

◆ sdcard_notify_system_start_end()

void sdcard_notify_system_start_end ( void  )

Definition at line 790 of file sdcard.c.

Here is the caller graph for this function:

◆ sdcard_read_block()

int sdcard_read_block ( Uint32  block,
Uint8 buffer 
)

Definition at line 548 of file sdcard.c.

◆ sdcard_read_register()

Uint8 sdcard_read_register ( int  reg)

Definition at line 1035 of file sdcard.c.

Here is the caller graph for this function:

◆ sdcard_unmount()

int sdcard_unmount ( const int  unit)

Definition at line 959 of file sdcard.c.

Here is the call graph for this function:

◆ sdcard_write_block()

int sdcard_write_block ( Uint32  block,
Uint8 buffer 
)

Definition at line 569 of file sdcard.c.

◆ sdcard_write_register()

void sdcard_write_register ( int  reg,
Uint8  data 
)

Definition at line 973 of file sdcard.c.

Here is the caller graph for this function:

Variable Documentation

◆ disk_buffer_cpu_view

Uint8* disk_buffer_cpu_view

Definition at line 76 of file sdcard.c.

◆ disk_buffer_io_mapped

Uint8* disk_buffer_io_mapped

Definition at line 80 of file sdcard.c.

◆ disk_buffers

Uint8 disk_buffers[0x1000]

Definition at line 74 of file sdcard.c.

◆ sd_status

Uint8 sd_status

Definition at line 58 of file sdcard.c.

◆ xemu_external_d81_signature

const char xemu_external_d81_signature[]

Definition at line 84 of file sdcard.c.