1 #ifndef MTOOLS_FLOPPYDIO_H
2 #define MTOOLS_FLOPPYDIO_H
4 /* Copyright 1999 Peter Schlaile.
5 * Copyright 1998,2000-2002,2009 Alain Knaff.
6 * This file is part of mtools.
8 * Mtools is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * Mtools is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Mtools. If not, see <http://www.gnu.org/licenses/>.
26 /*extern int ConnectToFloppyd(const char* name, Class_t** ioclass);*/
27 Stream_t *FloppydOpen(struct device *dev, struct device *dev2,
28 char *name, int mode, char *errmsg,
29 int mode2, int locked,
32 #define FLOPPYD_DEFAULT_PORT 5703
34 #define FLOPPYD_PROTOCOL_VERSION_OLD 10
35 #define FLOPPYD_PROTOCOL_VERSION 11
37 #define FLOPPYD_CAP_EXPLICIT_OPEN 1 /* explicit open. Useful for
38 * clean signalling of readonly disks */
39 #define FLOPPYD_CAP_LARGE_SEEK 2 /* large seeks */
63 typedef unsigned long IPaddr_t;