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.

69 lines
1.7 KiB

  1. #ifndef __IRCOMM_CONTROL__
  2. #define __IRCOMM_CONTROL__
  3. #define PI_ServiceType 0x00
  4. #define PI_DataRate 0x10
  5. #define PI_DataFormat 0x11
  6. #define PI_FLOWCONTROL 0x12
  7. #define PI_XONXOFF 0x13
  8. #define PI_ENQACK 0x14
  9. #define PI_LineStatus 0x15
  10. #define PI_Break 0x16
  11. #define PI_DTESettings 0x20
  12. #define PI_DCESettings 0x21
  13. #define PI_Poll 0x22
  14. #define PV_ServiceType_3_Wire (1 << 1)
  15. #define PV_ServiceType_9_Wire (1 << 2)
  16. #define PV_ServiceType_Centronics (1 << 3)
  17. #define PV_DTESetting_Delta_DTR (1 << 0)
  18. #define PV_DTESetting_Delta_RTS (1 << 1)
  19. #define PV_DTESetting_DTR_High (1 << 2)
  20. #define PV_DTESetting_RTS_High (1 << 3)
  21. #define PV_DataFormat_8_Bits (0x3)
  22. #define PV_DataFormat_7_Bits (0x2)
  23. #define PV_DataFormat_6_Bits (0x1)
  24. #define PV_DataFormat_5_Bits (0x0)
  25. #define PV_DataFormat_1_Stop (0 << 2)
  26. #define PV_DataFormat_2_Stop (1 << 2)
  27. #define PV_DataFormat_No_Parity (0 << 3)
  28. #define PV_DataFormat_Yes_Parity (1 << 3)
  29. #define PV_DataFormat_Odd_Parity (0 << 4)
  30. #define PV_DataFormat_Even_Parity (1 << 4)
  31. #define PV_DataFormat_Mark_Parity (2 << 4)
  32. #define PV_DataFormat_Sapce_Parity (3 << 4)
  33. #define PV_DCESetting_Delta_CTS (1 << 0)
  34. #define PV_DCESetting_Delta_DSR (1 << 1)
  35. #define PV_DCESetting_Delta_RI (1 << 2)
  36. #define PV_DCESetting_Delta_CD (1 << 3)
  37. #define PV_DCESetting_CTS_State (1 << 4)
  38. #define PV_DCESetting_DSR_State (1 << 5)
  39. #define PV_DCESetting_RI_State (1 << 6)
  40. #define PV_DCESetting_CD_State (1 << 7)
  41. typedef struct _CONTROL_INFO {
  42. LIST_ENTRY ListElement;
  43. UCHAR PI;
  44. UCHAR PL;
  45. UCHAR PV[1];
  46. } CONTROL_INFO, *PCONTROL_INFO;
  47. #endif