1 #ifndef _ADF_DISK_H
2 #define _ADF_DISK_H 1
3 
4 /*
5  *  ADF Library. (C) 1997-2002 Laurent Clevy
6  *
7  *  adf_disk.h
8  *
9  *  $Id$
10  *
11  *  This file is part of ADFLib.
12  *
13  *  ADFLib is free software; you can redistribute it and/or modify
14  *  it under the terms of the GNU General Public License as published by
15  *  the Free Software Foundation; either version 2 of the License, or
16  *  (at your option) any later version.
17  *
18  *  ADFLib is distributed in the hope that it will be useful,
19  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  *  GNU General Public License for more details.
22  *
23  *  You should have received a copy of the GNU General Public License
24  *  along with Foobar; if not, write to the Free Software
25  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
26  *
27  */
28 
29 #include "prefix.h"
30 
31 #include "adf_str.h"
32 #include "adf_defs.h"
33 
34 PREFIX RETCODE adfInstallBootBlock(struct Volume *vol,uint8_t*);
35 
36 PREFIX BOOL isSectNumValid(struct Volume *vol, SECTNUM nSect);
37 
38 PREFIX struct Volume* adfMount( struct Device *dev, int nPart, BOOL readOnly );
39 PREFIX void adfUnMount(struct Volume *vol);
40 PREFIX void adfVolumeInfo(struct Volume *vol);
41 struct Volume* adfCreateVol( struct Device* dev, int32_t start, int32_t len,
42     char* volName, int volType );
43 
44 /*void adfReadBitmap(struct Volume* , int32_t nBlock, struct bRootBlock* root);
45 void adfUpdateBitmap(struct Volume*);
46 */
47 PREFIX RETCODE adfReadBlock(struct Volume* , int32_t nSect, uint8_t* buf);
48 PREFIX RETCODE adfWriteBlock(struct Volume* , int32_t nSect, uint8_t* buf);
49 
50 #endif /* _ADF_DISK_H */
51 
52 /*##########################################################################*/
53