From edc65fc4d83a7083ed139c00b8669c959a7fae8f Mon Sep 17 00:00:00 2001 From: Jun Nie Date: Tue, 1 Aug 2017 17:28:58 +0800 Subject: ArmPkg: Move IS_DEVICE_PATH_NODE for sharing Move IS_DEVICE_PATH_NODE into header to share it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jun Nie Reviewed-by: Leif Lindholm --- ArmPkg/Include/Library/BdsLib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ArmPkg/Include') diff --git a/ArmPkg/Include/Library/BdsLib.h b/ArmPkg/Include/Library/BdsLib.h index c58f47eb2a..4528c2e873 100644 --- a/ArmPkg/Include/Library/BdsLib.h +++ b/ArmPkg/Include/Library/BdsLib.h @@ -15,6 +15,9 @@ #ifndef __BDS_ENTRY_H__ #define __BDS_ENTRY_H__ +#define IS_DEVICE_PATH_NODE(node,type,subtype) \ + (((node)->Type == (type)) && ((node)->SubType == (subtype))) + /** This is defined by the UEFI specs, don't change it **/ -- cgit v1.2.3