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.

129 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. sudata.h
  5. Abstract:
  6. This file contains definition for ExportEntryTable and AbiosServices
  7. Table.
  8. Author:
  9. Allen Kay (allen.m.kay@intel.com) 12-Jan-2000
  10. --*/
  11. //
  12. // EFI gloal variables
  13. //
  14. extern EFI_SYSTEM_TABLE *EfiST;
  15. extern EFI_BOOT_SERVICES *EfiBS;
  16. extern EFI_RUNTIME_SERVICES *EfiRS;
  17. extern EFI_HANDLE EfiImageHandle;
  18. //
  19. // EFI GUID defines
  20. //
  21. extern EFI_GUID EfiLoadedImageProtocol;
  22. extern EFI_GUID EfiDevicePathProtocol;
  23. extern EFI_GUID EfiDeviceIoProtocol;
  24. extern EFI_GUID EfiBlockIoProtocol;
  25. extern EFI_GUID EfiFilesystemProtocol;
  26. extern EFI_GUID MpsTableGuid;
  27. extern EFI_GUID AcpiTableGuid;
  28. extern EFI_GUID SmbiosTableGuid;
  29. extern EFI_GUID SalSystemTableGuid;
  30. //
  31. // Other gloal variables
  32. //
  33. extern PVOID ExportEntryTable[];
  34. extern PVOID AcpiTable;
  35. extern TR_INFO Pal;
  36. extern TR_INFO Sal;
  37. extern TR_INFO SalGP;
  38. extern ULONGLONG IoPortPhysicalBase;
  39. extern ULONGLONG IoPortTrPs;
  40. extern ULONG WakeupVector;
  41. //
  42. // PAL, SAL, and IO port space data
  43. //
  44. typedef
  45. EFI_STATUS
  46. (EFIAPI *PAL_PROC) (
  47. IN ULONGLONG Index,
  48. IN ULONGLONG CacheType,
  49. IN ULONGLONG Invalidate,
  50. IN ULONGLONG PlatAck
  51. );
  52. //
  53. // Function Prototypes
  54. //
  55. ULONG
  56. GetDevPathSize(
  57. IN EFI_DEVICE_PATH *DevPath
  58. );
  59. BOOLEAN
  60. ConstructMemoryDescriptors(
  61. );
  62. BOOLEAN
  63. ConstructCacheDescriptors (
  64. );
  65. VOID
  66. FlipToPhysical (
  67. );
  68. VOID
  69. FlipToVirtual (
  70. );
  71. BOOLEAN
  72. IsPsrDtOn (
  73. VOID
  74. );
  75. VOID
  76. BlInstTransOn (
  77. );
  78. VOID
  79. PioICacheFlush (
  80. );
  81. VOID
  82. ReadProcessorConfigInfo (
  83. PPROCESSOR_CONFIG_INFO ProcessorConfigInfo
  84. );
  85. VOID
  86. CheckForPreA2Processors(
  87. );
  88. VOID
  89. EnforcePostB2Processor(
  90. );
  91. VOID
  92. EnforcePostVersion16PAL(
  93. );