Last change
on this file since 217 was
217,
checked in by gregli@…, 12 years ago
|
Serial Server: various improvements, turned on LBA28 support by default.
|
File size:
681 bytes
|
Rev | Line | |
---|
[209] | 1 | //====================================================================== |
---|
| 2 | // |
---|
| 3 | // Project: XTIDE Universal BIOS, Serial Port Server |
---|
| 4 | // |
---|
| 5 | // File: FlatImage.h - Header file for basic flat disk image support |
---|
| 6 | // |
---|
| 7 | |
---|
| 8 | #include <stdio.h> |
---|
| 9 | #include "library.h" |
---|
| 10 | |
---|
| 11 | class FlatImage : public Image |
---|
| 12 | { |
---|
| 13 | private: |
---|
| 14 | FILE *fp; |
---|
| 15 | |
---|
| 16 | public: |
---|
[217] | 17 | FlatImage( char *name, int p_readOnly, int p_drive, int create, unsigned long cyl, unsigned long head, unsigned long sect, int useCHS ); |
---|
[209] | 18 | ~FlatImage(); |
---|
| 19 | |
---|
| 20 | int seekSector( unsigned long cyl, unsigned long sect, unsigned long head ); |
---|
| 21 | int seekSector( unsigned long lba ); |
---|
| 22 | int writeSector( void *buff ); |
---|
| 23 | int readSector( void *buff ); |
---|
| 24 | }; |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.