To avoid needless warnings we use generated cxx flags also if cflags are equals to...
[AROS.git] / tools / adflib / adf_hd.h
blob6a82cb51e627fdf9ee88a390fdd28d5a052310e6
1 #ifndef _ADF_HD_H
2 #define _ADF_HD_H 1
4 /*
5 * ADF Library. (C) 1997-1998 Laurent Clevy
7 * adf_hd.h
9 * Harddisk and devices code
12 #include "adf_str.h"
13 #include "hd_blk.h"
14 #include "adf_err.h"
16 int adfDevType(struct Device *dev);
17 PREFIX void adfDeviceInfo(struct Device *dev);
19 RETCODE adfMountHd(struct Device *dev);
20 RETCODE adfMountFlop(struct Device* dev);
21 PREFIX struct Device* adfMountDev( char* filename,BOOL);
22 PREFIX void adfUnMountDev( struct Device* dev);
24 RETCODE adfCreateHdHeader(struct Device* dev, int n, struct Partition** partList );
25 PREFIX RETCODE adfCreateFlop(struct Device* dev, char* volName, int volType );
26 PREFIX RETCODE adfCreateHd(struct Device* dev, int n, struct Partition** partList );
27 PREFIX RETCODE adfCreateHdFile(struct Device* dev, char* volName, int volType);
29 struct Device* adfCreateDev(char* filename, ULONG cylinders, ULONG heads, ULONG sectors);
31 RETCODE adfReadBlockDev( struct Device* dev, ULONG nSect, ULONG size, unsigned char* buf );
32 RETCODE adfWriteBlockDev(struct Device* dev, ULONG nSect, ULONG size, unsigned char* buf );
33 RETCODE adfReadRDSKblock( struct Device* dev, struct bRDSKblock* blk );
34 RETCODE adfWriteRDSKblock(struct Device *dev, struct bRDSKblock* rdsk);
35 RETCODE adfReadPARTblock( struct Device* dev, ULONG nSect, struct bPARTblock* blk );
36 RETCODE adfWritePARTblock(struct Device *dev, ULONG nSect, struct bPARTblock* part);
37 RETCODE adfReadFSHDblock( struct Device* dev, ULONG nSect, struct bFSHDblock* blk);
38 RETCODE adfWriteFSHDblock(struct Device *dev, ULONG nSect, struct bFSHDblock* fshd);
39 RETCODE adfReadLSEGblock(struct Device* dev, ULONG nSect, struct bLSEGblock* blk);
40 RETCODE adfWriteLSEGblock(struct Device *dev, ULONG nSect, struct bLSEGblock* lseg);
41 RETCODE adfReadBOOTblock(struct Device* dev, ULONG nSect, struct bBOOTblock* blk);
42 RETCODE adfWriteBOOTblock(struct Device *dev, ULONG nSect, struct bBOOTblock* lseg);
44 /* Write BOOT code
46 RETCODE adfWriteBOOT(struct Device *dev, const UBYTE *code, size_t size);
48 #endif /* _ADF_HD_H */
50 /*##########################################################################*/