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.

86 lines
1.4 KiB

  1. //--- write.h
  2. NTSTATUS
  3. SerialWrite(
  4. IN PDEVICE_OBJECT DeviceObject,
  5. IN PIRP Irp
  6. );
  7. NTSTATUS
  8. SerialStartWrite(
  9. IN PSERIAL_DEVICE_EXTENSION Extension
  10. );
  11. VOID
  12. SerialGetNextWrite(
  13. IN PIRP *CurrentOpIrp,
  14. IN PLIST_ENTRY QueueToProcess,
  15. IN PIRP *NewIrp,
  16. IN BOOLEAN CompleteCurrent,
  17. PSERIAL_DEVICE_EXTENSION Extension
  18. );
  19. VOID
  20. SerialCompleteWrite(
  21. IN PKDPC Dpc,
  22. IN PVOID DeferredContext,
  23. IN PVOID SystemContext1,
  24. IN PVOID SystemContext2
  25. );
  26. BOOLEAN
  27. SerialGiveWriteToIsr(
  28. IN PVOID Context
  29. );
  30. VOID
  31. SerialCancelCurrentWrite(
  32. PDEVICE_OBJECT DeviceObject,
  33. PIRP Irp
  34. );
  35. VOID
  36. SerialWriteTimeout(
  37. IN PKDPC Dpc,
  38. IN PVOID DeferredContext,
  39. IN PVOID SystemContext1,
  40. IN PVOID SystemContext2
  41. );
  42. BOOLEAN
  43. SerialGrabWriteFromIsr(
  44. IN PVOID Context
  45. );
  46. BOOLEAN
  47. SerialGrabXoffFromIsr(
  48. IN PVOID Context
  49. );
  50. VOID
  51. SerialCompleteXoff(
  52. IN PKDPC Dpc,
  53. IN PVOID DeferredContext,
  54. IN PVOID SystemContext1,
  55. IN PVOID SystemContext2
  56. );
  57. VOID
  58. SerialTimeoutXoff(
  59. IN PKDPC Dpc,
  60. IN PVOID DeferredContext,
  61. IN PVOID SystemContext1,
  62. IN PVOID SystemContext2
  63. );
  64. VOID
  65. SerialCancelCurrentXoff(
  66. PDEVICE_OBJECT DeviceObject,
  67. PIRP Irp
  68. );
  69. BOOLEAN
  70. SerialGiveXoffToIsr(
  71. IN PVOID Context
  72. );