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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [atahost.c] - Diff between revs 997 and 1019

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 997 Rev 1019
Line 163... Line 163...
            default:
            default:
                return 0;
                return 0;
        }
        }
    }
    }
    else
    else
 
    /* check if the controller is enabled */
 
    if (ata->regs.ctrl & ATA_IDE_EN)
    {
    {
        // make sure simulator uses correct read/write delay timings
        // make sure simulator uses correct read/write delay timings
#if (DEV_ID > 1)
#if (DEV_ID > 1)
        if ( (addr & 0x7f) == ATA_DR)
        if ( (addr & 0x7f) == ATA_DR)
        {
        {
Line 254... Line 256...
                */
                */
                break;
                break;
        }
        }
    }
    }
    else
    else
 
    /* check if the controller is enabled */
 
    if (ata->regs.ctrl & ATA_IDE_EN)
    {
    {
        // make sure simulator uses correct read/write delay timings
        // make sure simulator uses correct read/write delay timings
#if (DEV_ID > 1)
#if (DEV_ID > 1)
        if ( (addr & 0x7f) == ATA_DR)
        if ( (addr & 0x7f) == ATA_DR)
        {
        {

powered by: WebSVN 2.1.0

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