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.

81 lines
1.8 KiB

  1. #ifndef _FR_H
  2. #define _FR_H
  3. #pragma pack(1) /** ensure packed structures **/
  4. typedef BYTE IFR;
  5. typedef IFR FAR* LPIFR;
  6. typedef struct
  7. {
  8. IFR ifr;
  9. BYTE cb;
  10. } FRBASE;
  11. typedef struct
  12. {
  13. FRBASE; /* anonymous */
  14. BYTE fif[1]; /* variable length fif field */
  15. } FR, FAR* LPFR, NEAR* NPFR;
  16. typedef LPFR FAR* LPLPFR;
  17. typedef LPLPFR FAR* LPLPLPFR;
  18. typedef struct
  19. {
  20. BYTE Baud;
  21. BYTE MinScan;
  22. }
  23. LLPARAMS, FAR* LPLLPARAMS, NEAR* NPLLPARAMS;
  24. /** Baud rate capability codes **/
  25. // Bit order is from 14 to 11: 14 13 12 11
  26. #define V27_SLOW 0 // 0000
  27. #define V27_ONLY 2 // 0010
  28. #define V29_ONLY 1 // 0001
  29. #define V33_ONLY 4 // 0100
  30. #define V17_ONLY 8 // 1000
  31. #define V27_V29 3 // 0011
  32. #define V27_V29_V33 7 // 0111
  33. #define V27_V29_V33_V17 11 // 1011
  34. #define V_ALL 15 // 1111
  35. /** Baud rate mode codes **/
  36. #define V27_2400 0 // 0000
  37. #define V29_9600 1 // 0001
  38. #define V27_4800 2 // 0010
  39. #define V29_7200 3 // 0011
  40. #define V33_14400 4 // 0100
  41. #define V33_12000 6 // 0110
  42. #define V17_14400 8 // 1000
  43. #define V17_9600 9 // 1001
  44. #define V17_12000 10 // 1010
  45. #define V17_7200 11 // 1011
  46. /** Minscan capability codes **/
  47. #define MINSCAN_0_0_0 7
  48. #define MINSCAN_5_5_5 1
  49. #define MINSCAN_10_10_10 2
  50. #define MINSCAN_20_20_20 0
  51. #define MINSCAN_40_40_40 4
  52. #define MINSCAN_40_20_20 5
  53. #define MINSCAN_20_10_10 3
  54. #define MINSCAN_10_5_5 6
  55. #define MINSCAN_10_10_5 10
  56. #define MINSCAN_20_20_10 8
  57. #define MINSCAN_40_40_20 12
  58. #define MINSCAN_40_20_10 13
  59. #define MINSCAN_20_10_5 11
  60. #pragma pack()
  61. #endif /* _FR_H */