15.03.2015 Views

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setup Design Guide<br />

DRAFT<br />

#strdef<br />

SPA STR_SUBTITLE_TEXT “Mi texto del subtítulo”<br />

4.2.6 formset / endformset<br />

This command is used to define the beginning and end of a set of forms.<br />

If any of the keywords used in the VFR file have a DYNAMIC or an INTERACTIVE flag turned on,<br />

then calls to the HII must pass in the pointer to the driver’s callback interface and the<br />

drivercallback should be set to TRUE. The drivercallback field will be filled into the<br />

byte-stream by the compiler, and is an optional field for the user to input. When this data is exported to<br />

the HII database, a FALSE will be replaced with a zero, and a TRUE will be replaced with the value of<br />

the driver’s callback interface pointer.<br />

Example: formset guid = FORMSET_GUID,<br />

title = STR_FORMSET_TITLE,<br />

[drivercallback = TRUE,]<br />

version = 2,<br />

endformset;<br />

4.2.7 nvstorage<br />

This command is used to define the location of the non-volatile storage used for the choices made by<br />

the user. If the NV storage will not be located in the system NV (e.g. Add-in card NV storage) then<br />

access to the add-in card’s NV must be exposed via the EFI_FORM_CALLBACK_PROTOCOL<br />

protocol. For more information on the EFI_FORM_CALLBACK_PROTOCOL protocol see section<br />

7.3.The handle that contains the interface will be communicated via the nvstorage setting. The first<br />

example shows how one might define an NV storage descriptor for the system variables.<br />

Example: nvstorage handle = NULL,<br />

devicepath = NULL,<br />

key = NULL;<br />

In the second example, the handle and devicepath are defined to be non-NULL to signify that<br />

when this data is exported, there will be a callback done to fill in the two variables. The key value will<br />

be retrieved from a VFR_NV_KEY() macro. It is intended to be a uniquely identified value so that the<br />

callback to the driver will correctly identify the purpose of the callback and hand back the correct<br />

information.<br />

Example: nvstorage handle = 1,<br />

devicepath = 1,<br />

For more information about NV steering see section 6.2.<br />

4.2.8 form / endform<br />

key = RaidControllerMapDefine;<br />

This command is used to define the beginning and end of a page of user interface data.<br />

Example: form formid = PAGE_ONE,<br />

title = STR_FORM_TITLE,<br />

endform;<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!