NT4/private/ntos/dd/qic117/0x15a1a.c
2020-09-30 17:12:29 +02:00

69 lines
1.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*****************************************************************************
*
* COPYRIGHT 1993 - COLORADO MEMORY SYSTEMS, INC.
* ALL RIGHTS RESERVED.
*
******************************************************************************
*
* FILE: \SE\DRIVER\Q117KDI\NT\SRC\0X15A1A.C
*
* FUNCTION: kdi_FlushDMABuffers
*
* PURPOSE:
*
* HISTORY:
* $Log: J:\se.vcs\driver\q117kdi\nt\src\0x15a1a.c $
*
* Rev 1.1 18 Jan 1994 16:30:40 KEVINKES
* Fixed compile errors and added debug changes.
*
* Rev 1.0 02 Dec 1993 16:10:32 KEVINKES
* Initial Revision.
*
*****************************************************************************/
#define FCT_ID 0x15A1A
#include "include\public\adi_api.h"
#include "include\public\frb_api.h"
#include "q117kdi\include\kdiwhio.h"
#include "q117kdi\include\kdiwpriv.h"
#include "include\private\kdi_pub.h"
/*endinclude*/
dVoid kdi_FlushDMABuffers
(
/* INPUT PARAMETERS: */
dVoidPtr context,
dBoolean write_operation,
dVoidPtr phy_data_ptr,
dUDWord bytes_transferred_so_far,
dUDWord total_bytes_of_transfer
/* UPDATE PARAMETERS: */
/* OUTPUT PARAMETERS: */
)
/* COMMENTS: *****************************************************************
*
* DEFINITIONS: *************************************************************/
{
/* DATA: ********************************************************************/
KdiContextPtr kdi_context = (KdiContextPtr)context;
/* CODE: ********************************************************************/
IoFlushAdapterBuffers(
kdi_context->adapter_object,
phy_data_ptr,
kdi_context->map_register_base,
(dVoidPtr)( (dUDWord) MmGetMdlVirtualAddress((PMDL) phy_data_ptr )
+ bytes_transferred_so_far ),
total_bytes_of_transfer,
write_operation );
}