/* Judge if the port is connected with a usb device or not. */
BOOLEAN IsPortConnect(IN UINT16 PortStatus)
/* Judge if the port is connected with a usb device or not. */
BOOLEAN IsPortConnect(IN UINT16 PortStatus)
{
  if ((PortStatus & USB_PORT_STAT_CONNECTION) != 0) {
    return TRUE;
  } else {
    return FALSE;
  }
}