Source code of Windows XP (NT5)
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.

148 lines
3.2 KiB

  1. /***************************************************************************
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. SERIOCTL.H
  5. Abstract:
  6. Header file for routines to handle serial IOCTLs for Legacy USB Modem Driver
  7. Environment:
  8. kernel mode only
  9. Notes:
  10. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  11. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  13. PURPOSE.
  14. Copyright (c) 1998 Microsoft Corporation. All Rights Reserved.
  15. Revision History:
  16. 12/27/97 : created
  17. Authors:
  18. Tom Green
  19. ****************************************************************************/
  20. #ifndef __SERIOCTL_H__
  21. #define __SERIOCTL_H__
  22. // prototypes
  23. NTSTATUS
  24. SetBaudRate(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj);
  25. NTSTATUS
  26. GetBaudRate(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj);
  27. NTSTATUS
  28. SetLineControl(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj);
  29. NTSTATUS
  30. GetLineControl(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj);
  31. NTSTATUS
  32. SetTimeouts(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  33. NTSTATUS
  34. GetTimeouts(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  35. NTSTATUS
  36. SetChars(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  37. NTSTATUS
  38. GetChars(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  39. NTSTATUS
  40. SetClrDtr(IN PDEVICE_OBJECT PDevObj, IN BOOLEAN Set);
  41. NTSTATUS
  42. ResetDevice(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj);
  43. NTSTATUS
  44. SetRts(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  45. NTSTATUS
  46. ClrRts(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  47. NTSTATUS
  48. SetBreak(IN PIRP Irp, IN PDEVICE_OBJECT PDevObj, IN USHORT Time);
  49. NTSTATUS
  50. SetQueueSize(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  51. NTSTATUS
  52. GetWaitMask(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  53. NTSTATUS
  54. SetWaitMask(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  55. NTSTATUS
  56. WaitOnMask(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  57. NTSTATUS
  58. ImmediateChar(IN PIRP Irp, IN PDEVICE_OBJECT DeviceObject);
  59. NTSTATUS
  60. Purge(IN PDEVICE_OBJECT PDevObj, IN PIRP Irp,
  61. IN PDEVICE_EXTENSION DeviceExtension);
  62. NTSTATUS
  63. GetHandflow(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  64. NTSTATUS
  65. SetHandflow(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  66. NTSTATUS
  67. GetModemStatus(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  68. NTSTATUS
  69. GetDtrRts(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  70. NTSTATUS
  71. GetCommStatus(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  72. NTSTATUS
  73. GetProperties(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  74. NTSTATUS
  75. LsrmstInsert(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  76. NTSTATUS
  77. ConfigSize(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  78. NTSTATUS
  79. GetStats(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  80. NTSTATUS
  81. ClearStats(IN PIRP Irp, IN PDEVICE_EXTENSION DeviceExtension);
  82. VOID
  83. SerialGetProperties(IN PDEVICE_EXTENSION DeviceExtension,
  84. IN PSERIAL_COMMPROP Properties);
  85. NTSTATUS
  86. GetLineControlAndBaud(IN PDEVICE_OBJECT PDevObj);
  87. NTSTATUS
  88. SetLineControlAndBaud(IN PDEVICE_OBJECT PDevObj);
  89. NTSTATUS
  90. NotifyCompletion(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN PVOID Context);
  91. #endif // __SERIOCTL_H__