1/* 2 * Copyright (c) 2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 691 unchanged lines hidden (view full) --- 700 701 devState = Prepare_Data_Out; 702 action = ACT_DATA_READY; 703 break; 704 705 // Supported DMA commands 706 case WDCC_WRITEDMA: 707 dmaRead = true; // a write to the disk is a DMA read from memory |
708 M5_FALLTHROUGH; |
709 case WDCC_READDMA: 710 if (!(cmdReg.drive & DRIVE_LBA_BIT)) 711 panic("Attempt to perform CHS access, only supports LBA\n"); 712 713 if (cmdReg.sec_count == 0) 714 cmdBytes = cmdBytesLeft = (256 * SectorSize); 715 else 716 cmdBytes = cmdBytesLeft = (cmdReg.sec_count * SectorSize); --- 497 unchanged lines hidden --- |