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.

73 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. db.c
  5. Abstract:
  6. This module contains the code that contains
  7. Databook carbus controller specific initialization and
  8. other dispatches
  9. Author:
  10. Ravisankar Pudipeddi (ravisp) 1-Nov-97
  11. Environment:
  12. Kernel mode
  13. Revision History :
  14. --*/
  15. #include "pch.h"
  16. VOID
  17. DBInitialize(IN PFDO_EXTENSION FdoExtension)
  18. /*++
  19. Routine Description:
  20. Initialize Databook cardbus controllers
  21. Arguments:
  22. FdoExtension - Pointer to the device extension for the controller FDO
  23. Return Value:
  24. None
  25. --*/
  26. {
  27. PcicWriteSocket(FdoExtension->SocketList,
  28. PCIC_INTERRUPT,
  29. (UCHAR) (PcicReadSocket(FdoExtension->SocketList, PCIC_INTERRUPT)
  30. | IGC_INTR_ENABLE));
  31. }
  32. BOOLEAN
  33. DBSetZV(
  34. IN PSOCKET Socket,
  35. IN BOOLEAN Enable
  36. )
  37. {
  38. if (Enable) {
  39. PcicWriteSocket(Socket, PCIC_DBK_ZV_ENABLE, DBK_ZVE_MM_MODE);
  40. } else {
  41. PcicWriteSocket(Socket, PCIC_DBK_ZV_ENABLE, DBK_ZVE_STANDARD_MODE);
  42. }
  43. return TRUE;
  44. }