5
* Andreas Boose <viceteam@t-online.de>
7
* This file is part of VICE, the Versatile Commodore Emulator.
8
* See README for copyright notice.
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program; if not, write to the Free Software
22
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
34
#include "machine-drive.h"
38
int machine_drive_resources_init(void)
40
return drive_resources_type_init(DRIVE_TYPE_2031)
41
| ieee_drive_resources_init();
44
void machine_drive_resources_shutdown(void)
46
ieee_drive_resources_shutdown();
49
int machine_drive_cmdline_options_init(void)
51
return ieee_drive_cmdline_options_init();
54
void machine_drive_init(struct drive_context_s *drv)
56
iecieee_drive_init(drv);
60
void machine_drive_shutdown(struct drive_context_s *drv)
62
iecieee_drive_shutdown(drv);
63
ieee_drive_shutdown(drv);
66
void machine_drive_reset(struct drive_context_s *drv)
68
iecieee_drive_reset(drv);
69
ieee_drive_reset(drv);
72
void machine_drive_mem_init(struct drive_context_s *drv, unsigned int type)
74
ieee_drive_mem_init(drv, type);
77
void machine_drive_setup_context(struct drive_context_s *drv)
79
iecieee_drive_setup_context(drv);
80
ieee_drive_setup_context(drv);
83
void machine_drive_idling_method(unsigned int dnr)
87
void machine_drive_vsync_hook(void)
91
void machine_drive_rom_load(void)
93
ieee_drive_rom_load();
96
void machine_drive_rom_setup_image(unsigned int dnr)
98
ieee_drive_rom_setup_image(dnr);
101
int machine_drive_rom_read(unsigned int type, WORD addr, BYTE *data)
103
if (ieee_drive_rom_read(type, addr, data) == 0)
109
int machine_drive_rom_check_loaded(unsigned int type)
111
if (ieee_drive_rom_check_loaded(type) == 0)
117
void machine_drive_rom_do_checksum(unsigned int dnr)
119
ieee_drive_rom_do_checksum(dnr);
122
int machine_drive_snapshot_read(struct drive_context_s *ctxptr,
123
struct snapshot_s *s)
125
if (iecieee_drive_snapshot_read(ctxptr, s) < 0)
127
if (ieee_drive_snapshot_read(ctxptr, s) < 0)
133
int machine_drive_snapshot_write(struct drive_context_s *ctxptr,
134
struct snapshot_s *s)
136
if (iecieee_drive_snapshot_write(ctxptr, s) < 0)
138
if (ieee_drive_snapshot_write(ctxptr, s) < 0)
144
int machine_drive_image_attach(struct disk_image_s *image, unsigned int unit)
146
return ieee_drive_image_attach(image, unit);
149
int machine_drive_image_detach(struct disk_image_s *image, unsigned int unit)
151
return ieee_drive_image_detach(image, unit);
154
void machine_drive_port_default(struct drive_context_s *drv)
159
void machine_drive_flush(void)
161
drive_gcr_data_writeback_all();
164
void machine_drive_stub(void)