static IMG_INT PVRSRVBridgeSyncPrimPDumpCBP(IMG_UINT32 ui32BridgeID, PVRSRV_BRIDGE_IN_SYNCPRIMPDUMPCBP *psSyncPrimPDumpCBPIN, PVRSRV_BRIDGE_OUT_SYNCPRIMPDUMPCBP *psSyncPrimPDumpCBPOUT, CONNECTION_DATA *psConnection) { SYNC_PRIMITIVE_BLOCK * psSyncHandleInt = IMG_NULL; IMG_HANDLE hSyncHandleInt2 = IMG_NULL; PVRSRV_BRIDGE_ASSERT_CMD(ui32BridgeID, PVRSRV_BRIDGE_SYNC_SYNCPRIMPDUMPCBP); { /* Look up the address from the handle */ psSyncPrimPDumpCBPOUT->eError = PVRSRVLookupHandle(psConnection->psHandleBase, (IMG_HANDLE *) &hSyncHandleInt2, psSyncPrimPDumpCBPIN->hSyncHandle, PVRSRV_HANDLE_TYPE_SYNC_PRIMITIVE_BLOCK); if(psSyncPrimPDumpCBPOUT->eError != PVRSRV_OK) { goto SyncPrimPDumpCBP_exit; } /* Look up the data from the resman address */ psSyncPrimPDumpCBPOUT->eError = ResManFindPrivateDataByPtr(hSyncHandleInt2, (IMG_VOID **) &psSyncHandleInt); if(psSyncPrimPDumpCBPOUT->eError != PVRSRV_OK) { goto SyncPrimPDumpCBP_exit; } } psSyncPrimPDumpCBPOUT->eError = PVRSRVSyncPrimPDumpCBPKM( psSyncHandleInt, psSyncPrimPDumpCBPIN->ui32Offset, psSyncPrimPDumpCBPIN->uiWriteOffset, psSyncPrimPDumpCBPIN->uiPacketSize, psSyncPrimPDumpCBPIN->uiBufferSize); SyncPrimPDumpCBP_exit: return 0; }
IMG_INTERNAL PVRSRV_ERROR IMG_CALLCONV BridgeSyncPrimPDumpCBP(IMG_HANDLE hBridge, IMG_HANDLE hSyncHandle, IMG_UINT32 ui32Offset, IMG_DEVMEM_OFFSET_T uiWriteOffset, IMG_DEVMEM_SIZE_T uiPacketSize, IMG_DEVMEM_SIZE_T uiBufferSize) { PVRSRV_ERROR eError; SYNC_PRIMITIVE_BLOCK * psSyncHandleInt; PVR_UNREFERENCED_PARAMETER(hBridge); psSyncHandleInt = (SYNC_PRIMITIVE_BLOCK *) hSyncHandle; eError = PVRSRVSyncPrimPDumpCBPKM( psSyncHandleInt, ui32Offset, uiWriteOffset, uiPacketSize, uiBufferSize); return eError; }