Changeset 526 in xtideuniversalbios for trunk/Serial_Server/library/Process.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/Process.cpp
r376 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 // … … 179 179 lasttick = GetTime(); 180 180 181 // 181 // 182 182 // No work currently to do, look at each character as they come in... 183 183 // … … 289 289 if( (workCommand != SERIAL_COMMAND_INQUIRE) && (buff.chs.driveAndHead & ATA_COMMAND_LBA) ) 290 290 { 291 mylba = ((((unsigned long) buff.lba.bits24) & ATA_COMMAND_HEADMASK) << 24) 292 | (((unsigned long) buff.lba.bits16) << 16) 293 | (((unsigned long) buff.lba.bits08) << 8) 291 mylba = ((((unsigned long) buff.lba.bits24) & ATA_COMMAND_HEADMASK) << 24) 292 | (((unsigned long) buff.lba.bits16) << 16) 293 | (((unsigned long) buff.lba.bits08) << 8) 294 294 | ((unsigned long) buff.lba.bits00); 295 295 } … … 346 346 readto = 514; 347 347 } 348 else 348 else 349 349 { 350 350 // … … 355 355 unsigned char localScan; 356 356 357 if( serial->speedEmulation && 357 if( serial->speedEmulation && 358 358 buff.inquire.baud != serial->baudRate->divisor ) 359 359 { … … 363 363 } 364 364 365 localScan = buff.inquire.scan; // need to do this before the call to 365 localScan = buff.inquire.scan; // need to do this before the call to 366 366 // img->respondInquire, as it will clear the buff 367 img->respondInquire( &buff.w[0], buff.inquirePacked.PackedPortAndBaud, 368 serial->baudRate, 369 ((unsigned short) buff.inquire.port) << 2, 367 img->respondInquire( &buff.w[0], buff.inquirePacked.PackedPortAndBaud, 368 serial->baudRate, 369 ((unsigned short) buff.inquire.port) << 2, 370 370 (img == image1 && lastScan) || buff.inquire.scan ); 371 371 lastScan = localScan;
Note:
See TracChangeset
for help on using the changeset viewer.