Skip to content

SctPkg/HIIConfigAccess: Add EFI_BROWSER_ACTION_REQUEST_RECONNECT and … - #353

Open
cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:hii-browser-action-reconnect-mantis-1956
Open

cgjertsen wants to merge 1 commit into
tianocore:masterfrom
cgjertsen:hii-browser-action-reconnect-mantis-1956

Conversation

@cgjertsen

Copy link
Copy Markdown
Contributor

…enable CallBack conformance tests

Update HIIConfigAccess.h for UEFI 2.8 (Mantis 1956):

  • Add EFI_BROWSER_ACTION_REQUEST_FORM_SUBMIT_EXIT through EFI_BROWSER_ACTION_REQUEST_RECONNECT (values 4-8) and EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY (9)
  • Add proper EFI_BROWSER_ACTION_* defines (CHANGING through SUBMITTED)
  • Fix CallBack() Action parameter type from pointer to value per spec
  • Fix CallBack() Value parameter to IN OUT per spec
  • Fix double semicolon in struct forward declaration

Enable previously-disabled CallBack() conformance tests:

  • Checkpoint 1: NULL ActionRequest returns EFI_INVALID_PARAMETER
  • Checkpoint 2: NULL Value returns EFI_INVALID_PARAMETER
  • Checkpoint 3: Unsupported action returns EFI_UNSUPPORTED

Fix EFI_BROWSER_ACTION_UNSUPPORTED value from 2 to 0xFFFF since value 2 is now EFI_BROWSER_ACTION_RETRIEVE in UEFI 2.1+.

Remove buggy ActionRequest validation that used C logical-OR (||) instead of proper value comparison.

Cc: G Edhaya Chandran edhaya.chandran@arm.com
Cc: Barton Gao gaojie@byosoft.com.cn

…enable CallBack conformance tests

Update HIIConfigAccess.h for UEFI 2.8 (Mantis 1956):
- Add EFI_BROWSER_ACTION_REQUEST_FORM_SUBMIT_EXIT through
  EFI_BROWSER_ACTION_REQUEST_RECONNECT (values 4-8) and
  EFI_BROWSER_ACTION_REQUEST_QUESTION_APPLY (9)
- Add proper EFI_BROWSER_ACTION_* defines (CHANGING through SUBMITTED)
- Fix CallBack() Action parameter type from pointer to value per spec
- Fix CallBack() Value parameter to IN OUT per spec
- Fix double semicolon in struct forward declaration

Enable previously-disabled CallBack() conformance tests:
- Checkpoint 1: NULL ActionRequest returns EFI_INVALID_PARAMETER
- Checkpoint 2: NULL Value returns EFI_INVALID_PARAMETER
- Checkpoint 3: Unsupported action returns EFI_UNSUPPORTED

Fix EFI_BROWSER_ACTION_UNSUPPORTED value from 2 to 0xFFFF since
value 2 is now EFI_BROWSER_ACTION_RETRIEVE in UEFI 2.1+.

Remove buggy ActionRequest validation that used C logical-OR (||)
instead of proper value comparison.

Cc: G Edhaya Chandran <edhaya.chandran@arm.com>
Cc: Barton Gao <gaojie@byosoft.com.cn>
Signed-off-by: Chris Gjertsen <chris@gjertsen.dev>
@shrishailp

Copy link
Copy Markdown
Contributor

Do we need to port these changes to IHVSCT (uefi-sct/SctPkg/TestCase/UEFI/IHV/Protocol/HIIConfigAccess) as well ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants