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.

116 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-2000 Microsoft Corporation
  3. Module Name:
  4. pbdata.c
  5. Abstract:
  6. Declares various data which is specific to PNP ISA bus extender architecture and
  7. is independent of BIOS.
  8. Author:
  9. Shie-Lin Tzong (shielint) July-26-95
  10. Environment:
  11. Kernel mode only.
  12. Revision History:
  13. --*/
  14. #include "busp.h"
  15. // global variable for configuring level of debug spew.
  16. ULONG PipDebugMask = DEBUG_WARN | DEBUG_ERROR;
  17. //
  18. // global varialbe to remember the driver object created
  19. // by IO mgr.
  20. //
  21. PDRIVER_OBJECT PipDriverObject;
  22. //
  23. // regPNPISADeviceName
  24. //
  25. WCHAR rgzPNPISADeviceName[] = DEVSTR_PNPISA_DEVICE_NAME;
  26. //
  27. // Pointers to bus extension data.
  28. //
  29. PBUS_EXTENSION_LIST PipBusExtension;
  30. //
  31. // PipRegistryPath stores the registry path that we got upon driver entry.
  32. // This is used later when we're attempting to allocate resources.
  33. //
  34. UNICODE_STRING PipRegistryPath;
  35. //
  36. // Variables to protect critical region.
  37. //
  38. KEVENT PipDeviceTreeLock;
  39. KEVENT IsaBusNumberLock;
  40. //
  41. // Bus Number and DMA control counters
  42. //
  43. ULONG BusNumberBuffer [256/sizeof (ULONG)];
  44. RTL_BITMAP BusNumBMHeader;
  45. PRTL_BITMAP BusNumBM;
  46. ULONG ActiveIsaCount;
  47. USHORT PipFirstInit;
  48. #if ISOLATE_CARDS
  49. // current bus "state"
  50. PNPISA_STATE PipState = PiSWaitForKey;
  51. //
  52. // Read_data_port address
  53. // (This is mainly for convinience. It duplicates the
  54. // ReadDataPort field in BUS extension structure.)
  55. //
  56. ULONG ADDRESS_PORT=0x0279;
  57. ULONG COMMAND_PORT=0x0a79;
  58. PUCHAR PipReadDataPort;
  59. PUCHAR PipCommandPort;
  60. PUCHAR PipAddressPort;
  61. //
  62. // The global pointer to the Read Data Port DevNode
  63. //
  64. PDEVICE_INFORMATION PipRDPNode;
  65. //
  66. // ActiveIsaCount data port range selection array
  67. //
  68. //this conflicts with Compaq 2ndary IDE {0x374, 0x377, 4},
  69. READ_DATA_PORT_RANGE
  70. PipReadDataPortRanges[READ_DATA_PORT_RANGE_CHOICES] =
  71. {{0x274, 0x277, 4},
  72. {0x3E4, 0x3E7, 4},
  73. {0x204, 0x207, 4},
  74. {0x2E4, 0x2E7, 4},
  75. {0x354, 0x357, 4},
  76. {0x2F4, 0x2F7, 4}};
  77. BOOLEAN PipIsolationDisabled;
  78. #endif