Last change
on this file since 215 was 209, checked in by gregli@…, 13 years ago |
Initial checkin for the Serial Server code, to be run on a host computer with a hard disk image file. Connected via a serial line, this provides the I/O for the serial port support in the XTIDE bios. At present, this is a Win32 command line program, run without parameters for usage information.
|
File size:
669 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:
|
---|
| 17 | FlatImage( char *name, int p_readOnly, int p_drive, int create, unsigned long cyl, unsigned long sect, unsigned long head );
|
---|
| 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.