Skip to content

add edk2 mm request serialization protocol #1514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion pcap-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,16 @@
*/
#define LINKTYPE_DECT_NR 301

#define LINKTYPE_HIGH_MATCHING_MAX 301 /* highest value in the "matching" range */
/*
* Request serialization protocol used by edk2 firmware to communicate between
* normal mode and management mode ('MM' for short).
*
* The qemu uefi variable store implementation reuses the request serialization
* protocol for firmware <-> qemu communication.
*/
#define LINKTYPE_EDK2_MM 302

#define LINKTYPE_HIGH_MATCHING_MAX 302 /* highest value in the "matching" range */

/*
* The DLT_ and LINKTYPE_ values in the "matching" range should be the
Expand Down
1 change: 1 addition & 0 deletions pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3324,6 +3324,7 @@ static struct dlt_choice dlt_choices[] = {
DLT_CHOICE(FIRA_UCI, "Ultra-wideband controller interface protocol"),
DLT_CHOICE(MDB, "Multi-Drop Bus"),
DLT_CHOICE(DECT_NR, "DECT New Radio"),
DLT_CHOICE(EDK2_MM, "edk2 mm request serialization protocol"),
DLT_CHOICE_SENTINEL
};

Expand Down
11 changes: 10 additions & 1 deletion pcap/dlt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,15 @@
*/
#define DLT_DECT_NR 301

/*
* Request serialization protocol used by edk2 firmware to communicate between
* normal mode and management mode ('MM' for short).
*
* The qemu uefi variable store implementation reuses the request serialization
* protocol for firmware <-> qemu communication.
*/
#define DLT_EDK2_MM 302

/*
* In case the code that includes this file (directly or indirectly)
* has also included OS files that happen to define DLT_HIGH_MATCHING_MAX,
Expand All @@ -1675,6 +1684,6 @@
#undef DLT_HIGH_MATCHING_MAX
#endif

#define DLT_HIGH_MATCHING_MAX 301 /* highest value in the "matching" range */
#define DLT_HIGH_MATCHING_MAX 302 /* highest value in the "matching" range */

#endif /* !defined(lib_pcap_dlt_h) */