From d206ab94a79e0c6c96265fca1155caea18405a73 Mon Sep 17 00:00:00 2001 From: Archie Pusaka Date: Tue, 12 Dec 2023 19:05:31 +0800 Subject: [PATCH] monitor: add Qualcomm and Mediatek MSFT opcodes Qualcomm and Mediatek has 0xfd70 and 0xfd30 for their MSFT opcodes, respectively. Signed-off-by: Archie Pusaka Reviewed-by: Hsin-chen Chuang --- monitor/packet.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index b06f8a5d3..42e711caf 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -4286,10 +4286,26 @@ void packet_monitor(struct timeval *tv, struct ucred *cred, */ index_list[index].msft_opcode = 0xFC1E; break; + case 29: + /* + * Qualcomm controllers that support the + * Microsoft vendor extensions are using + * 0xFD70 for VsMsftOpCode. + */ + index_list[index].msft_opcode = 0xFD70; + break; + case 70: + /* + * Mediatek controllers that support the + * Microsoft vendor extensions are using + * 0xFD30 for VsMsftOpCode. + */ + index_list[index].msft_opcode = 0xFD30; + break; case 93: /* * Realtek controllers that support the - * Microsoft vendor extenions are using + * Microsoft vendor extensions are using * 0xFCF0 for VsMsftOpCode. */ index_list[index].msft_opcode = 0xFCF0; @@ -4298,7 +4314,7 @@ void packet_monitor(struct timeval *tv, struct ucred *cred, /* * Emulator controllers use Linux Foundation as * manufacturer and support the - * Microsoft vendor extenions using + * Microsoft vendor extensions using * 0xFC1E for VsMsftOpCode. */ index_list[index].msft_opcode = 0xFC1E; -- 2.47.3