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.

108 lines
2.4 KiB

  1. #define PCISUPP_CHECKED_HID 1
  2. #define PCISUPP_CHECKED_PCI_DEVICE 2
  3. #define PCISUPP_CHECKED_ADR 8
  4. #define PCISUPP_IS_PCI_DEVICE 0x10
  5. #define PCISUPP_CHECKED_PARENT 0x20
  6. #define PCISUPP_CHECKED_PCI_BRIDGE 0x40
  7. #define PCISUPP_CHECKED_CID 0x80
  8. #define PCISUPP_GOT_SLOT_INFO 0x100
  9. #define PCISUPP_GOT_BUS_INFO 0x200
  10. #define PCISUPP_CHECKED_CRS 0x400
  11. #define PCISUPP_COMPLETING_IS_PCI 0x800
  12. #define PCISUPP_GOT_SCOPE 0x1000
  13. #define PCISUPP_CHECKED_BBN 0x2000
  14. #define PCISUPP_COMPLETION_HANDLER_PFNAA 0
  15. #define PCISUPP_COMPLETION_HANDLER_PFNACB 1
  16. #define INITIAL_RUN_COMPLETION -1
  17. NTSTATUS
  18. EXPORT
  19. PciConfigSpaceHandler (
  20. ULONG AccessType,
  21. PNSOBJ OpRegion,
  22. ULONG Address,
  23. ULONG Size,
  24. PULONG Data,
  25. ULONG Context,
  26. PFNAA CompletionHandler,
  27. PVOID CompletionContext
  28. );
  29. NTSTATUS
  30. EXPORT
  31. PciConfigSpaceHandlerWorker(
  32. IN PNSOBJ AcpiObject,
  33. IN NTSTATUS Status,
  34. IN POBJDATA Result,
  35. IN PVOID Context
  36. );
  37. VOID
  38. ACPIInitBusInterfaces(
  39. PDEVICE_OBJECT Filter
  40. );
  41. VOID
  42. ACPIDeleteFilterInterfaceReferences(
  43. IN PDEVICE_EXTENSION DeviceExtension
  44. );
  45. BOOLEAN
  46. IsPciBus(
  47. IN PDEVICE_OBJECT DeviceObject
  48. );
  49. BOOLEAN
  50. IsPciBusExtension(
  51. IN PDEVICE_EXTENSION DeviceObject
  52. );
  53. NTSTATUS
  54. IsPciBusAsync(
  55. IN PNSOBJ AcpiObject,
  56. IN PFNACB CompletionHandler,
  57. IN PVOID CompletionContext,
  58. OUT BOOLEAN *Result
  59. );
  60. NTSTATUS
  61. EXPORT
  62. IsPciBusAsyncWorker(
  63. IN PNSOBJ AcpiObject,
  64. IN NTSTATUS Status,
  65. IN POBJDATA Result,
  66. IN PVOID Context
  67. );
  68. NTSTATUS
  69. IsPciDevice(
  70. IN PNSOBJ AcpiObj,
  71. IN PFNACB CompletionHandler,
  72. IN PVOID CompletionContext,
  73. OUT BOOLEAN *Result
  74. );
  75. NTSTATUS
  76. EXPORT
  77. IsPciDeviceWorker(
  78. IN PNSOBJ AcpiObject,
  79. IN NTSTATUS Status,
  80. IN POBJDATA Result,
  81. IN PVOID Context
  82. );
  83. BOOLEAN
  84. IsNsobjPciBus(
  85. IN PNSOBJ Device
  86. );
  87. NTSTATUS
  88. EnableDisableRegions(
  89. IN PNSOBJ NameSpaceObj,
  90. IN BOOLEAN Enable
  91. );