Skip to content

Commit 7442d42

Browse files
kraxelinfrastation
authored andcommitted
add edk2 mm request serialization protocol
1 parent 90543f3 commit 7442d42

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

pcap-common.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,16 @@
13001300
*/
13011301
#define LINKTYPE_DECT_NR 301
13021302

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

13051314
/*
13061315
* The DLT_ and LINKTYPE_ values in the "matching" range should be the

pcap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,6 +3345,7 @@ static struct dlt_choice dlt_choices[] = {
33453345
DLT_CHOICE(USER13, "Private use 13"),
33463346
DLT_CHOICE(USER14, "Private use 14"),
33473347
DLT_CHOICE(USER15, "Private use 15"),
3348+
DLT_CHOICE(EDK2_MM, "edk2 mm request serialization protocol"),
33483349
DLT_CHOICE_SENTINEL
33493350
};
33503351

pcap/dlt.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,15 @@
16641664
*/
16651665
#define DLT_DECT_NR 301
16661666

1667+
/*
1668+
* Request serialization protocol used by edk2 firmware to communicate between
1669+
* normal mode and management mode ('MM' for short).
1670+
*
1671+
* The qemu uefi variable store implementation reuses the request serialization
1672+
* protocol for firmware <-> qemu communication.
1673+
*/
1674+
#define DLT_EDK2_MM 302
1675+
16671676
/*
16681677
* In case the code that includes this file (directly or indirectly)
16691678
* has also included OS files that happen to define DLT_HIGH_MATCHING_MAX,
@@ -1675,6 +1684,6 @@
16751684
#undef DLT_HIGH_MATCHING_MAX
16761685
#endif
16771686

1678-
#define DLT_HIGH_MATCHING_MAX 301 /* highest value in the "matching" range */
1687+
#define DLT_HIGH_MATCHING_MAX 302 /* highest value in the "matching" range */
16791688

16801689
#endif /* !defined(lib_pcap_dlt_h) */

0 commit comments

Comments
 (0)