5 * ADF Library. (C) 1997-1998 Laurent Clevy
9 * Harddisk and devices code
18 int adfDevType(struct Device
*dev
);
19 PREFIX
void adfDeviceInfo(struct Device
*dev
);
21 RETCODE
adfMountHd(struct Device
*dev
);
22 RETCODE
adfMountFlop(struct Device
* dev
);
23 PREFIX
struct Device
* adfMountDev( char* filename
,BOOL
);
24 PREFIX
void adfUnMountDev( struct Device
* dev
);
26 RETCODE
adfCreateHdHeader(struct Device
* dev
, int n
, struct Partition
** partList
);
27 PREFIX RETCODE
adfCreateFlop(struct Device
* dev
, char* volName
, int volType
);
28 PREFIX RETCODE
adfCreateHd(struct Device
* dev
, int n
, struct Partition
** partList
);
29 PREFIX RETCODE
adfCreateHdFile(struct Device
* dev
, char* volName
, int volType
);
31 struct Device
* adfCreateDev(char* filename
, long cylinders
, long heads
, long sectors
);
33 RETCODE
adfReadBlockDev( struct Device
* dev
, long nSect
, long size
, unsigned char* buf
);
34 RETCODE
adfWriteBlockDev(struct Device
* dev
, long nSect
, long size
, unsigned char* buf
);
35 RETCODE
adfReadRDSKblock( struct Device
* dev
, struct bRDSKblock
* blk
);
36 RETCODE
adfWriteRDSKblock(struct Device
*dev
, struct bRDSKblock
* rdsk
);
37 RETCODE
adfReadPARTblock( struct Device
* dev
, long nSect
, struct bPARTblock
* blk
);
38 RETCODE
adfWritePARTblock(struct Device
*dev
, long nSect
, struct bPARTblock
* part
);
39 RETCODE
adfReadFSHDblock( struct Device
* dev
, long nSect
, struct bFSHDblock
* blk
);
40 RETCODE
adfWriteFSHDblock(struct Device
*dev
, long nSect
, struct bFSHDblock
* fshd
);
41 RETCODE
adfReadLSEGblock(struct Device
* dev
, long nSect
, struct bLSEGblock
* blk
);
42 RETCODE
adfWriteLSEGblock(struct Device
*dev
, long nSect
, struct bLSEGblock
* lseg
);
45 #endif /* _ADF_HD_H */
47 /*##########################################################################*/