I am new to UEFI (Unified Extensible Firmware Interface) development. And I am using the EDK (EFI Development Kit).
To create a new protocol, we need to give the protocol a GUID. For example, in the header file for BlockIO
protocol, we can see this:
(MdePkg\Include\BlockIo.h)
The global variable:
And in the package declaration file MdePkg.dec
:
Why do we need 3 of these to give a protocol a GUID?
(Maybe this question is related to C language specifics, so I add the c
and macros
tags, too.)