mirror of https://github.com/acidanthera/audk.git
Update to use DOS format
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6336 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f5acf5c695
commit
0bb0f8b893
|
@ -1,99 +1,99 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007, Intel Corporation
|
Copyright (c) 2007, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. 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
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
|
|
||||||
DriverSample.h
|
DriverSample.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
|
|
||||||
Revision History
|
Revision History
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _DRIVER_SAMPLE_H
|
#ifndef _DRIVER_SAMPLE_H
|
||||||
#define _DRIVER_SAMPLE_H
|
#define _DRIVER_SAMPLE_H
|
||||||
|
|
||||||
#include <Uefi.h>
|
#include <Uefi.h>
|
||||||
|
|
||||||
#include <Protocol/HiiConfigRouting.h>
|
#include <Protocol/HiiConfigRouting.h>
|
||||||
#include <Protocol/FormBrowser2.h>
|
#include <Protocol/FormBrowser2.h>
|
||||||
#include <Protocol/HiiConfigAccess.h>
|
#include <Protocol/HiiConfigAccess.h>
|
||||||
#include <Protocol/HiiDatabase.h>
|
#include <Protocol/HiiDatabase.h>
|
||||||
#include <Protocol/HiiString.h>
|
#include <Protocol/HiiString.h>
|
||||||
|
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/BaseMemoryLib.h>
|
#include <Library/BaseMemoryLib.h>
|
||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
#include <Library/UefiDriverEntryPoint.h>
|
#include <Library/UefiDriverEntryPoint.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/IfrSupportLib.h>
|
#include <Library/IfrSupportLib.h>
|
||||||
#include <Library/ExtendedIfrSupportLib.h>
|
#include <Library/ExtendedIfrSupportLib.h>
|
||||||
#include <Library/HiiLib.h>
|
#include <Library/HiiLib.h>
|
||||||
#include <Library/ExtendedHiiLib.h>
|
#include <Library/ExtendedHiiLib.h>
|
||||||
|
|
||||||
#include <MdeModuleHii.h>
|
#include <MdeModuleHii.h>
|
||||||
|
|
||||||
|
|
||||||
#include "NVDataStruc.h"
|
#include "NVDataStruc.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is the generated <AltResp> for defaults defined in VFR
|
// This is the generated <AltResp> for defaults defined in VFR
|
||||||
//
|
//
|
||||||
extern UINT8 VfrMyIfrNVDataDefault0000[];
|
extern UINT8 VfrMyIfrNVDataDefault0000[];
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is the generated IFR binary data for each formset defined in VFR.
|
// This is the generated IFR binary data for each formset defined in VFR.
|
||||||
// This data array is ready to be used as input of HiiLibPreparePackageList() to
|
// This data array is ready to be used as input of HiiLibPreparePackageList() to
|
||||||
// create a packagelist (which contains Form packages, String packages, etc).
|
// create a packagelist (which contains Form packages, String packages, etc).
|
||||||
//
|
//
|
||||||
extern UINT8 VfrBin[];
|
extern UINT8 VfrBin[];
|
||||||
extern UINT8 InventoryBin[];
|
extern UINT8 InventoryBin[];
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is the generated String package data for all .UNI files.
|
// This is the generated String package data for all .UNI files.
|
||||||
// This data array is ready to be used as input of HiiLibPreparePackageList() to
|
// This data array is ready to be used as input of HiiLibPreparePackageList() to
|
||||||
// create a packagelist (which contains Form packages, String packages, etc).
|
// create a packagelist (which contains Form packages, String packages, etc).
|
||||||
//
|
//
|
||||||
extern UINT8 DriverSampleStrings[];
|
extern UINT8 DriverSampleStrings[];
|
||||||
|
|
||||||
#define SAMPLE_STRING L"This is an error!"
|
#define SAMPLE_STRING L"This is an error!"
|
||||||
|
|
||||||
#define DRIVER_SAMPLE_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('D', 'S', 'p', 's')
|
#define DRIVER_SAMPLE_PRIVATE_SIGNATURE EFI_SIGNATURE_32 ('D', 'S', 'p', 's')
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINTN Signature;
|
UINTN Signature;
|
||||||
|
|
||||||
EFI_HANDLE DriverHandle[2];
|
EFI_HANDLE DriverHandle[2];
|
||||||
EFI_HII_HANDLE HiiHandle[2];
|
EFI_HII_HANDLE HiiHandle[2];
|
||||||
DRIVER_SAMPLE_CONFIGURATION Configuration;
|
DRIVER_SAMPLE_CONFIGURATION Configuration;
|
||||||
UINT8 PasswordState;
|
UINT8 PasswordState;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Consumed protocol
|
// Consumed protocol
|
||||||
//
|
//
|
||||||
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
EFI_HII_DATABASE_PROTOCOL *HiiDatabase;
|
||||||
EFI_HII_STRING_PROTOCOL *HiiString;
|
EFI_HII_STRING_PROTOCOL *HiiString;
|
||||||
EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
|
EFI_HII_CONFIG_ROUTING_PROTOCOL *HiiConfigRouting;
|
||||||
EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;
|
EFI_FORM_BROWSER2_PROTOCOL *FormBrowser2;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Produced protocol
|
// Produced protocol
|
||||||
//
|
//
|
||||||
EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
|
EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
|
||||||
} DRIVER_SAMPLE_PRIVATE_DATA;
|
} DRIVER_SAMPLE_PRIVATE_DATA;
|
||||||
|
|
||||||
#define DRIVER_SAMPLE_PRIVATE_FROM_THIS(a) CR (a, DRIVER_SAMPLE_PRIVATE_DATA, ConfigAccess, DRIVER_SAMPLE_PRIVATE_SIGNATURE)
|
#define DRIVER_SAMPLE_PRIVATE_FROM_THIS(a) CR (a, DRIVER_SAMPLE_PRIVATE_DATA, ConfigAccess, DRIVER_SAMPLE_PRIVATE_SIGNATURE)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,75 +1,75 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2007 - 2008, Intel Corporation
|
Copyright (c) 2007 - 2008, Intel Corporation
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. 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
|
||||||
http://opensource.org/licenses/bsd-license.php
|
http://opensource.org/licenses/bsd-license.php
|
||||||
|
|
||||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
Module Name:
|
Module Name:
|
||||||
|
|
||||||
NVDataStruc.h
|
NVDataStruc.h
|
||||||
|
|
||||||
Abstract:
|
Abstract:
|
||||||
|
|
||||||
NVData structure used by the sample driver
|
NVData structure used by the sample driver
|
||||||
|
|
||||||
Revision History:
|
Revision History:
|
||||||
|
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
#ifndef _NVDATASTRUC_H
|
#ifndef _NVDATASTRUC_H
|
||||||
#define _NVDATASTRUC_H
|
#define _NVDATASTRUC_H
|
||||||
|
|
||||||
#define FORMSET_GUID \
|
#define FORMSET_GUID \
|
||||||
{ \
|
{ \
|
||||||
0xA04A27f4, 0xDF00, 0x4D42, 0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D \
|
0xA04A27f4, 0xDF00, 0x4D42, 0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INVENTORY_GUID \
|
#define INVENTORY_GUID \
|
||||||
{ \
|
{ \
|
||||||
0xb3f56470, 0x6141, 0x4621, 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 \
|
0xb3f56470, 0x6141, 0x4621, 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VAR_EQ_TEST_NAME 0x100
|
#define VAR_EQ_TEST_NAME 0x100
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT16 WhatIsThePassword[20];
|
UINT16 WhatIsThePassword[20];
|
||||||
UINT16 WhatIsThePassword2[20];
|
UINT16 WhatIsThePassword2[20];
|
||||||
UINT16 MyStringData[40];
|
UINT16 MyStringData[40];
|
||||||
UINT16 PasswordClearText[20];
|
UINT16 PasswordClearText[20];
|
||||||
UINT16 SomethingHiddenForHtml;
|
UINT16 SomethingHiddenForHtml;
|
||||||
UINT8 HowOldAreYouInYearsManual;
|
UINT8 HowOldAreYouInYearsManual;
|
||||||
UINT16 HowTallAreYouManual;
|
UINT16 HowTallAreYouManual;
|
||||||
UINT8 HowOldAreYouInYears;
|
UINT8 HowOldAreYouInYears;
|
||||||
UINT16 HowTallAreYou;
|
UINT16 HowTallAreYou;
|
||||||
UINT8 MyFavoriteNumber;
|
UINT8 MyFavoriteNumber;
|
||||||
UINT8 TestLateCheck;
|
UINT8 TestLateCheck;
|
||||||
UINT8 TestLateCheck2;
|
UINT8 TestLateCheck2;
|
||||||
UINT8 QuestionAboutTreeHugging;
|
UINT8 QuestionAboutTreeHugging;
|
||||||
UINT8 ChooseToActivateNuclearWeaponry;
|
UINT8 ChooseToActivateNuclearWeaponry;
|
||||||
UINT8 SuppressGrayOutSomething;
|
UINT8 SuppressGrayOutSomething;
|
||||||
UINT8 OrderedList[8];
|
UINT8 OrderedList[8];
|
||||||
UINT8 BootOrder[8];
|
UINT8 BootOrder[8];
|
||||||
UINT8 BootOrderLarge;
|
UINT8 BootOrderLarge;
|
||||||
UINT8 DynamicCheck;
|
UINT8 DynamicCheck;
|
||||||
} DRIVER_SAMPLE_CONFIGURATION;
|
} DRIVER_SAMPLE_CONFIGURATION;
|
||||||
|
|
||||||
//
|
//
|
||||||
// 2nd NV data structure definition
|
// 2nd NV data structure definition
|
||||||
//
|
//
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT8 Field8;
|
UINT8 Field8;
|
||||||
UINT16 Field16;
|
UINT16 Field16;
|
||||||
UINT8 OrderedList[3];
|
UINT8 OrderedList[3];
|
||||||
} MY_DATA2;
|
} MY_DATA2;
|
||||||
|
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue