]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.h
sync comments, fix function header, rename variable name to follow coding style.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiIbft.h
1 /** @file
2 Some extra definitions for iBFT
3
4 Copyright (c) 2004 - 2008, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13 Module Name:
14
15 IScsiIbft.h
16
17 Abstract:
18
19 Some extra definitions for iBFT.
20
21 **/
22
23 #ifndef _ISCSI_IBFT_H_
24 #define _ISCSI_IBFT_H_
25
26 #include <IndustryStandard/IScsiBootFirmwareTable.h>
27 #include <Protocol/AcpiSupport.h>
28 #include <Protocol/PciIo.h>
29
30 #define IBFT_TABLE_VAR_NAME L"iBFT"
31 #define IBFT_MAX_SIZE 4096
32 #define IBFT_HEAP_OFFSET 2048
33
34 #define IBFT_ROUNDUP(size) NET_ROUNDUP ((size), EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_ALIGNMENT)
35
36 /**
37 Publish and remove the iSCSI Boot Firmware Table according to the iSCSI
38 session status.
39
40 @param None.
41
42 @retval None.
43
44 **/
45 VOID
46 IScsiPublishIbft (
47 IN VOID
48 );
49
50 #endif