当前位置:网站首页>How to define guid in AMI code
How to define guid in AMI code
2022-07-05 07:51:00 【Yang_ Winston】
When looking at the code and writing the code, I found two Guid How to define , Record here , Here to create PEIM Moudle when installPpi when Ppi Used Guid For example .
The first is the most common way , Since you need to use one Guid, We define a in the header file Guid Just fine , as follows :
EFI_GUID gOemPeiTestPeimPpiGuid = {
0x2e1e7cae, 0x01fd, 0x4cf7, {
0x8f, 0xbe, 0x8, 0xc4, 0x86, 0x82, 0x61, 0x89}};
The second is not written in the header file Guid Value ,OEM_PEI_TESTPEIM_PPI_GUID This value is just a decoration , It may be to increase the readability of the code .
#define OEM_PEI_TESTPEIM_PPI_GUID \ {
0x2e1e7cae, 0x01fd, 0x4cf7, {
0x8f, 0xbe, 0x8, 0xc4, 0x86, 0x82, 0x61, 0x89}}
extern EFI_GUID gOemPeiTestPeimPpiGuid;
actually gOemPeiTestPeimPpiGuid The value of is in a Package Under the dec Of documents [Ppis] Block , as follows :
[Ppis]
gOemPeiTestPeimPpiGuid = {
0x2e1e7cae, 0x01fd, 0x4cf7, {
0x8f, 0xbe, 0x8, 0xc4, 0x86, 0x82, 0x61, 0x89}}
that C How does the file reference this value ? In fact, in this Moudle Of inf Of documents [Packages] The above is listed under the block dec file , And also in [Ppis] It is listed under the block gOemPeiTestPeimPpiGuid The name ( If you don't list your name, you won't find this Guid value ).
[Packages]
MdePkg/MdePkg.dec
OemIp3Pkg/OemIp3Pkg.dec
[Ppis]
gOemPeiTestPeimPpiGuid
Say your opinion , The second method may reduce the coupling of the code , In case you need to change this one day Guid Value , We just need to change dec In the document Guid Just fine .( Of course, this reason doesn't seem to hold water , When changes are needed Guid Well ...)
边栏推荐
- Altium Designer 19.1.18 - 导入板框
- [neo4j] common operations of neo4j cypher and py2neo
- The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
- From then on, I understand convolutional neural network (CNN)
- Openxlsx field reading problem
- Altium Designer 19.1.18 - 清除测量距离产生的信息
- Cadence learning records
- Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
- 数字孪生实际应用案例-风机篇
- ·Practical website·
猜你喜欢
What is Bezier curve? How to draw third-order Bezier curve with canvas?
Package ‘*****‘ has no installation candidate
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
研究發現,跨境電商客服系統都有這五點功能!
Embedded AI intelligent technology liquid particle counter
Differences between pycharm and idle and process -- join() in vs Code
Application of ultra pure water particle counter in electronic semiconductors
Altium Designer 19.1.18 - 更改铺铜的透明度
High end electronic chips help upgrade traditional oil particle monitoring
随机推荐
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
STM32 knowledge points
Cadence learning records
1089 insert or merge, including test point 5
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
Some errors in configuring the environment
static的作用
Numpy——1.数组的创建
Explain STM32 startup file in detail
Threads and processes
Cygwin installation
Embedded AI intelligent technology liquid particle counter
Can't find real-time chat software? Recommend to you what e-commerce enterprises are using!
Win10 shortcut key
The browser cannot access Baidu
找不到实时聊天软件?给你推荐电商企业都在用的!
Numpy——1.數組的創建
[neo4j] common operations of neo4j cypher and py2neo
MySQL - storage engine