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.

95 lines
2.2 KiB

  1. ;******************************************************************************
  2. ;
  3. ; (C) Copyright MICROSOFT Corp., 1990
  4. ;
  5. ; Title: BIMODINT.INC - Bimodal Interrupt Handler Equates and Structures
  6. ;
  7. ; Version: 1.00
  8. ;
  9. ; Date: 14-Nov-1990
  10. ;
  11. ; Author: RAL
  12. ;
  13. ;------------------------------------------------------------------------------
  14. ;
  15. ; Change log:
  16. ;
  17. ; DATE REV DESCRIPTION
  18. ; ----------- --- -----------------------------------------------------------
  19. ; 14-Nov-1990 RAL Original
  20. ;
  21. ;==============================================================================
  22. Bimodal_Int_Struc STRUC
  23. BIS_IRQ_Number dw ?
  24. BIS_VM_ID dw 0
  25. BIS_Next dd ?
  26. BIS_Reserved1 dd ?
  27. BIS_Reserved2 dd ?
  28. BIS_Reserved3 dd ?
  29. BIS_Reserved4 dd ?
  30. BIS_Flags dd 0
  31. BIS_Mode dw 0
  32. BIS_Entry dw ?
  33. BIS_Control_Proc dw ?
  34. dw ?
  35. BIS_User_Mode_API dd ?
  36. BIS_Super_Mode_API dd ?
  37. BIS_User_Mode_CS dw ?
  38. BIS_User_Mode_DS dw ?
  39. BIS_Super_Mode_CS dw ?
  40. BIS_Super_Mode_DS dw ?
  41. BIS_Descriptor_Count dw ?
  42. Bimodal_Int_Struc ENDS
  43. BIS_Sel_Table equ word ptr (SIZE Bimodal_Int_Struc)
  44. EBIS_Sel_Struc STRUC
  45. EBIS_User_Mode_Sel dw ?
  46. dw ?
  47. EBIS_Super_Mode_Sel dw ?
  48. EBIS_Sel_Struc ENDS
  49. .errnz BIS_Super_Mode_API-BIS_User_Mode_API-4
  50. .errnz BIS_Super_Mode_CS-BIS_User_Mode_CS-4
  51. .errnz BIS_Super_Mode_DS-BIS_User_Mode_DS-4
  52. .errnz EBIS_Super_Mode_Sel-EBIS_User_Mode_Sel-4
  53. VPICD_API_Get_Ver EQU 0000h
  54. VPICD_Install_Handler EQU 0001h
  55. VPICD_Remove_Handler EQU 0002h
  56. VPICD_Call_At_Ring0 EQU 0003h
  57. BIH_API_EOI EQU 0000h
  58. BIH_API_Mask EQU 0001h
  59. BIH_API_Unmask EQU 0002h
  60. BIH_API_Get_Mask EQU 0003h
  61. BIH_API_Get_IRR EQU 0004h
  62. BIH_API_Get_ISR EQU 0005h
  63. BIH_API_Call_Back EQU 0006h
  64. Declare_PM_BIS MACRO IRQn,CtrlP,ISRoff,APIoff,ISRcs,ISRds
  65. LOCAL strt
  66. strt label byte
  67. dw IRQn ; BIS_IRQ_Number
  68. dw 0 ; BIS_VM_ID
  69. dd 6 DUP(0) ; BIS_Next/BIS_Reserved1-BIS_Reserved4/BIS_Flags
  70. dw 0 ; BIS_Mode
  71. dw ISRoff ; BIS_Entry
  72. dw CtrlP ; BIS_Control_Proc
  73. dw 0 ; filler
  74. dw APIoff ; BIS_User_Mode_API
  75. dw ISRcs
  76. dd 0 ; BIS_Super_Mode_API
  77. dw ISRcs ; BIS_User_Mode_CS
  78. dw ISRds ; BIS_User_Mode_DS
  79. dw 0 ; BIS_Super_Mode_CS
  80. dw 0 ; BIS_Super_Mode_DS
  81. dw 0 ; BIS_Descriptor_Count
  82. .errnz $-strt - (SIZE Bimodal_Int_Struc)
  83. ENDM