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 | |
---|
24 | struct 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 | |
---|
39 | extern int FloppyInit(struct floppy_info *fi, int enable_write_support); |
---|
40 | extern void FloppyExit(void); |
---|
41 | |
---|
42 | extern int FloppyReadSector(int drive, int density, int track, int sector, int nsects, unsigned char data[]); |
---|
43 | extern int FloppyWriteSector(int drive, int density, int track, int sector, int nsects, const unsigned char data[]); |
---|
44 | extern int FloppyFormatTrack(int drive, int density, int track, const unsigned char header_table[]); |
---|
45 | |
---|
46 | #endif |
---|
47 | |
---|