/*
 * Copyright (C) 1993, 1994 by Ralf Baechle (linux@uni-koblenz.de)
 *
 * This file is part of Minix-Handler, an AmigaDOS Filehandler to access
 * Minix filesystems via AmigaDOS.
 *
 * Minix-Handler 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, or (at your option)
 * any later version.
 *
 * Minix-Handler 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.
 */

#include <exec/types.h>
#include <exec/io.h>
#include <devices/trackdisk.h>

/* Prototypes for functions defined in td.c */

#ifndef __NOPROTO
#ifndef __PROTO
#define __PROTO(a) a
#endif
#else
#ifndef __PROTO
#define __PROTO(a) ()
#endif
#endif

enum MotorState { MOTOR_OFF, MOTOR_ON };

BOOL TD_Open __PROTO((UBYTE *device, ULONG unit, ULONG flags));
void TD_Close __PROTO((VOID));
ULONG TD_AddBuffers __PROTO((ULONG more));
BYTE TD_Read __PROTO((APTR Data, ULONG Length, ULONG Offset));
BYTE TD_Write __PROTO((APTR Data, ULONG Length, ULONG Offset));
BYTE TD_Update __PROTO((VOID));
BYTE TD_Clear __PROTO((VOID));
BYTE TD_Eject __PROTO((VOID));
BYTE TD_Motor __PROTO((enum MotorState on));
BOOL TD_QueryProtection __PROTO((VOID));
BOOL TD_QueryRemoveable __PROTO((VOID));
ULONG TD_ChangeNum __PROTO((VOID));
VOID TD_Sync __PROTO((VOID));
VOID TD_SetOffset __PROTO((ULONG Offset));
