5 * ADF Library. (C) 1997-1998 Laurent Clevy
9 * Harddisk and devices code
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
);
46 RETCODE
adfWriteBOOT(struct Device
*dev
, const UBYTE
*code
, size_t size
);
48 #endif /* _ADF_HD_H */
50 /*##########################################################################*/