fastlynx.inc
上传用户:xiaoan1112
上传日期:2013-04-11
资源大小:19621k
文件大小:4k
源码类别:

操作系统开发

开发平台:

Visual C++

  1.                         PAGE    66, 132
  2. INCLUDE     macros.inc
  3. TRUE                    EQU     1
  4. FALSE                   EQU     0
  5. MAX_PORTS               EQU     8
  6. MAX_BIOS_SERIAL         EQU     4
  7. MAX_BIOS_PARALLEL       EQU     3
  8. SERIAL_PORT             EQU     0
  9. PARALLEL_PORT           EQU     1
  10. PARALLEL_NORMAL         EQU     0
  11. PARALLEL_TURBO          EQU     1
  12. IFDEF _PAR18
  13. PARALLEL_11_WIRE        EQU     0
  14. PARALLEL_18_WIRE        EQU     1
  15. PARALLEL_BIDIRECTIONAL  EQU     2
  16. ENDIF
  17. BAUD_1200               EQU     0
  18. BAUD_2400               EQU     1
  19. BAUD_4800               EQU     2
  20. BAUD_9600               EQU     3
  21. BAUD_19200              EQU     4
  22. BAUD_38400              EQU     5
  23. BAUD_57600              EQU     6
  24. BAUD_115200             EQU     7
  25. SEND_OPERATION          EQU     0
  26. RECV_OPERATION          EQU     1
  27. MINIMUM_TICKS           EQU     4
  28. FX_ERR_TIMEOUT          EQU     -1
  29. FX_ERR_CRC              EQU     -2
  30. FX_ERR_FAIL             EQU     -3
  31. FX_ERR_BAD_COUNT        EQU     -4
  32. FX_ERR_BAD_SEQUENCE     EQU     -5
  33. FxBiosInfo              STRUC
  34.     num_serial          db  ?       ;NOTE: num_serial must immediately precede
  35.     num_parallel        db  ?       ;num_parallel because a word store is used
  36.     serial_address      dw  MAX_BIOS_SERIAL DUP(?)
  37.     parallel_address    dw  MAX_BIOS_PARALLEL DUP(?)
  38. FxBiosInfo              ENDS
  39.                 
  40. FxPortInfoDef           STRUC
  41.     pi_type             db  ?
  42.     pi_biosnum          db  ?
  43.     pi_address          dw  ?
  44.     pi_flags            db  ?
  45. FxPortInfoDef           ENDS
  46. MAX_SERIAL_BLOCK        EQU     8 * 1024
  47. ;--- Definition of bits in the sequence number/flags byte
  48. BYTE_LENGTH             EQU     10000000B
  49. CONTINUED_PACKET        EQU     01000000B
  50. COMPRESSED              EQU     00100000B
  51. SEVEN_WIRE              EQU     00010000B
  52. USE_CHECKSUM            EQU     00001000B
  53. ECHOPLEX                EQU     00000100B
  54. SEQUENCE_BITS           EQU     00000011B
  55. IDLE_BITS               EQU     11111100B
  56. FXS_FORCE_CRC           EQU     0
  57. FXS_ALLOW_CHECKSUM      EQU     USE_CHECKSUM
  58. FxSettingsDef               STRUC
  59.     fxs_time_out            dw  2 * 18          ; Default timeout of 2 seconds
  60.     fxs_error_checking_mode db  FXS_FORCE_CRC   ; Default to using CRC only
  61.     fxs_max_serial_block    dw  MAX_SERIAL_BLOCK
  62.     fxs_max_serial_baud     db  BAUD_115200
  63.     fxs_allow_7_wire        dw  1               ; Default to enabled
  64. FxSettingsDef               ENDS
  65. CHECK_ABORT_WAITING     EQU     0
  66. CHECK_ABORT_DONE        EQU     1
  67. ONE_SECOND              EQU     18
  68. SEWELL_OEM_ID  EQU  298 SHL 5
  69. FX_ID          EQU    0         ; 0 - 7 are the only ones available under this
  70.                                 ; OEM ID.
  71. VFXD_Device_ID EQU  SEWELL_OEM_ID OR FX_ID
  72.                         .DATA
  73.                 EXTRN   C fx_port:WORD
  74.                 EXTRN   C fx_baud:BYTE
  75.                 EXTRN   C fx_parallel_speed:BYTE
  76.         EXTRN C fx_num_ports:WORD
  77.                 EXTRN   C fx_serial_7_wire:BYTE
  78.                 EXTRN   C fx_send_variable:BYTE
  79.                 EXTRN   C fx_recv_variable:BYTE
  80.                 EXTRN   C fx_error_checking_mode:BYTE
  81.                 EXTRN   C FxPortInfo:BYTE
  82.                 EXTRN   C fx_errno:WORD
  83.                 EXTRN   C fx_max_serial_block:WORD
  84.                 EXTRN   C fx_max_serial_baud:BYTE
  85.                 EXTRN   C fx_error_checking_mode:BYTE
  86.                 EXTRN   C fx_force_variable:BYTE
  87.         IFDEF   _PAR18
  88.                 EXTRN   C fx_parallel_mode:BYTE
  89.                 EXTRN   C fx_disable_par18:BYTE
  90.         ENDIF
  91.         IFNDEF  FX_MAIN
  92.                 EXTRN   fx_port_save_area:BYTE
  93.                 EXTRN   fx_connect_vector:WORD
  94.                 EXTRN   fx_listen_vector:WORD
  95.                 EXTRN   fx_tail:WORD
  96.                 EXTRN   fx_index:WORD
  97.                 EXTRN   seq_num:BYTE
  98.                 EXTRN   C FxSettings:BYTE
  99.         ENDIF