minix/commands/i386/mtools-3.9.7/floppyd_io.h
2005-04-21 14:53:53 +00:00

37 lines
645 B
C
Executable file

#ifndef MTOOLS_FLOPPYDIO_H
#define MTOOLS_FLOPPYDIO_H
#ifdef USE_FLOPPYD
#include "stream.h"
/*extern int ConnectToFloppyd(const char* name, Class_t** ioclass);*/
Stream_t *FloppydOpen(struct device *dev, struct device *dev2,
char *name, int mode, char *errmsg,
int mode2, int locked);
#define FLOPPYD_DEFAULT_PORT 5703
#define FLOPPYD_PROTOCOL_VERSION 10
enum FloppydOpcodes {
OP_READ,
OP_WRITE,
OP_SEEK,
OP_FLUSH,
OP_CLOSE,
OP_IOCTL
};
enum AuthErrorsEnum {
AUTH_SUCCESS,
AUTH_PACKETOVERSIZE,
AUTH_AUTHFAILED,
AUTH_WRONGVERSION,
AUTH_DEVLOCKED,
AUTH_BADPACKET
};
typedef unsigned long IPaddr_t;
#endif
#endif