diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-05-23 10:46:49 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-05-23 10:46:49 -0400 |
commit | 144817be2de1e0f51ad9e138c72660932a4ef07d (patch) | |
tree | 705e569d50e9357767bd96d4de6a2dc9ef232c57 /src/ata.c | |
parent | 9c447c3a6d94b4e43e0b55a1d0cf0f9731472aa2 (diff) | |
download | seabios-hppa-144817be2de1e0f51ad9e138c72660932a4ef07d.zip seabios-hppa-144817be2de1e0f51ad9e138c72660932a4ef07d.tar.gz seabios-hppa-144817be2de1e0f51ad9e138c72660932a4ef07d.tar.bz2 |
Rename check_time() to check_tsc().
Diffstat (limited to 'src/ata.c')
-rw-r--r-- | src/ata.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,7 +35,7 @@ await_ide(u8 mask, u8 flags, u16 base, u16 timeout) u8 status = inb(base+ATA_CB_STAT); if ((status & mask) == flags) return status; - if (check_time(end)) { + if (check_tsc(end)) { warn_timeout(); return -1; } @@ -106,7 +106,7 @@ ata_reset(struct atadrive_s *adrive_g) if (inb(iobase1 + ATA_CB_DH) == ATA_CB_DH_DEV1) break; // Change drive request failed to take effect - retry. - if (check_time(end)) { + if (check_tsc(end)) { warn_timeout(); goto done; } @@ -453,7 +453,7 @@ ata_dma_transfer(struct disk_op_s *op) if (status & BM_STATUS_IRQ) break; // Transfer in progress - if (check_time(end)) { + if (check_tsc(end)) { // Timeout. warn_timeout(); break; @@ -850,7 +850,7 @@ powerup_await_non_bsy(u16 base) dprintf(4, "powerup IDE floating\n"); return orstatus; } - if (check_time(SpinupEnd)) { + if (check_tsc(SpinupEnd)) { warn_timeout(); return -1; } |