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.

76 lines
2.2 KiB

  1. /*
  2. tefti.h
  3. TEFTI DLL information and API definitions
  4. */
  5. /* * * * * TEFTI TIMER BOARD * * * * *
  6. ;
  7. ; Base port address is variable depending on jumper settings of
  8. ; card. Port address will default to 220h, but can also be set
  9. ; for DLL to read from system.ini during initialization. This is
  10. ; particularly necessary for Multimedia Windows becuase the default
  11. ; port address for the SoundBlaster audio card is 220h.
  12. ;
  13. ; Jumper Definition
  14. ;
  15. ; --------------
  16. ; 20|
  17. ; | A7 A6 A5 A4
  18. ; 19|
  19. ; --------------
  20. ;
  21. ; Jumper defines the BASE address per the following table:
  22. ;
  23. ; A7 A6 A5 A4 system.ini port= entry
  24. ;
  25. ; 0 0 0 0 200h 200
  26. ; 0 0 0 1 210h 210
  27. ; 0 0 1 0 220h 220
  28. ; 0 0 1 1 230h 230
  29. ; 0 1 0 0 240h 240
  30. ; 0 1 0 1 250h 250
  31. ; 0 1 1 0 260h 260
  32. ; 0 1 1 1 270h 270
  33. ; 1 0 0 0 280h 280
  34. ; 1 0 0 1 290h 290
  35. ; 1 0 1 0 2A0h 300
  36. ; 1 0 1 1 2B0h 310
  37. ; 1 1 0 0 2C0h 320
  38. ; 1 1 0 1 2D0h 330
  39. ; 1 1 1 0 2E0h 340
  40. ; 1 1 1 1 2F0h 350
  41. ;
  42. ;
  43. ; Jumper in place corresponds to '0' in that particular position.
  44. ;
  45. ; Frequency for counter 1 is variable depending on system.ini section
  46. ; or zero for default. counter 3 is chained to counter 1 to hold all
  47. ; overflow, producing a 32 bit counter value.
  48. ;
  49. ; Frequency setting are per the following table:
  50. ;
  51. ; Value Frequency Resolution Approx. Time to rollover (32 bit)
  52. ;
  53. ; 0 1Mhz 1 microsec 1hr. 11min. 57sec.
  54. ; 1 250Khz 4 microsec 4hr. 47min. 48sec.
  55. ; 2 62.5Khz 16 microsec 15hr. 11min. 12sec.
  56. ; 3 15.625Khz 64 microsec 60hr. 44min. 48sec.
  57. ; 4 7.8125Khz 256 microsec 242hr. 15min. 12sec.
  58. ; 5 976.5625Hz 1.024 millisec .
  59. ; 6 122.0703Hz 8.196 millisec a LONG . TIME!
  60. ; 7 30.5175Hz 32.784 millisec .
  61. ;
  62. ;* * * * * * * * * * * * * * * * * * */
  63. void far pascal StartTimer(void);
  64. void far pascal StopTimer(void);
  65. void far pascal ResetTimer(void);
  66. unsigned long far pascal GetTimer(void);
  67. unsigned long far pascal SnapTimer(void);
  68. WORD far pascal InitTimer(void);
  69. short far pascal IT(void);
  70. void far pascal EndTimer(void);