|
Xemu [doxygen]
hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
|
Go to the documentation of this file.
19 #ifndef XEMU_COMMON_D81ACCESS_H_INCLUDED
20 #define XEMU_COMMON_D81ACCESS_H_INCLUDED
22 #define D81_SIZE 819200
24 #define PRG_MIN_SIZE 16
26 #ifdef PRG_MAX_SIZE_OVERRIDE
27 #define PRG_MAX_SIZE PRG_MAX_SIZE_OVERRIDE
29 #define PRG_MAX_SIZE 0xD700
32 #define D81ACCESS_EMPTY 0
33 #define D81ACCESS_IMG 1
34 #define D81ACCESS_PRG 2
35 #define D81ACCESS_DIR 4
36 #define D81ACCESS_CALLBACKS 8
37 #define D81ACCESS_RO 0x100
38 #define D81ACCESS_AUTOCLOSE 0x200
39 #define D81ACCESS_FAKE64 0x400
40 #define D81ACCESS_D64 0x800
41 #define D81ACCESS_D71 0x1000
42 #define D81ACCESS_D65 0x2000
45 typedef int(*d81access_rd_cb_t) (
int which,
void *buffer, off_t offset,
int sector_size );
46 typedef int(*d81access_wr_cb_t) (
int which,
void *buffer, off_t offset,
int sector_size );
47 extern void d81access_attach_cb (
int which, off_t offset, d81access_rd_cb_t rd_callback, d81access_wr_cb_t wd_callback );
void d81access_init(void)
void d81access_attach_fd(int which, int fd, off_t offset, int mode)
void d81access_cb_chgmode(const int which, const int mode)
int d81access_get_mode(int which)
int d81access_read_sect(const int which, Uint8 *buffer, const Uint8 side, const Uint8 track, const Uint8 sector, const int sector_size)
Uint8 * d81access_create_image(Uint8 *img, const char *diskname, const int name_from_fn)
void d81access_close_all(void)
void d81access_close(int which)
int d81access_write_sect(const int which, Uint8 *buffer, const Uint8 side, const Uint8 track, const Uint8 sector, const int sector_size)
int d81access_create_image_file(const char *fn, const char *diskname, const int do_overwrite, const char *cry)
int d81access_attach_fsobj(int which, const char *fn, int mode)