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.

79 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. chiphacks.h
  5. Abstract:
  6. Implements utilities for finding and hacking
  7. various chipsets
  8. Author:
  9. Jake Oshins (jakeo) 10/02/2000
  10. Environment:
  11. Kernel mode only.
  12. Revision History:
  13. --*/
  14. #include "halp.h"
  15. #include "pci.h"
  16. #define PM_TIMER_HACK_FLAG 1
  17. #define DISABLE_HIBERNATE_HACK_FLAG 2
  18. #define SET_ACPI_IRQSTACK_HACK_FLAG 4
  19. #define WHACK_ICH_USB_SMI_HACK_FLAG 8
  20. NTSTATUS
  21. HalpGetChipHacks(
  22. IN USHORT VendorId,
  23. IN USHORT DeviceId,
  24. IN ULONG Ssid OPTIONAL,
  25. OUT ULONG *HackFlags
  26. );
  27. BOOLEAN
  28. HalpDoesChipNeedHack(
  29. IN USHORT VendorId,
  30. IN USHORT DeviceId,
  31. IN ULONG Ssid OPTIONAL,
  32. IN ULONG HackFlag
  33. );
  34. VOID
  35. HalpStopOhciInterrupt(
  36. ULONG BusNumber,
  37. PCI_SLOT_NUMBER SlotNumber
  38. );
  39. VOID
  40. HalpStopUhciInterrupt(
  41. ULONG BusNumber,
  42. PCI_SLOT_NUMBER SlotNumber,
  43. BOOLEAN ResetHostController
  44. );
  45. VOID
  46. HalpSetAcpiIrqHack(
  47. ULONG Value
  48. );
  49. VOID
  50. HalpWhackICHUsbSmi(
  51. ULONG BusNumber,
  52. PCI_SLOT_NUMBER SlotNumber
  53. );
  54. VOID
  55. HalpClearSlpSmiStsInICH(
  56. VOID
  57. );