[efi] Update to latest EDK2 headers
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
cb37d92ff6
commit
1025835d80
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
GUID for UEFI WIN_CERTIFICATE structure.
|
GUID for UEFI WIN_CERTIFICATE structure.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -76,7 +76,7 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
///
|
///
|
||||||
/// This is the standard WIN_CERTIFICATE header, where
|
/// This is the standard WIN_CERTIFICATE header, where
|
||||||
/// wCertificateType is set to WIN_CERT_TYPE_UEFI_GUID.
|
/// wCertificateType is set to WIN_CERT_TYPE_EFI_GUID.
|
||||||
///
|
///
|
||||||
WIN_CERTIFICATE Hdr;
|
WIN_CERTIFICATE Hdr;
|
||||||
///
|
///
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
PCI-to-PCI Bridge Architecture Specification, Revision 1.2
|
PCI-to-PCI Bridge Architecture Specification, Revision 1.2
|
||||||
PC Card Standard, 8.0
|
PC Card Standard, 8.0
|
||||||
|
|
||||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -240,7 +240,7 @@ typedef struct {
|
|||||||
#define PCI_IF_EISA_TIMER 0x02
|
#define PCI_IF_EISA_TIMER 0x02
|
||||||
#define PCI_SUBCLASS_RTC 0x03
|
#define PCI_SUBCLASS_RTC 0x03
|
||||||
#define PCI_IF_GENERIC_RTC 0x00
|
#define PCI_IF_GENERIC_RTC 0x00
|
||||||
#define PCI_IF_ISA_RTC 0x00
|
#define PCI_IF_ISA_RTC 0x01
|
||||||
#define PCI_SUBCLASS_PNP_CONTROLLER 0x04 ///< HotPlug Controller
|
#define PCI_SUBCLASS_PNP_CONTROLLER 0x04 ///< HotPlug Controller
|
||||||
#define PCI_SUBCLASS_PERIPHERAL_OTHER 0x80
|
#define PCI_SUBCLASS_PERIPHERAL_OTHER 0x80
|
||||||
|
|
||||||
@ -251,10 +251,12 @@ typedef struct {
|
|||||||
#define PCI_SUBCLASS_SCAN_CONTROLLER 0x03
|
#define PCI_SUBCLASS_SCAN_CONTROLLER 0x03
|
||||||
#define PCI_SUBCLASS_GAMEPORT 0x04
|
#define PCI_SUBCLASS_GAMEPORT 0x04
|
||||||
#define PCI_IF_GAMEPORT 0x00
|
#define PCI_IF_GAMEPORT 0x00
|
||||||
#define PCI_IF_GAMEPORT1 0x01
|
#define PCI_IF_GAMEPORT1 0x10
|
||||||
#define PCI_SUBCLASS_INPUT_OTHER 0x80
|
#define PCI_SUBCLASS_INPUT_OTHER 0x80
|
||||||
|
|
||||||
#define PCI_CLASS_DOCKING_STATION 0x0A
|
#define PCI_CLASS_DOCKING_STATION 0x0A
|
||||||
|
#define PCI_SUBCLASS_DOCKING_GENERIC 0x00
|
||||||
|
#define PCI_SUBCLASS_DOCKING_OTHER 0x80
|
||||||
|
|
||||||
#define PCI_CLASS_PROCESSOR 0x0B
|
#define PCI_CLASS_PROCESSOR 0x0B
|
||||||
#define PCI_SUBCLASS_PROC_386 0x00
|
#define PCI_SUBCLASS_PROC_386 0x00
|
||||||
@ -282,7 +284,7 @@ typedef struct {
|
|||||||
#define PCI_CLASS_WIRELESS 0x0D
|
#define PCI_CLASS_WIRELESS 0x0D
|
||||||
#define PCI_SUBCLASS_IRDA 0x00
|
#define PCI_SUBCLASS_IRDA 0x00
|
||||||
#define PCI_SUBCLASS_IR 0x01
|
#define PCI_SUBCLASS_IR 0x01
|
||||||
#define PCI_SUBCLASS_RF 0x02
|
#define PCI_SUBCLASS_RF 0x10
|
||||||
#define PCI_SUBCLASS_WIRELESS_OTHER 0x80
|
#define PCI_SUBCLASS_WIRELESS_OTHER 0x80
|
||||||
|
|
||||||
#define PCI_CLASS_INTELLIGENT_IO 0x0E
|
#define PCI_CLASS_INTELLIGENT_IO 0x0E
|
||||||
|
@ -17,6 +17,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
#ifndef __BASE_LIB__
|
#ifndef __BASE_LIB__
|
||||||
#define __BASE_LIB__
|
#define __BASE_LIB__
|
||||||
|
|
||||||
|
FILE_LICENCE ( BSD3 );
|
||||||
|
|
||||||
//
|
//
|
||||||
// Definitions for architecture-specific types
|
// Definitions for architecture-specific types
|
||||||
//
|
//
|
||||||
@ -1291,7 +1293,7 @@ InitializeListHead (
|
|||||||
If Entry is NULL, then ASSERT().
|
If Entry is NULL, then ASSERT().
|
||||||
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number
|
If PcdMaximumLinkedListLength is not zero, and prior to insertion the number
|
||||||
of nodes in ListHead, including the ListHead node, is greater than or
|
of nodes in ListHead, including the ListHead node, is greater than or
|
||||||
equal to PcdMaximumLinkedListLength, then ASSERT().
|
equal to PcdMaximumLinkedListLength, then ASSERT().
|
||||||
|
|
||||||
@ -1321,7 +1323,7 @@ InsertHeadList (
|
|||||||
If Entry is NULL, then ASSERT().
|
If Entry is NULL, then ASSERT().
|
||||||
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and prior to insertion the number
|
If PcdMaximumLinkedListLength is not zero, and prior to insertion the number
|
||||||
of nodes in ListHead, including the ListHead node, is greater than or
|
of nodes in ListHead, including the ListHead node, is greater than or
|
||||||
equal to PcdMaximumLinkedListLength, then ASSERT().
|
equal to PcdMaximumLinkedListLength, then ASSERT().
|
||||||
|
|
||||||
@ -1350,7 +1352,7 @@ InsertTailList (
|
|||||||
If List is NULL, then ASSERT().
|
If List is NULL, then ASSERT().
|
||||||
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and the number of nodes
|
If PcdMaximumLinkedListLength is not zero, and the number of nodes
|
||||||
in List, including the List node, is greater than or equal to
|
in List, including the List node, is greater than or equal to
|
||||||
PcdMaximumLinkedListLength, then ASSERT().
|
PcdMaximumLinkedListLength, then ASSERT().
|
||||||
|
|
||||||
@ -1378,8 +1380,8 @@ GetFirstNode (
|
|||||||
If Node is NULL, then ASSERT().
|
If Node is NULL, then ASSERT().
|
||||||
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and List contains more than
|
If PcdMaximumLinkedListLength is not zero, and List contains more than
|
||||||
PcdMaximumLinkedListLenth nodes, then ASSERT().
|
PcdMaximumLinkedListLength nodes, then ASSERT().
|
||||||
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
||||||
|
|
||||||
@param List A pointer to the head node of a doubly linked list.
|
@param List A pointer to the head node of a doubly linked list.
|
||||||
@ -1407,8 +1409,8 @@ GetNextNode (
|
|||||||
If Node is NULL, then ASSERT().
|
If Node is NULL, then ASSERT().
|
||||||
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and List contains more than
|
If PcdMaximumLinkedListLength is not zero, and List contains more than
|
||||||
PcdMaximumLinkedListLenth nodes, then ASSERT().
|
PcdMaximumLinkedListLength nodes, then ASSERT().
|
||||||
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
||||||
|
|
||||||
@param List A pointer to the head node of a doubly linked list.
|
@param List A pointer to the head node of a doubly linked list.
|
||||||
@ -1434,7 +1436,7 @@ GetPreviousNode (
|
|||||||
If ListHead is NULL, then ASSERT().
|
If ListHead is NULL, then ASSERT().
|
||||||
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If ListHead was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and the number of nodes
|
If PcdMaximumLinkedListLength is not zero, and the number of nodes
|
||||||
in List, including the List node, is greater than or equal to
|
in List, including the List node, is greater than or equal to
|
||||||
PcdMaximumLinkedListLength, then ASSERT().
|
PcdMaximumLinkedListLength, then ASSERT().
|
||||||
|
|
||||||
@ -1464,7 +1466,7 @@ IsListEmpty (
|
|||||||
If Node is NULL, then ASSERT().
|
If Node is NULL, then ASSERT().
|
||||||
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead(),
|
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or InitializeListHead(),
|
||||||
then ASSERT().
|
then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and the number of nodes
|
If PcdMaximumLinkedListLength is not zero, and the number of nodes
|
||||||
in List, including the List node, is greater than or equal to
|
in List, including the List node, is greater than or equal to
|
||||||
PcdMaximumLinkedListLength, then ASSERT().
|
PcdMaximumLinkedListLength, then ASSERT().
|
||||||
If PcdVerifyNodeInList is TRUE and Node is not a node in List the and Node is not equal
|
If PcdVerifyNodeInList is TRUE and Node is not a node in List the and Node is not equal
|
||||||
@ -1496,7 +1498,7 @@ IsNull (
|
|||||||
If Node is NULL, then ASSERT().
|
If Node is NULL, then ASSERT().
|
||||||
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
If List was not initialized with INTIALIZE_LIST_HEAD_VARIABLE() or
|
||||||
InitializeListHead(), then ASSERT().
|
InitializeListHead(), then ASSERT().
|
||||||
If PcdMaximumLinkedListLenth is not zero, and the number of nodes
|
If PcdMaximumLinkedListLength is not zero, and the number of nodes
|
||||||
in List, including the List node, is greater than or equal to
|
in List, including the List node, is greater than or equal to
|
||||||
PcdMaximumLinkedListLength, then ASSERT().
|
PcdMaximumLinkedListLength, then ASSERT().
|
||||||
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
If PcdVerifyNodeInList is TRUE and Node is not a node in List, then ASSERT().
|
||||||
@ -2343,6 +2345,7 @@ BitFieldRead8 (
|
|||||||
If StartBit is greater than 7, then ASSERT().
|
If StartBit is greater than 7, then ASSERT().
|
||||||
If EndBit is greater than 7, then ASSERT().
|
If EndBit is greater than 7, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2376,6 +2379,7 @@ BitFieldWrite8 (
|
|||||||
If StartBit is greater than 7, then ASSERT().
|
If StartBit is greater than 7, then ASSERT().
|
||||||
If EndBit is greater than 7, then ASSERT().
|
If EndBit is greater than 7, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2409,6 +2413,7 @@ BitFieldOr8 (
|
|||||||
If StartBit is greater than 7, then ASSERT().
|
If StartBit is greater than 7, then ASSERT().
|
||||||
If EndBit is greater than 7, then ASSERT().
|
If EndBit is greater than 7, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2443,6 +2448,8 @@ BitFieldAnd8 (
|
|||||||
If StartBit is greater than 7, then ASSERT().
|
If StartBit is greater than 7, then ASSERT().
|
||||||
If EndBit is greater than 7, then ASSERT().
|
If EndBit is greater than 7, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2505,6 +2512,7 @@ BitFieldRead16 (
|
|||||||
If StartBit is greater than 15, then ASSERT().
|
If StartBit is greater than 15, then ASSERT().
|
||||||
If EndBit is greater than 15, then ASSERT().
|
If EndBit is greater than 15, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2538,6 +2546,7 @@ BitFieldWrite16 (
|
|||||||
If StartBit is greater than 15, then ASSERT().
|
If StartBit is greater than 15, then ASSERT().
|
||||||
If EndBit is greater than 15, then ASSERT().
|
If EndBit is greater than 15, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2571,6 +2580,7 @@ BitFieldOr16 (
|
|||||||
If StartBit is greater than 15, then ASSERT().
|
If StartBit is greater than 15, then ASSERT().
|
||||||
If EndBit is greater than 15, then ASSERT().
|
If EndBit is greater than 15, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2605,6 +2615,8 @@ BitFieldAnd16 (
|
|||||||
If StartBit is greater than 15, then ASSERT().
|
If StartBit is greater than 15, then ASSERT().
|
||||||
If EndBit is greater than 15, then ASSERT().
|
If EndBit is greater than 15, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2667,6 +2679,7 @@ BitFieldRead32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2700,6 +2713,7 @@ BitFieldWrite32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2733,6 +2747,7 @@ BitFieldOr32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2767,6 +2782,8 @@ BitFieldAnd32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2829,6 +2846,7 @@ BitFieldRead64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2862,6 +2880,7 @@ BitFieldWrite64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2895,6 +2914,7 @@ BitFieldOr64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -2929,6 +2949,8 @@ BitFieldAnd64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Operand Operand on which to perform the bitfield operation.
|
@param Operand Operand on which to perform the bitfield operation.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5380,6 +5402,7 @@ AsmMsrBitFieldRead32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5416,6 +5439,7 @@ AsmMsrBitFieldWrite32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5452,6 +5476,7 @@ AsmMsrBitFieldOr32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5490,6 +5515,8 @@ AsmMsrBitFieldAnd32 (
|
|||||||
If StartBit is greater than 31, then ASSERT().
|
If StartBit is greater than 31, then ASSERT().
|
||||||
If EndBit is greater than 31, then ASSERT().
|
If EndBit is greater than 31, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5684,6 +5711,7 @@ AsmMsrBitFieldRead64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If Value is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5720,6 +5748,7 @@ AsmMsrBitFieldWrite64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5756,6 +5785,7 @@ AsmMsrBitFieldOr64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
@ -5793,6 +5823,8 @@ AsmMsrBitFieldAnd64 (
|
|||||||
If StartBit is greater than 63, then ASSERT().
|
If StartBit is greater than 63, then ASSERT().
|
||||||
If EndBit is greater than 63, then ASSERT().
|
If EndBit is greater than 63, then ASSERT().
|
||||||
If EndBit is less than StartBit, then ASSERT().
|
If EndBit is less than StartBit, then ASSERT().
|
||||||
|
If AndData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
If OrData is larger than the bitmask value range specified by StartBit and EndBit, then ASSERT().
|
||||||
|
|
||||||
@param Index The 32-bit MSR index to write.
|
@param Index The 32-bit MSR index to write.
|
||||||
@param StartBit The ordinal of the least significant bit in the bit field.
|
@param StartBit The ordinal of the least significant bit in the bit field.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Present the boot mode values in PI.
|
Present the boot mode values in PI.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -11,7 +11,7 @@
|
|||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
@par Revision Reference:
|
@par Revision Reference:
|
||||||
PI Version 1.0
|
PI Version 1.2.1A
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
@ -35,6 +35,7 @@ typedef UINT32 EFI_BOOT_MODE;
|
|||||||
#define BOOT_WITH_DEFAULT_SETTINGS 0x04
|
#define BOOT_WITH_DEFAULT_SETTINGS 0x04
|
||||||
#define BOOT_ON_S4_RESUME 0x05
|
#define BOOT_ON_S4_RESUME 0x05
|
||||||
#define BOOT_ON_S5_RESUME 0x06
|
#define BOOT_ON_S5_RESUME 0x06
|
||||||
|
#define BOOT_WITH_MFG_MODE_SETTINGS 0x07
|
||||||
#define BOOT_ON_S2_RESUME 0x10
|
#define BOOT_ON_S2_RESUME 0x10
|
||||||
#define BOOT_ON_S3_RESUME 0x11
|
#define BOOT_ON_S3_RESUME 0x11
|
||||||
#define BOOT_ON_FLASH_UPDATE 0x12
|
#define BOOT_ON_FLASH_UPDATE 0x12
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
which exposes much more state and modifier information from the input device,
|
which exposes much more state and modifier information from the input device,
|
||||||
also allows one to register a notification for a particular keystroke.
|
also allows one to register a notification for a particular keystroke.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -276,7 +276,7 @@ EFI_STATUS
|
|||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_KEY_DATA *KeyData,
|
IN EFI_KEY_DATA *KeyData,
|
||||||
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction,
|
||||||
OUT EFI_HANDLE *NotifyHandle
|
OUT VOID **NotifyHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -298,7 +298,7 @@ typedef
|
|||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)(
|
(EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)(
|
||||||
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This,
|
||||||
IN EFI_HANDLE NotificationHandle
|
IN VOID *NotificationHandle
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -887,9 +887,9 @@ typedef struct _EFI_IFR_IMAGE {
|
|||||||
EFI_IMAGE_ID Id;
|
EFI_IMAGE_ID Id;
|
||||||
} EFI_IFR_IMAGE;
|
} EFI_IFR_IMAGE;
|
||||||
|
|
||||||
typedef struct _EFI_IFR_MODAL {
|
typedef struct _EFI_IFR_MODAL_TAG {
|
||||||
EFI_IFR_OP_HEADER Header;
|
EFI_IFR_OP_HEADER Header;
|
||||||
} EFI_IFR_MODAL;
|
} EFI_IFR_MODAL_TAG;
|
||||||
|
|
||||||
typedef struct _EFI_IFR_LOCKED {
|
typedef struct _EFI_IFR_LOCKED {
|
||||||
EFI_IFR_OP_HEADER Header;
|
EFI_IFR_OP_HEADER Header;
|
||||||
@ -907,6 +907,12 @@ typedef struct _EFI_IFR_DEFAULT {
|
|||||||
EFI_IFR_TYPE_VALUE Value;
|
EFI_IFR_TYPE_VALUE Value;
|
||||||
} EFI_IFR_DEFAULT;
|
} EFI_IFR_DEFAULT;
|
||||||
|
|
||||||
|
typedef struct _EFI_IFR_DEFAULT_2 {
|
||||||
|
EFI_IFR_OP_HEADER Header;
|
||||||
|
UINT16 DefaultId;
|
||||||
|
UINT8 Type;
|
||||||
|
} EFI_IFR_DEFAULT_2;
|
||||||
|
|
||||||
typedef struct _EFI_IFR_VALUE {
|
typedef struct _EFI_IFR_VALUE {
|
||||||
EFI_IFR_OP_HEADER Header;
|
EFI_IFR_OP_HEADER Header;
|
||||||
} EFI_IFR_VALUE;
|
} EFI_IFR_VALUE;
|
||||||
|
@ -283,7 +283,9 @@ EFI_STATUS
|
|||||||
@retval EFI_NOT_FOUND 1) There are no EFI_DRIVER_BINDING_PROTOCOL instances
|
@retval EFI_NOT_FOUND 1) There are no EFI_DRIVER_BINDING_PROTOCOL instances
|
||||||
present in the system.
|
present in the system.
|
||||||
2) No drivers were connected to ControllerHandle.
|
2) No drivers were connected to ControllerHandle.
|
||||||
|
@retval EFI_SECURITY_VIOLATION
|
||||||
|
The user has no permission to start UEFI device drivers on the device path
|
||||||
|
associated with the ControllerHandle or specified by the RemainingDevicePath.
|
||||||
**/
|
**/
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
@ -852,6 +854,7 @@ EFI_STATUS
|
|||||||
|
|
||||||
@retval EFI_INVALID_PARAMETER ImageHandle is either an invalid image handle or the image
|
@retval EFI_INVALID_PARAMETER ImageHandle is either an invalid image handle or the image
|
||||||
has already been initialized with StartImage.
|
has already been initialized with StartImage.
|
||||||
|
@retval EFI_SECURITY_VIOLATION The current platform policy specifies that the image should not be started.
|
||||||
@return Exit code from image
|
@return Exit code from image
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -1138,8 +1141,8 @@ EFI_STATUS
|
|||||||
/**
|
/**
|
||||||
Installs one or more protocol interfaces into the boot services environment.
|
Installs one or more protocol interfaces into the boot services environment.
|
||||||
|
|
||||||
@param Handle The handle to install the new protocol interfaces on, or NULL if a new
|
@param Handle The pointer to a handle to install the new protocol interfaces on,
|
||||||
handle is to be allocated.
|
or a pointer to NULL if a new handle is to be allocated.
|
||||||
@param ... A variable argument list containing pairs of protocol GUIDs and protocol
|
@param ... A variable argument list containing pairs of protocol GUIDs and protocol
|
||||||
interfaces.
|
interfaces.
|
||||||
|
|
||||||
@ -1722,6 +1725,10 @@ EFI_STATUS
|
|||||||
OUT UINT64 *MaximumVariableSize
|
OUT UINT64 *MaximumVariableSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Firmware should stop at a firmware user interface on next boot
|
||||||
|
//
|
||||||
|
#define EFI_OS_INDICATIONS_BOOT_TO_FW_UI 0x0000000000000001
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI Runtime Services Table
|
// EFI Runtime Services Table
|
||||||
@ -2006,50 +2013,46 @@ EFI_STATUS
|
|||||||
///
|
///
|
||||||
/// EFI Boot Key Data
|
/// EFI Boot Key Data
|
||||||
///
|
///
|
||||||
typedef union {
|
typedef UINT32 EFI_BOOT_KEY_DATA;
|
||||||
struct {
|
|
||||||
///
|
///
|
||||||
/// Indicates the revision of the EFI_KEY_OPTION structure. This revision level should be 0.
|
/// Indicates the revision of the EFI_KEY_OPTION structure. This revision level should be 0.
|
||||||
///
|
///
|
||||||
UINT32 Revision : 8;
|
#define EFI_KEY_OPTION_REVISION_MASK 0x000000FF
|
||||||
///
|
///
|
||||||
/// Either the left or right Shift keys must be pressed (1) or must not be pressed (0).
|
/// Either the left or right Shift keys must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 ShiftPressed : 1;
|
#define EFI_KEY_OPTION_SHIFT_PRESSED_MASK BIT8
|
||||||
///
|
///
|
||||||
/// Either the left or right Control keys must be pressed (1) or must not be pressed (0).
|
/// Either the left or right Control keys must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 ControlPressed : 1;
|
#define EFI_KEY_OPTION_CONTROL_PRESSED_MASK BIT9
|
||||||
///
|
///
|
||||||
/// Either the left or right Alt keys must be pressed (1) or must not be pressed (0).
|
/// Either the left or right Alt keys must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 AltPressed : 1;
|
#define EFI_KEY_OPTION_ALT_PRESSED_MASK BIT10
|
||||||
///
|
///
|
||||||
/// Either the left or right Logo keys must be pressed (1) or must not be pressed (0).
|
/// Either the left or right Logo keys must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 LogoPressed : 1;
|
#define EFI_KEY_OPTION_LOGO_PRESSED_MASK BIT11
|
||||||
///
|
///
|
||||||
/// The Menu key must be pressed (1) or must not be pressed (0).
|
/// The Menu key must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 MenuPressed : 1;
|
#define EFI_KEY_OPTION_MENU_PRESSED_MASK BIT12
|
||||||
///
|
///
|
||||||
/// The SysReq key must be pressed (1) or must not be pressed (0).
|
/// The SysReq key must be pressed (1) or must not be pressed (0).
|
||||||
///
|
///
|
||||||
UINT32 SysReqPressed : 1;
|
#define EFI_KEY_OPTION_SYS_REQ_PRESSED_MASK BIT13
|
||||||
UINT32 Reserved : 16;
|
|
||||||
///
|
///
|
||||||
/// Specifies the actual number of entries in EFI_KEY_OPTION.Keys, from 0-3. If
|
/// Specifies the actual number of entries in EFI_KEY_OPTION.Keys, from 0-3. If
|
||||||
/// zero, then only the shift state is considered. If more than one, then the boot option will
|
/// zero, then only the shift state is considered. If more than one, then the boot option will
|
||||||
/// only be launched if all of the specified keys are pressed with the same shift state.
|
/// only be launched if all of the specified keys are pressed with the same shift state.
|
||||||
///
|
///
|
||||||
UINT32 InputKeyCount : 2;
|
#define EFI_KEY_OPTION_INPUT_KEY_COUNT_MASK (BIT30 | BIT31)
|
||||||
} Options;
|
|
||||||
UINT32 PackedValue;
|
|
||||||
} EFI_BOOT_KEY_DATA;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// EFI Key Option.
|
/// EFI Key Option.
|
||||||
///
|
///
|
||||||
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
///
|
///
|
||||||
/// Specifies options about how the key will be processed.
|
/// Specifies options about how the key will be processed.
|
||||||
@ -2073,6 +2076,7 @@ typedef struct {
|
|||||||
///
|
///
|
||||||
//EFI_INPUT_KEY Keys[];
|
//EFI_INPUT_KEY Keys[];
|
||||||
} EFI_KEY_OPTION;
|
} EFI_KEY_OPTION;
|
||||||
|
#pragma pack()
|
||||||
|
|
||||||
//
|
//
|
||||||
// EFI File location to boot from on removable media devices
|
// EFI File location to boot from on removable media devices
|
||||||
|
@ -59,6 +59,7 @@ sub try_import_file {
|
|||||||
open my $outfh, ">$outfile" or die "Could not open $outfile: $!\n";
|
open my $outfh, ">$outfile" or die "Could not open $outfile: $!\n";
|
||||||
my @dependencies = ();
|
my @dependencies = ();
|
||||||
my $licence;
|
my $licence;
|
||||||
|
my $maybe_guard;
|
||||||
my $guard;
|
my $guard;
|
||||||
while ( <$infh> ) {
|
while ( <$infh> ) {
|
||||||
# Strip CR and trailing whitespace
|
# Strip CR and trailing whitespace
|
||||||
@ -77,11 +78,17 @@ sub try_import_file {
|
|||||||
# Write out line
|
# Write out line
|
||||||
print $outfh "$_\n";
|
print $outfh "$_\n";
|
||||||
# Apply FILE_LICENCE() immediately after include guard
|
# Apply FILE_LICENCE() immediately after include guard
|
||||||
if ( /^\#define\s+_?_\S+_H_?_$/ ) {
|
if ( defined $maybe_guard ) {
|
||||||
|
if ( /^\#define\s+_?_${maybe_guard}_?_$/ ) {
|
||||||
die "Duplicate header guard detected in $infile\n" if $guard;
|
die "Duplicate header guard detected in $infile\n" if $guard;
|
||||||
$guard = 1;
|
$guard = $maybe_guard;
|
||||||
print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence;
|
print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence;
|
||||||
}
|
}
|
||||||
|
undef $maybe_guard;
|
||||||
|
}
|
||||||
|
if ( /^#ifndef\s+_?_(\S+)_?_/ ) {
|
||||||
|
$maybe_guard = $1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
close $outfh;
|
close $outfh;
|
||||||
close $infh;
|
close $infh;
|
||||||
|
Reference in New Issue
Block a user