Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

104 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1995 Intel Corporation
  3. Module Name:
  4. i64dma.c
  5. Abstract:
  6. This module implements the DMA support routines for the HAL DLL.
  7. Author:
  8. 14-Apr-1995
  9. Environment:
  10. Kernel mode
  11. Revision History:
  12. --*/
  13. #include "halp.h"
  14. VOID
  15. HalFlushIoBuffers (
  16. IN PMDL Mdl,
  17. IN BOOLEAN ReadOperation,
  18. IN BOOLEAN DmaOperation
  19. )
  20. /*++
  21. Routine Description:
  22. This function flushes the I/O buffer specified by the memory descriptor
  23. list from the data cache on the current processor.
  24. Arguments:
  25. Mdl - Supplies a pointer to a memory descriptor list that describes the
  26. I/O buffer location.
  27. ReadOperation - Supplies a boolean value that determines whether the I/O
  28. operation is a read into memory.
  29. DmaOperation - Supplies a boolean value that determines whether the I/O
  30. operation is a DMA operation.
  31. Return Value:
  32. None.
  33. --*/
  34. {
  35. //
  36. //
  37. // In IA64 systems, DMA is coherent with Dcache and Icache.
  38. // In PIO, Dcache is coherent and Icache is NOT coherent.
  39. // Only on Page read using PIO Icache coherency is needed to be
  40. // maintained by software. So, HalFlushIoBuffer will flush the Icache
  41. // only on Page read using PIO.
  42. //
  43. //
  44. return;
  45. }
  46. ULONG
  47. HalGetDmaAlignmentRequirement (
  48. VOID
  49. )
  50. /*++
  51. Routine Description:
  52. This function returns the alignment requirements for DMA transfers on
  53. host system.
  54. Arguments:
  55. None.
  56. Return Value:
  57. The DMA alignment requirement is returned as the fucntion value.
  58. --*/
  59. {
  60. return 1;
  61. }