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.

80 lines
1.4 KiB

  1. #ifndef _SPCIWMI_
  2. #define _SPCIWMI_
  3. BOOL
  4. SoftPCI_AllocWmiInstanceName(
  5. OUT PWCHAR WmiInstanceName,
  6. IN PWCHAR DeviceId
  7. );
  8. BOOL
  9. SoftPCI_AllocWnodeSI(
  10. IN PPCI_DN Pdn,
  11. IN LPGUID Guid,
  12. IN PVOID Buffer,
  13. IN ULONG BufferSize,
  14. OUT PWNODE_SINGLE_INSTANCE *WnodeForBuffer
  15. );
  16. BOOL
  17. SoftPCI_SetEventContext(
  18. IN PPCI_DN ControllerDevnode
  19. );
  20. BOOL
  21. SoftPCI_GetHotplugData(
  22. IN PPCI_DN ControllerDevnode,
  23. IN PHPS_HWINIT_DESCRIPTOR HpData
  24. );
  25. BOOL
  26. SoftPCI_ExecuteHotplugSlotMethod(
  27. IN PPCI_DN ControllerDevnode,
  28. IN UCHAR SlotNum,
  29. IN HPS_SLOT_EVENT_TYPE EventType
  30. );
  31. BOOL
  32. SoftPCI_AddHotplugDevice(
  33. IN PPCI_DN ControllerDevnode,
  34. IN PSOFTPCI_DEVICE Device
  35. );
  36. BOOL
  37. SoftPCI_RemoveHotplugDevice(
  38. IN PPCI_DN ControllerDevnode,
  39. IN UCHAR SlotNum
  40. );
  41. BOOL
  42. SoftPCI_GetHotplugDevice(
  43. IN PPCI_DN ControllerDevnode,
  44. IN UCHAR SlotNum,
  45. OUT PSOFTPCI_DEVICE Device
  46. );
  47. BOOL
  48. SoftPCI_GetSlotStatus(
  49. IN PPCI_DN ControllerDevnode,
  50. IN UCHAR SlotNum,
  51. OUT PSHPC_SLOT_STATUS_REGISTER StatusReg
  52. );
  53. VOID
  54. SoftPCI_CompleteCommand(
  55. IN PPCI_DN ControllerDevnode
  56. );
  57. VOID
  58. SoftPCI_RegisterHotplugEvents(
  59. VOID
  60. );
  61. VOID
  62. SoftPCI_HotplugEventCallback(
  63. IN PWNODE_HEADER WnodeHeader,
  64. IN ULONG Context
  65. );
  66. #define EQUAL_GUID(a,b) (RtlEqualMemory(a,b,sizeof(GUID)))
  67. #endif