Changeset 217 in xtideuniversalbios for trunk/Serial_Server/library/Library.h


Ignore:
Timestamp:
Jan 23, 2012, 10:08:13 AM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Serial Server: various improvements, turned on LBA28 support by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Serial_Server/library/Library.h

    r215 r217  
    2929    Image( char *name, int p_readOnly, int p_drive );
    3030    Image( char *name, int p_readOnly, int p_drive, int p_create, unsigned long p_lba );
    31     Image( char *name, int p_readOnly, int p_drive, int p_create, unsigned long p_cyl, unsigned long p_sect, unsigned long p_head );
     31    Image( char *name, int p_readOnly, int p_drive, int p_create, unsigned long p_cyl, unsigned long p_head, unsigned long p_sect, int p_useCHS );
    3232
    3333    virtual ~Image() {};
    3434
    3535    unsigned long cyl, sect, head;
     36    int useCHS;
    3637
    3738    unsigned long totallba;
     
    4142    int drive;
    4243
    43     static int parseGeometry( char *str, unsigned long *p_cyl, unsigned long *p_sect, unsigned long *p_head );
     44    static int parseGeometry( char *str, unsigned long *p_cyl, unsigned long *p_head, unsigned long *p_sect );
    4445
    4546    void respondInquire( unsigned short *buff, struct baudRate *baudRate, unsigned char portAndBaud );
    4647
    47 private:
    48     void init( char *name, int p_readOnly, int p_drive );
     48    void init( char *name, int p_readOnly, int p_drive, unsigned long p_cyl, unsigned long p_head, unsigned long p_sect, int p_useCHS );
    4949};
    5050
Note: See TracChangeset for help on using the changeset viewer.