Changeset 1126 for Whitix

Show
Ignore:
Timestamp:
10/14/08 19:32:34 (1 month ago)
Author:
mwhitworth
Message:

Delete commented code, misc fixes, add more detailed printfs.

Location:
Whitix/branches/keobject/devices/storage/ata
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/keobject/devices/storage/ata/ata-cd.c

    r659 r1126  
    212212 
    213213finishedRead: 
     214        StorageEndRequest(drive->sDev,0); 
    214215        drive->interrupt=NULL; 
    215216        drive->busy=0; 
    216         StorageEndRequest(drive->sDev,0); 
    217217        AtaRequest(drive); 
    218218} 
  • Whitix/branches/keobject/devices/storage/ata/ata.c

    r1094 r1126  
    316316        if (request->sector > part->secLen) 
    317317                return -EIO; 
    318  
    319         request->sector+=part->startSector; 
    320 //      memcpy(&head,&request->list, sizeof(struct ListHead)); 
    321318         
    322319        memcpy(&newRequest, request, sizeof(struct Request)); 
     
    325322         
    326323        err=BlockSendRequestRaw(part->sDev, &newRequest); 
    327 //      memcpy(&request->list,&head, sizeof(struct ListHead)); 
    328  
    329 //      request->sector-=part->startSector; 
    330324 
    331325        StorageEndRequest(partDev,-err); 
     
    370364 
    371365        StorageDeviceInit(sDevice, DEV_ID_MAKE(4, ((base*64)+i+1)));     
    372         StorageDeviceAdd(sDevice, "AtaDisk%c%d", 'A'+base, i); 
    373          
    374         KePrint("Partition found: %#X, %u, %u\n",(DWORD)part[i].system,part[i].startSectorAbs,part[i].sectorCount); 
     366        StorageDeviceAdd(sDevice, "AtaDisk%d%c", base, 'a'+i); 
     367         
     368        KePrint("%s: %#X, %u, %u\n", KeDeviceGetName(&sDevice->device), 
     369                (DWORD)part[i].system,part[i].startSectorAbs,part[i].sectorCount); 
    375370 
    376371        return 0; 
     
    424419                 
    425420                format = "AtaDisk%u"; 
    426                 index = hdIndex++; 
     421                index = hdIndex; 
    427422        }else{ 
    428423                sDevice->cylinders=sDevice->heads=sDevice->sectors=0; 
     
    439434 
    440435        if (drive->type & ATA_DISK) 
    441                 AtaPartitionDevice(drive,(controlIndex*2)+driveIndex); 
     436        { 
     437                AtaPartitionDevice(drive, hdIndex); 
     438                hdIndex++; 
     439        } 
    442440} 
    443441