Rev | Line | |
---|
[9] | 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);*/
|
---|
| 9 | Stream_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 |
|
---|
| 16 | enum FloppydOpcodes {
|
---|
| 17 | OP_READ,
|
---|
| 18 | OP_WRITE,
|
---|
| 19 | OP_SEEK,
|
---|
| 20 | OP_FLUSH,
|
---|
| 21 | OP_CLOSE,
|
---|
| 22 | OP_IOCTL
|
---|
| 23 | };
|
---|
| 24 |
|
---|
| 25 | enum AuthErrorsEnum {
|
---|
| 26 | AUTH_SUCCESS,
|
---|
| 27 | AUTH_PACKETOVERSIZE,
|
---|
| 28 | AUTH_AUTHFAILED,
|
---|
| 29 | AUTH_WRONGVERSION,
|
---|
| 30 | AUTH_DEVLOCKED,
|
---|
| 31 | AUTH_BADPACKET
|
---|
| 32 | };
|
---|
| 33 |
|
---|
| 34 | typedef unsigned long IPaddr_t;
|
---|
| 35 |
|
---|
| 36 | #endif
|
---|
| 37 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.