source: trunk/minix/commands/i386/mtools-3.9.7/floppyd_io.h@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 645 bytes
Line 
1#ifndef MTOOLS_FLOPPYDIO_H
2#define MTOOLS_FLOPPYDIO_H
3
4#ifdef USE_FLOPPYD
5
6#include "stream.h"
7
8/*extern int ConnectToFloppyd(const char* name, Class_t** ioclass);*/
9Stream_t *FloppydOpen(struct device *dev, struct device *dev2,
10 char *name, int mode, char *errmsg,
11 int mode2, int locked);
12
13#define FLOPPYD_DEFAULT_PORT 5703
14#define FLOPPYD_PROTOCOL_VERSION 10
15
16enum FloppydOpcodes {
17 OP_READ,
18 OP_WRITE,
19 OP_SEEK,
20 OP_FLUSH,
21 OP_CLOSE,
22 OP_IOCTL
23};
24
25enum AuthErrorsEnum {
26 AUTH_SUCCESS,
27 AUTH_PACKETOVERSIZE,
28 AUTH_AUTHFAILED,
29 AUTH_WRONGVERSION,
30 AUTH_DEVLOCKED,
31 AUTH_BADPACKET
32};
33
34typedef unsigned long IPaddr_t;
35
36#endif
37#endif
Note: See TracBrowser for help on using the repository browser.