mirror of https://github.com/acidanthera/audk.git
1) Fix bug reported on the PcdSetEx* Macro.
2) Add SKU_ID type git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@252 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8b29c893b1
commit
dbdaaec45c
|
@ -92,12 +92,12 @@ Module Name: PcdLib.h
|
||||||
//
|
//
|
||||||
// Dynamic Set Ex
|
// Dynamic Set Ex
|
||||||
//
|
//
|
||||||
#define PcdSetEx8 (Guid, TokenName, Value) LibPcdSetEx8 (Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetEx8(Guid, TokenName, Value) LibPcdSetEx8 (Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
#define PcdSetEx16 (Guid, TokenName, Value) LibPcdSetEx16 (Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetEx16(Guid, TokenName, Value) LibPcdSetEx16 (Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
#define PcdSetEx32 (Guid, TokenName, Value) LibPcdSetEx32 (Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetEx32(Guid, TokenName, Value) LibPcdSetEx32 (Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
#define PcdSetEx64 (Guid, TokenName, Value) LibPcdSetEx64 (Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetEx64(Guid, TokenName, Value) LibPcdSetEx64 (Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
#define PcdSetExPtr (Guid, TokenName, Value) LibPcdSetExPtr (Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetExPtr(Guid, TokenName, Value) LibPcdSetExPtr (Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
#define PcdSetExBool(Guid, TokenName, Value) LibPcdSetExBool(Guid, _PCD_TOKEN_##TokenName, Value)
|
#define PcdSetExBool(Guid, TokenName, Value) LibPcdSetExBool(Guid, _PCD_TOKEN_##TokenName, Value)
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -22,6 +22,8 @@ extern EFI_GUID gPcdPpiGuid;
|
||||||
#define PCD_PPI_GUID \
|
#define PCD_PPI_GUID \
|
||||||
{ 0x632df884, 0x8023, 0x4872, { 0xb6, 0x70, 0xb7, 0x4a, 0x30, 0x19, 0x16, 0xe9 } }
|
{ 0x632df884, 0x8023, 0x4872, { 0xb6, 0x70, 0xb7, 0x4a, 0x30, 0x19, 0x16, 0xe9 } }
|
||||||
|
|
||||||
|
typedef UINT8 SKU_ID;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *PCD_PPI_SET_SKU) (
|
(EFIAPI *PCD_PPI_SET_SKU) (
|
||||||
|
|
|
@ -22,6 +22,8 @@ extern EFI_GUID gPcdProtocolGuid;
|
||||||
#define PCD_PROTOCOL_GUID \
|
#define PCD_PROTOCOL_GUID \
|
||||||
{ 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }
|
{ 0x11b34006, 0xd85b, 0x4d0a, { 0xa2, 0x90, 0xd5, 0xa5, 0x71, 0x31, 0xe, 0xf7 } }
|
||||||
|
|
||||||
|
typedef UINT8 SKU_ID;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
(EFIAPI *PCD_PROTOCOL_SET_SKU) (
|
(EFIAPI *PCD_PROTOCOL_SET_SKU) (
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
Copyright (c) 2006, Intel Corporation
|
Copyright (c) 2006, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
|
@ -42,6 +42,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
<Includes>
|
<Includes>
|
||||||
<PackageName>MdePkg</PackageName>
|
<PackageName>MdePkg</PackageName>
|
||||||
</Includes>
|
</Includes>
|
||||||
|
<Protocols>
|
||||||
|
<Protocol Usage="ALWAYS_CONSUMED">Pcd</Protocol>
|
||||||
|
</Protocols>
|
||||||
<Externs>
|
<Externs>
|
||||||
<Extern>
|
<Extern>
|
||||||
<Constructor>PcdLibConstructor</Constructor>
|
<Constructor>PcdLibConstructor</Constructor>
|
||||||
|
|
Loading…
Reference in New Issue