Changeset 526 in xtideuniversalbios for trunk/Serial_Server/library/Image.cpp


Ignore:
Timestamp:
Mar 15, 2013, 1:38:58 AM (11 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes:

  • Update of the copyright notices to include the year 2013.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Serial_Server/library/Image.cpp

    r430 r526  
    77
    88//
    9 // XTIDE Universal BIOS and Associated Tools 
    10 // Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
     9// XTIDE Universal BIOS and Associated Tools
     10// Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
    1111//
    1212// This program is free software; you can redistribute it and/or modify
     
    1414// the Free Software Foundation; either version 2 of the License, or
    1515// (at your option) any later version.
    16 // 
     16//
    1717// This program is distributed in the hope that it will be useful,
    1818// but WITHOUT ANY WARRANTY; without even the implied warranty of
    1919// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20 // GNU General Public License for more details.     
     20// GNU General Public License for more details.
    2121// Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    2222//
     
    2828#include <stdio.h>
    2929
    30 struct floppyInfo floppyInfos[] = 
     30struct floppyInfo floppyInfos[] =
    3131{
    3232    { 1, 2949120 / 512, 6, 80, 2, 36 },         // 2.88MB 3.5"
     
    8989        shortFileName = "SerDrive";
    9090    }
    91  
     91
    9292    readOnly = p_readOnly;
    9393    drive = p_drive;
     
    135135            log( -1, "'%s', file size does not match standard CHS geometry (x:16:63), please specify geometry explicitly with -g", name );
    136136        }
    137         else 
     137        else
    138138        {
    139139            sect = 63;
     
    151151    sizef = totallba/2048.0;
    152152    sizeChar = 'M';
    153     if( sizef < 1 ) 
     153    if( sizef < 1 )
    154154    {
    155155        sizef *= 1024;
     
    160160             name, (floppy ? "Floppy Disk" : "Hard Disk"), cyl, head, sect, sizef, sizeChar );
    161161    else
    162         log( 0, "%s: %s with %lu LBA sectors, size %.2lf %cB (CHS geometry %u:%u:%u)", 
     162        log( 0, "%s: %s with %lu LBA sectors, size %.2lf %cB (CHS geometry %u:%u:%u)",
    163163             name, (floppy ? "Floppy Disk" : "Hard Disk"), totallba, sizef, sizeChar, cyl, head, sect );
    164164}
     
    176176    *h = '\0';
    177177    h++;
    178     for( s = h+1; *s && *s != ':' && *s != 'x' && *s != 'X'; s++ ) ; 
     178    for( s = h+1; *s && *s != ':' && *s != 'x' && *s != 'X'; s++ ) ;
    179179    if( !*s )
    180180        return( 0 );
     
    244244    unsigned char com;
    245245};
    246 struct comPorts supportedComPorts[] = 
    247 { 
    248   { 0x3f8, '1' }, 
    249   { 0x2f8, '2' }, 
    250   { 0x3e8, '3' }, 
    251   { 0x2e8, '4' }, 
    252   { 0x2f0, '5' }, 
    253   { 0x3e0, '6' }, 
    254   { 0x2e0, '7' }, 
     246struct comPorts supportedComPorts[] =
     247{
     248  { 0x3f8, '1' },
     249  { 0x2f8, '2' },
     250  { 0x3e8, '3' },
     251  { 0x2e8, '4' },
     252  { 0x2f0, '5' },
     253  { 0x3e0, '6' },
     254  { 0x2e0, '7' },
    255255  { 0x260, '8' },
    256256  { 0x368, '9' },
     
    258258  { 0x360, 'B' },
    259259  { 0x270, 'C' },
    260   { 0, 0 } 
     260  { 0, 0 }
    261261};
    262262
     
    310310    }
    311311
    312     // We echo back the port and baud that we were called on from the client, 
     312    // We echo back the port and baud that we were called on from the client,
    313313    // the client then uses this value to finalize the DPT.
    314314    //
     
    321321    buff[ ATA_wSerialDriveFlags ] = ATA_wSerialDriveFlags_Present;
    322322    if( floppy )
    323         buff[ ATA_wSerialDriveFlags ] |= 
     323        buff[ ATA_wSerialDriveFlags ] |=
    324324            ATA_wSerialDriveFlags_Floppy | (floppyType << ATA_wSerialDriveFlags_FloppyType_FieldPosition);
    325325
Note: See TracChangeset for help on using the changeset viewer.