IScsiIbft.h 757 B

123456789101112131415161718192021222324252627282930313233
  1. /** @file
  2. Some extra definitions for iBFT.
  3. Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _ISCSI_IBFT_H_
  7. #define _ISCSI_IBFT_H_
  8. #include <IndustryStandard/Acpi.h>
  9. #include <IndustryStandard/IScsiBootFirmwareTable.h>
  10. #include <Protocol/AcpiTable.h>
  11. #include <Protocol/PciIo.h>
  12. #define IBFT_TABLE_VAR_NAME L"iBFT"
  13. #define IBFT_MAX_SIZE 4096
  14. #define IBFT_HEAP_OFFSET 2048
  15. #define IBFT_ROUNDUP(size) NET_ROUNDUP ((size), EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_ALIGNMENT)
  16. /**
  17. Publish and remove the iSCSI Boot Firmware Table according to the iSCSI
  18. session status.
  19. **/
  20. VOID
  21. IScsiPublishIbft (
  22. IN VOID
  23. );
  24. #endif