ufs_device.cc (10913:38dbdeea7f1f) ufs_device.cc (11179:8e240cd8132a)
1/*
2 * Copyright (c) 2013-2015 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

--- 1808 unchanged lines hidden (view full) ---

1817 /**just to keep track of the transactions*/
1818 countInt++;
1819
1820 /**step5 clear doorbell*/
1821 UFSHCIMem.TRUTRLDBR &= transferTrack;
1822 pendingDoorbells = 0;
1823 DPRINTF(UFSHostDevice, "Clear doorbell %X\n", UFSHCIMem.TRUTRLDBR);
1824
1/*
2 * Copyright (c) 2013-2015 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

--- 1808 unchanged lines hidden (view full) ---

1817 /**just to keep track of the transactions*/
1818 countInt++;
1819
1820 /**step5 clear doorbell*/
1821 UFSHCIMem.TRUTRLDBR &= transferTrack;
1822 pendingDoorbells = 0;
1823 DPRINTF(UFSHostDevice, "Clear doorbell %X\n", UFSHCIMem.TRUTRLDBR);
1824
1825 checkDrain();
1826
1825 /**step6 raise interrupt*/
1826 gic->sendInt(intNum);
1827 DPRINTF(UFSHostDevice, "Send interrupt @ transaction: 0x%8x!\n",
1828 countInt);
1829}
1830
1831/**
1832 * Clear interrupt
1833 */
1834
1835void
1836UFSHostDevice::clearInterrupt()
1837{
1838 gic->clearInt(intNum);
1839 DPRINTF(UFSHostDevice, "Clear interrupt: 0x%8x!\n", countInt);
1840
1827 /**step6 raise interrupt*/
1828 gic->sendInt(intNum);
1829 DPRINTF(UFSHostDevice, "Send interrupt @ transaction: 0x%8x!\n",
1830 countInt);
1831}
1832
1833/**
1834 * Clear interrupt
1835 */
1836
1837void
1838UFSHostDevice::clearInterrupt()
1839{
1840 gic->clearInt(intNum);
1841 DPRINTF(UFSHostDevice, "Clear interrupt: 0x%8x!\n", countInt);
1842
1843 checkDrain();
1844
1841 if (!(UFSHCIMem.TRUTRLDBR)) {
1842 idlePhaseStart = curTick();
1843 }
1844 /**end of a transaction*/
1845}
1846
1847/**
1848 * Important to understand about the transfer flow:

--- 499 unchanged lines hidden ---
1845 if (!(UFSHCIMem.TRUTRLDBR)) {
1846 idlePhaseStart = curTick();
1847 }
1848 /**end of a transaction*/
1849}
1850
1851/**
1852 * Important to understand about the transfer flow:

--- 499 unchanged lines hidden ---