- Timestamp:
- 10/14/08 19:32:34 (1 month ago)
- 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 212 212 213 213 finishedRead: 214 StorageEndRequest(drive->sDev,0); 214 215 drive->interrupt=NULL; 215 216 drive->busy=0; 216 StorageEndRequest(drive->sDev,0);217 217 AtaRequest(drive); 218 218 } -
Whitix/branches/keobject/devices/storage/ata/ata.c
r1094 r1126 316 316 if (request->sector > part->secLen) 317 317 return -EIO; 318 319 request->sector+=part->startSector;320 // memcpy(&head,&request->list, sizeof(struct ListHead));321 318 322 319 memcpy(&newRequest, request, sizeof(struct Request)); … … 325 322 326 323 err=BlockSendRequestRaw(part->sDev, &newRequest); 327 // memcpy(&request->list,&head, sizeof(struct ListHead));328 329 // request->sector-=part->startSector;330 324 331 325 StorageEndRequest(partDev,-err); … … 370 364 371 365 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); 375 370 376 371 return 0; … … 424 419 425 420 format = "AtaDisk%u"; 426 index = hdIndex ++;421 index = hdIndex; 427 422 }else{ 428 423 sDevice->cylinders=sDevice->heads=sDevice->sectors=0; … … 439 434 440 435 if (drive->type & ATA_DISK) 441 AtaPartitionDevice(drive,(controlIndex*2)+driveIndex); 436 { 437 AtaPartitionDevice(drive, hdIndex); 438 hdIndex++; 439 } 442 440 } 443 441
