/***************************************************************************** FUNCTION : DBGDIOCDrivSetDebugLevel PURPOSE : PARAMETERS : RETURNS : *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivSetDebugLevel(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_SETDEBUGLEVEL psParams; PDBG_STREAM psStream; psParams = (PDBG_IN_SETDEBUGLEVEL) pvInBuffer; PVR_UNREFERENCED_PARAMETER(pvOutBuffer); psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { ExtDBGDrivSetDebugLevel(psStream,psParams->ui32Level); return(IMG_TRUE); } else { /* invalid SID */ return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDIOCDrivGetMarker PURPOSE : Gets the marker in the stream to split output files PARAMETERS : pvInBuffer, pvOutBuffer RETURNS : success *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivGetMarker(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_STREAM psStream; IMG_UINT32 *pui32Current; pui32Current = (IMG_UINT32 *) pvOutBuffer; psStream = SID2PStream(*(IMG_SID *)pvInBuffer); if (psStream != (PDBG_STREAM)IMG_NULL) { *pui32Current = ExtDBGDrivGetMarker(psStream); return(IMG_TRUE); } else { /* invalid SID */ *pui32Current = 0; return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDrivOverrideMode PURPOSE : PARAMETERS : RETURNS : *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivOverrideMode(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_OVERRIDEMODE psParams; PDBG_STREAM psStream; psParams = (PDBG_IN_OVERRIDEMODE) pvInBuffer; PVR_UNREFERENCED_PARAMETER( pvOutBuffer); psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { ExtDBGDrivOverrideMode(psStream,psParams->ui32Mode); return(IMG_TRUE); } else { /* invalid SID */ return(IMG_FALSE); } }
static IMG_UINT32 DBGDIOCDrivSetMarker(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_SETMARKER psParams; PDBG_STREAM psStream; psParams = (PDBG_IN_SETMARKER) pvInBuffer; PVR_UNREFERENCED_PARAMETER(pvOutBuffer); psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { ExtDBGDrivSetMarker(psStream, psParams->ui32Marker); return(IMG_TRUE); } else { return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDrivWriteStringCM PURPOSE : Same as DBGDrivWriteString, but takes notice of capture mode. PARAMETERS : RETURNS : *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivWriteStringCM(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_WRITESTRING psParams; IMG_UINT32 *pui32OutLen; PDBG_STREAM psStream; psParams = (PDBG_IN_WRITESTRING) pvInBuffer; pui32OutLen = (IMG_UINT32 *) pvOutBuffer; psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { *pui32OutLen = ExtDBGDrivWriteStringCM(psStream,psParams->u.pszString,psParams->ui32Level); return(IMG_TRUE); } else { /* invalid SID */ *pui32OutLen = 0; return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDIOCDrivIsCaptureFrame PURPOSE : Determines if this frame is a capture frame PARAMETERS : RETURNS : IMG_TRUE if current frame is to be captured *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivIsCaptureFrame(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_ISCAPTUREFRAME psParams; IMG_UINT32 * pui32Current; PDBG_STREAM psStream; psParams = (PDBG_IN_ISCAPTUREFRAME) pvInBuffer; pui32Current = (IMG_UINT32 *) pvOutBuffer; psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { *pui32Current = ExtDBGDrivIsCaptureFrame(psStream, psParams->bCheckPreviousFrame); return(IMG_TRUE); } else { /* invalid SID */ *pui32Current = 0; return(IMG_FALSE); } }
static IMG_UINT32 DBGDIOCDrivReadString(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { IMG_UINT32 * pui32OutLen; PDBG_IN_READSTRING psParams; PDBG_STREAM psStream; psParams = (PDBG_IN_READSTRING) pvInBuffer; pui32OutLen = (IMG_UINT32 *) pvOutBuffer; psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { *pui32OutLen = ExtDBGDrivReadString(psStream, psParams->u.pszString,psParams->ui32StringLen); return(IMG_TRUE); } else { *pui32OutLen = 0; return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDIOCDrivReadLF PURPOSE : PARAMETERS : RETURNS : *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivReadLF(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { IMG_UINT32 * pui32BytesCopied; PDBG_IN_READ psInParams; PDBG_STREAM psStream; psInParams = (PDBG_IN_READ) pvInBuffer; pui32BytesCopied = (IMG_UINT32 *) pvOutBuffer; psStream = SID2PStream(psInParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { *pui32BytesCopied = ExtDBGDrivReadLF(psStream, psInParams->ui32OutBufferSize, psInParams->u.pui8OutBuffer); return(IMG_TRUE); } else { /* invalid SID */ *pui32BytesCopied = 0; return(IMG_FALSE); } }
/***************************************************************************** FUNCTION : DBGDIOCDrivSetCaptureMode PURPOSE : PARAMETERS : RETURNS : *****************************************************************************/ static IMG_UINT32 DBGDIOCDrivSetCaptureMode(IMG_VOID * pvInBuffer, IMG_VOID * pvOutBuffer) { PDBG_IN_SETDEBUGMODE psParams; PDBG_STREAM psStream; psParams = (PDBG_IN_SETDEBUGMODE) pvInBuffer; PVR_UNREFERENCED_PARAMETER(pvOutBuffer); psStream = SID2PStream(psParams->hStream); if (psStream != (PDBG_STREAM)IMG_NULL) { ExtDBGDrivSetCaptureMode(psStream, psParams->ui32Mode, psParams->ui32Start, psParams->ui32End, psParams->ui32SampleRate); return(IMG_TRUE); } else { /* invalid SID */ return(IMG_FALSE); } }