/* Get EP CmdStat pointer Parameters: EPNum: endpoint number  */
U32* GetEpCmdStatPtr(U32 EPNum)
/* Get EP CmdStat pointer Parameters: EPNum: endpoint number  */
U32* GetEpCmdStatPtr(U32 EPNum)
{
    U32 ptr = 0;
    if (EPNum & 0x80) {
        EPNum &= ~0x80;
        ptr = 8;
    }
    ptr += EP_LIST_BASE + EPNum * 16;
    return ((U32 *)ptr);
}