/* Queries the current Ethernet MAC remote wake-up configuration. */
uint32_t EMACPowerManagementControlGet(uint32_t ui32Base)
/* Queries the current Ethernet MAC remote wake-up configuration. */
uint32_t EMACPowerManagementControlGet(uint32_t ui32Base)
{
    ASSERT(ui32Base == EMAC0_BASE);
    return (HWREG(ui32Base + EMAC_O_PMTCTLSTAT) &
            (EMAC_PMTCTLSTAT_GLBLUCAST | EMAC_PMTCTLSTAT_WUPFREN |
             EMAC_PMTCTLSTAT_MGKPKTEN | EMAC_PMTCTLSTAT_PWRDWN));
}