/*
 * drivecpu.h - 6502 processor emulation of CBM disk drives.
 *
 * Written by
 *  Ettore Perazzoli <ettore@comm2000.it>
 *  Andreas Boose <viceteam@t-online.de>
 *
 * This file is part of VICE, the Versatile Commodore Emulator.
 * See README for copyright notice.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 *  02111-1307  USA.
 *
 */

#ifndef VICE_DRIVECPU_H
#define VICE_DRIVECPU_H

#include "types.h"

struct drive_context_s;
struct interrupt_cpu_status_s;
struct monitor_interface_s;
struct snapshot_s;

extern void drivecpu_setup_context(struct drive_context_s *drv);

extern void drivecpu_init(struct drive_context_s *drv, int type);
extern void drivecpu_reset(struct drive_context_s *drv);
extern void drivecpu_sleep(struct drive_context_s *drv);
extern void drivecpu_wake_up(struct drive_context_s *drv);
extern void drivecpu_prevent_clk_overflow_all(CLOCK sub);
extern void drivecpu_early_init_all(void);
extern void drivecpu_shutdown(struct drive_context_s *drv);
extern void drivecpu_reset_clk(struct drive_context_s *drv);
extern void drivecpu_trigger_reset(unsigned int dnr);

extern void drivecpu_execute(struct drive_context_s *drv, CLOCK clk_value);
extern void drivecpu_execute_all(CLOCK clk_value);
extern int drivecpu_snapshot_write_module(struct drive_context_s *drv,
                                          struct snapshot_s *s);
extern int drivecpu_snapshot_read_module(struct drive_context_s *drv,
                                         struct snapshot_s *s);

/* Don't use these pointers before the context is set up!  */
extern struct monitor_interface_s *drivecpu_monitor_interface_get(
    unsigned int dnr);

#endif

