source: vital-to8-sdk/sap/floppy.h @ 2

Last change on this file since 2 was 1, checked in by svn, 6 years ago

Import initial

File size: 1.6 KB
Line 
1/*  Lecture des disquettes Thomson sur PC
2 *  Version 2.1
3 *  Copyright (C) 2000-2003 Eric Botcazou
4 *
5 *  This program is free software; you can redistribute it and/or modify
6 *  it under the terms of the GNU General Public License as published by
7 *  the Free Software Foundation; either version 2 of the License, or
8 *  (at your option) any later version.
9 *
10 *  This program is distributed in the hope that it will be useful,
11 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 *  GNU General Public License for more details.
14 *
15 *  You should have received a copy of the GNU General Public License
16 *  along with this program; if not, write to the Free Software
17 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20
21#ifndef FLOPPY_H
22#define FLOPPY_H
23
24struct floppy_info {
25   int num_drives;
26   int drive_type[4];
27   int fm_support;
28   int write_support;
29};
30
31/* drive type: 1 (5"25 - 360 kb)
32 *             2 (5"25 - 1.2 Mb)
33 *             3 (3"5  - 720 kb)
34 *             4 (3"5 - 1.44 Mb)
35 *             5 (3"5 - 2.88 Mb)
36 *             6 (3"5 - 2.88 Mb)
37 */
38
39extern int FloppyInit(struct floppy_info *fi, int enable_write_support);
40extern void FloppyExit(void);
41
42extern int FloppyReadSector(int drive, int density, int track, int sector, int nsects, unsigned char data[]);
43extern int FloppyWriteSector(int drive, int density, int track, int sector, int nsects, const unsigned char data[]);
44extern int FloppyFormatTrack(int drive, int density, int track, const unsigned char header_table[]);
45
46#endif
47
Note: See TracBrowser for help on using the repository browser.