OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or1ksim/] [peripheral/] [atadevice.c] - Diff between revs 60 and 82

Show entire file | Details | Blame | View Log

Rev 60 Rev 82
Line 394... Line 394...
 
 
        case ATA_CLR:
        case ATA_CLR:
          return device->regs.cylinder_low;
          return device->regs.cylinder_low;
 
 
        case ATA_DR:
        case ATA_DR:
          if (!device->regs.status & ATA_SR_DRQ)
          if (!(device->regs.status & ATA_SR_DRQ))
            {
            {
              return 0;
              return 0;
            }
            }
          else
          else
            {
            {
Line 466... Line 466...
    case ATA_CLR:
    case ATA_CLR:
      device->regs.cylinder_low = value;
      device->regs.cylinder_low = value;
      break;
      break;
 
 
    case ATA_DR:
    case ATA_DR:
      if (!device->regs.status & ATA_SR_DRQ)
      if (!(device->regs.status & ATA_SR_DRQ))
        {
        {
          break;
          break;
        }
        }
      else
      else
        {
        {

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.