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.

43 lines
1.6 KiB

  1. ;---------------------------------------------------;
  2. ; Include file for 16bits sample application
  3. ; Copyright (C) 1992, Microsoft Corporation
  4. ;---------------------------------------------------;
  5. TRUE equ 0FFh
  6. FALSE equ NOT(TRUE)
  7. ;
  8. ;I/O mapped I/O port equates
  9. ;
  10. IO_PORT_FIRST equ 790h ;The first I/O port addr
  11. IO_PORT_LAST equ 793h ;The last I/O port addr
  12. IO_PORT_FIRE_DMA_SLOW equ IO_PORT_FIRST ;Port addr to trigger DMA
  13. IO_PORT_FIRE_DMA_FAST equ IO_PORT_FIRST + 1 ;port to trigger DMA
  14. IO_PORT_DMA equ IO_PORT_FIRST+2 ;port connnected to DMA channel
  15. ;
  16. ;Memory mapped I/O port equates ;segment address
  17. ;
  18. MIO_SEGMENT equ 0C000h
  19. MIO_PORT_FIRST equ 0 ;The first port addr(offset)
  20. MIO_PORT_LAST equ 07 ;the last port addr(offset)
  21. MIO_PORT_RANGE equ MIO_PORT_LAST - MIO_PORT_FIRST + 1
  22. MIO_PORT_FIRE_DMA equ MIO_PORT_FIRST ;Port to trigger DMA
  23. MIO_PORT_DMA equ MIO_PORT_FIRST+1;port connected to DMA channel
  24. ;
  25. ;DMA equates
  26. ;
  27. DMA_INTERRUPT equ 70h + 2 ;slave PIC, line #2(0 based)
  28. DMA_CHANNEL equ 01h ;DMA #1, channel #1(0 based)
  29. DMA_PORT_BASE equ 00
  30. DMA_PORT_PAGE equ 083h
  31. DMA_PORT_ADDR equ DMA_PORT_BASE + 2
  32. DMA_PORT_COUNT equ DMA_PORT_BASE + 3
  33. DMA_PORT_CMD equ DMA_PORT_BASE + 8
  34. DMA_PORT_REQUEST equ DMA_PORT_BASE + 9
  35. DMA_PORT_SNGLE_MASK equ DMA_PORT_BASE + 10
  36. DMA_PORT_MODE equ DMA_PORT_BASE + 11
  37. DMA_PORT_FLIPFLOP equ DMA_PORT_BASE + 12
  38. DMA_PORT_TEMP equ DMA_PORT_BASE + 13
  39. DMA_PORT_CLEARMASK equ DMA_PORT_BASE + 14
  40. DMA_PORT_WRTEMASK equ DMA_PORT_BASE + 15