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.

102 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. eisa.h
  5. Abstract:
  6. This module contains the i386 EISA bus specific header file.
  7. Author:
  8. Shie-Lin Tzong (shielint) 6-June-1991
  9. Revision History:
  10. --*/
  11. //
  12. // SU module's version of the memory descriptor
  13. //
  14. typedef struct _MEMORY_LIST_ENTRY {
  15. ULONG BlockBase;
  16. ULONG BlockSize;
  17. } MEMORY_LIST_ENTRY, *PMEMORY_LIST_ENTRY;
  18. //
  19. // SU module's version of the address space parameters for int-15 E820 calls
  20. //
  21. typedef struct {
  22. ULONG ErrorFlag;
  23. ULONG Key;
  24. ULONG Size;
  25. struct {
  26. ULONG BaseAddrLow;
  27. ULONG BaseAddrHigh;
  28. ULONG SizeLow;
  29. ULONG SizeHigh;
  30. ULONG MemoryType;
  31. } Descriptor;
  32. } E820Frame;
  33. //
  34. // Misc. definitions
  35. //
  36. #define _16MEGB ((ULONG)16 * 1024 * 1024)
  37. #define _64MEGB ((ULONG)64 * 1024 * 1024)
  38. typedef CM_EISA_SLOT_INFORMATION BTEISA_SLOT_INFORMATION;
  39. typedef CM_EISA_SLOT_INFORMATION *PBTEISA_SLOT_INFORMATION;
  40. typedef CM_EISA_FUNCTION_INFORMATION BTEISA_FUNCTION_INFORMATION;
  41. typedef CM_EISA_FUNCTION_INFORMATION *PBTEISA_FUNCTION_INFORMATION;
  42. typedef EISA_MEMORY_CONFIGURATION BTEISA_MEMORY_CONFIGURATION;
  43. typedef EISA_MEMORY_CONFIGURATION *PBTEISA_MEMORY_CONFIGURATION;
  44. BOOLEAN
  45. FindFunctionInformation (
  46. IN UCHAR SlotFlags,
  47. IN UCHAR FunctionFlags,
  48. OUT PBTEISA_FUNCTION_INFORMATION Buffer,
  49. IN BOOLEAN FromBeginning
  50. );
  51. USHORT
  52. CountMemoryBlocks (
  53. VOID
  54. );
  55. ULONG
  56. EisaConstructMemoryDescriptors (
  57. VOID
  58. );
  59. UCHAR
  60. BtGetEisaSlotInformation (
  61. PBTEISA_SLOT_INFORMATION SlotInformation,
  62. UCHAR Slot
  63. );
  64. UCHAR
  65. BtGetEisaFunctionInformation (
  66. PBTEISA_FUNCTION_INFORMATION FunctionInformation,
  67. UCHAR Slot,
  68. UCHAR Function
  69. );
  70. BOOLEAN
  71. BtIsEisaSystem (
  72. VOID
  73. );
  74. //
  75. // External References
  76. //
  77. extern MEMORY_LIST_ENTRY _far *MemoryDescriptorList;