/*
 * petiec.c - IEC bus handling for the PET.
 *
 * Written by
 *  Daniel Sladic <sladic@eecg.toronto.edu>
 *  Andre Fachat <fachat@physik.tu-chemnitz.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.
 *
 */

#include "vice.h"

#include <stdio.h>

#include "iecbus.h"
#include "iecdrive.h"
#include "petiec.h"
#include "types.h"
#include "debug.h"


void petiec_init(void)
{
}

void iec_update_ports(void)
{
    /* Not used for now.  */
}

void iec_update_ports_embedded(void)
{
    iec_update_ports();
}

iecbus_t *iecbus_drive_port(void)
{
    return NULL;
}

uint8_t iec_drive_read(unsigned int dnr)
{
    /* FIXME: unused */
    return 0;
}

void iec_drive_write(uint8_t data, unsigned int dnr)
{
    /* FIXME: unused */
    iec_update_ports();
}

uint8_t parallel_cable_drive_read(int type, int handshake)
{
    return 0;
}

void parallel_cable_drive_write(int port, uint8_t data, int handshake, unsigned int dnr)
{
}

int iec_available_busses(void)
{
    return IEC_BUS_IEEE;
}

void iec_fast_drive_direction(int direction, unsigned int dnr)
{
}

void iec_fast_drive_write(uint8_t data, unsigned int dnr)
{
}

#ifdef DEBUG
void debug_iec_drv_read(unsigned int data)
{
    /* FIXME: unused */
}

void debug_iec_drv_write(unsigned int data)
{
    /* FIXME: unused */
}

void debug_iec_bus_read(unsigned int data)
{
    /* FIXME: unused */
}

void debug_iec_bus_write(unsigned int data)
{
    /* FIXME: unused */
}
#endif

/* KLUDGES: dummy to satisfy linker, unused */
uint8_t plus4tcbm_outputa[2], plus4tcbm_outputb[2], plus4tcbm_outputc[2];

void plus4tcbm_update_pa(uint8_t byte, unsigned int dnr)
{
}

void plus4tcbm_update_pb(uint8_t byte, unsigned int dnr)
{
}

void plus4tcbm_update_pc(uint8_t byte, unsigned int dnr)
{
}
