| Previous | 199869 Revisions | Next |
| r23820 Thursday 20th June, 2013 at 14:19:49 UTC by smf |
|---|
| fixed issues that caused the hd to report that the diagnostics failed (nw) |
| [src/emu/machine] | idehd.c |
| [src/mame/drivers] | chihiro.c |
| r23819 | r23820 | |
|---|---|---|
| 2692 | 2692 | |
| 2693 | 2693 | void ide_baseboard_device::device_reset() |
| 2694 | 2694 | { |
| 2695 | if (!m_can_identify_device) | |
| 2696 | { | |
| 2697 | m_num_cylinders=65535; | |
| 2698 | m_num_sectors=255; | |
| 2699 | m_num_heads=255; | |
| 2700 | ide_build_identify_device(); | |
| 2701 | m_can_identify_device = 1; | |
| 2702 | } | |
| 2703 | ||
| 2695 | 2704 | ata_mass_storage_device::device_reset(); |
| 2696 | ||
| 2697 | m_num_cylinders=65535; | |
| 2698 | m_num_sectors=255; | |
| 2699 | m_num_heads=255; | |
| 2700 | ide_build_identify_device(); | |
| 2701 | 2705 | } |
| 2702 | 2706 | |
| 2703 | 2707 | int ide_baseboard_device::read_sector(UINT32 lba, void *buffer) |
| r23819 | r23820 | |
|---|---|---|
| 1376 | 1376 | |
| 1377 | 1377 | void ide_hdd_device::device_reset() |
| 1378 | 1378 | { |
| 1379 | ata_mass_storage_device::device_reset(); | |
| 1380 | ||
| 1381 | 1379 | m_handle = m_image->get_chd_file(); |
| 1382 | 1380 | m_disk = m_image->get_hard_disk_file(); |
| 1383 | 1381 | |
| r23819 | r23820 | |
| 1400 | 1398 | |
| 1401 | 1399 | m_can_identify_device = 1; |
| 1402 | 1400 | } |
| 1401 | ||
| 1402 | ata_mass_storage_device::device_reset(); | |
| 1403 | 1403 | } |
| 1404 | 1404 | |
| 1405 | 1405 | //------------------------------------------------- |
| Previous | 199869 Revisions | Next |