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.

78 lines
4.0 KiB

  1. ; INS8250 ACE Register Offsets And Bit Definitions
  2. ACE_RBR equ 0 ;Receiver Buffer
  3. ACE_THR equ 0 ;Transmit Holding Register
  4. ACE_IER equ 1 ;Interrupt Enable
  5. ACE_ERBFI equ 00000001b ; Received Data Available
  6. ACE_ETBEI equ 00000010b ; Transmitter Holding Register Empty
  7. ACE_ELSI equ 00000100b ; Receiver Line Status
  8. ACE_EDSSI equ 00001000b ; Modem Status
  9. ACE_FCR equ 2 ;FIFO control register
  10. ACE_EFIFO equ 00000001b ; Enable FIFO
  11. ACE_CRFIFO equ 00000010b ; Clear receive FIFO queue
  12. ACE_CTFIFO equ 00000100b ; Clear transmit FIFO queue
  13. ACE_TRIG01 equ 00000000b ; Trigger receive int on every char
  14. ACE_TRIG04 equ 01000000b ; Trigger receive int on every 4th char
  15. ACE_TRIG08 equ 10000000b ; Trigger receive int on every 8th char
  16. ACE_TRIG14 equ 11000000b ; Trigger receive int on every 14th char
  17. ACE_IIDR equ 2 ;Interrupt Identification
  18. ACE_IIP equ 00000001b ; Inverted Interrupt Pending (0=int)
  19. ACE_IID equ 00000110b ; Interrupt ID
  20. ACE_MSI equ 00000000b ; Modem Status
  21. ACE_THREI equ 00000010b ; Transmitter Holding Register Empty
  22. ACE_RDAI equ 00000100b ; Received Data Available
  23. ACE_RLSI equ 00000110b ; Receiver Line Status
  24. ACE_FIFO_E1 equ 01000000b ;set, if FIFO enabled on 16550A
  25. ACE_FIFO_E2 equ 10000000b ;set, if FIFO enabled on 16550 or 16550A
  26. ACE_LCR equ 3 ;Line Control
  27. ACE_WLS equ 00000011b ; Word Length Select Bits
  28. ACE_WLS0 equ 00000001b ; Word Length Select Bit 0
  29. ACE_WLS1 equ 00000010b ; Word Length Select Bit 1
  30. ACE_5BW equ 00000000b ; 5 Bit Words
  31. ACE_6BW equ 00000001b ; 6 Bit Words
  32. ACE_7BW equ 00000010b ; 7 Bit Words
  33. ACE_8BW equ 00000011b ; 8 Bit Words
  34. ACE_STB equ 00000100b ; Stop Bits
  35. ACE_1SB equ 00000000b ; 1 Stop Bits (1.5 for 5 bit words)
  36. ACE_2SB equ 00000100b ; 2 Stop Bits
  37. ACE_PEN equ 00001000b ; Parity Enable
  38. ACE_PSB equ 00110000b ; Parity select bits
  39. ACE_EPS equ 00010000b ; Even Parity Select
  40. ACE_SP equ 00100000b ; Stick Parity
  41. ACE_SB equ 01000000b ; Set Break
  42. ACE_DLAB equ 10000000b ; Divisor Latch Access Bit
  43. ACE_MCR equ 4 ;Modem Control
  44. ACE_DTR equ 00000001b ; Data Terminal ready
  45. ACE_RTS equ 00000010b ; Request To Send
  46. ACE_OUT1 equ 00000100b ; Output Line 1
  47. ACE_OUT2 equ 00001000b ; Output Line 2
  48. ACE_LOOP equ 00010000b ; Loopback
  49. ACE_LSR equ 5 ;Line Status
  50. ACE_DR equ 00000001b ; Data Ready
  51. ACE_OR equ 00000010b ; Overrun Error
  52. ACE_PE equ 00000100b ; Parity Error
  53. ACE_FE equ 00001000b ; Framing Error
  54. ACE_BI equ 00010000b ; Break Interrupt
  55. ACE_THRE equ 00100000b ; Transmitter Holding Register Empty
  56. ACE_TSRE equ 01000000b ; Transmitter Shift Register Empty
  57. ACE_MSR equ 6 ;Modem Status
  58. ACE_DCTS equ 00000001b ; Delta Clear to Send
  59. ACE_DDSR equ 00000010b ; Delta Data Set Ready
  60. ACE_TERI equ 00000100b ; Trailing Edge Ring Indicator
  61. ACE_DRLSD equ 00001000b ; Delta Receive Line Signal Detect
  62. ACE_CTS equ 00010000b ; Clear To Send
  63. ACE_DSR equ 00100000b ; Data Set ready
  64. ACE_RI equ 01000000b ; Ring Indicator
  65. ACE_RLSD equ 10000000b ; Receive Line Signal Detect
  66. ACE_DLL equ 0 ;LSB Baud Rate Divisor
  67. ACE_DLM equ 1 ;MSB Baud Rate Divisor