Changeset 526 in xtideuniversalbios for trunk/Serial_Server/library/Image.cpp
- Timestamp:
- Mar 15, 2013, 1:38:58 AM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Serial_Server/library/Image.cpp
r430 r526 7 7 8 8 // 9 // XTIDE Universal BIOS and Associated Tools 10 // Copyright (C) 2009-2010 by Tomi Tilli, 2011-201 2by 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. 11 11 // 12 12 // This program is free software; you can redistribute it and/or modify … … 14 14 // the Free Software Foundation; either version 2 of the License, or 15 15 // (at your option) any later version. 16 // 16 // 17 17 // This program is distributed in the hope that it will be useful, 18 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 // 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. 21 21 // Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 22 22 // … … 28 28 #include <stdio.h> 29 29 30 struct floppyInfo floppyInfos[] = 30 struct floppyInfo floppyInfos[] = 31 31 { 32 32 { 1, 2949120 / 512, 6, 80, 2, 36 }, // 2.88MB 3.5" … … 89 89 shortFileName = "SerDrive"; 90 90 } 91 91 92 92 readOnly = p_readOnly; 93 93 drive = p_drive; … … 135 135 log( -1, "'%s', file size does not match standard CHS geometry (x:16:63), please specify geometry explicitly with -g", name ); 136 136 } 137 else 137 else 138 138 { 139 139 sect = 63; … … 151 151 sizef = totallba/2048.0; 152 152 sizeChar = 'M'; 153 if( sizef < 1 ) 153 if( sizef < 1 ) 154 154 { 155 155 sizef *= 1024; … … 160 160 name, (floppy ? "Floppy Disk" : "Hard Disk"), cyl, head, sect, sizef, sizeChar ); 161 161 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)", 163 163 name, (floppy ? "Floppy Disk" : "Hard Disk"), totallba, sizef, sizeChar, cyl, head, sect ); 164 164 } … … 176 176 *h = '\0'; 177 177 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++ ) ; 179 179 if( !*s ) 180 180 return( 0 ); … … 244 244 unsigned char com; 245 245 }; 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' }, 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' }, 255 255 { 0x260, '8' }, 256 256 { 0x368, '9' }, … … 258 258 { 0x360, 'B' }, 259 259 { 0x270, 'C' }, 260 { 0, 0 } 260 { 0, 0 } 261 261 }; 262 262 … … 310 310 } 311 311 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, 313 313 // the client then uses this value to finalize the DPT. 314 314 // … … 321 321 buff[ ATA_wSerialDriveFlags ] = ATA_wSerialDriveFlags_Present; 322 322 if( floppy ) 323 buff[ ATA_wSerialDriveFlags ] |= 323 buff[ ATA_wSerialDriveFlags ] |= 324 324 ATA_wSerialDriveFlags_Floppy | (floppyType << ATA_wSerialDriveFlags_FloppyType_FieldPosition); 325 325
Note:
See TracChangeset
for help on using the changeset viewer.