[PATCH v3 6/9] coresight: Add helper to check if the endpoint is input