예제 #1
0
 public static bool IsDevicePathEnd(EfiDevicePathProtocol *a)
 {
     return(IsDevicePathEndType(a) && IsDevicePathEndSubType(a));
 }
예제 #2
0
 public static bool IsDevicePathUnpacked(EfiDevicePathProtocol *a)
 {
     return((a->Type & EfiDpTypeUnpacked) != 0);
 }
예제 #3
0
 public static bool IsDevicePathEndType(EfiDevicePathProtocol *a)
 {
     return(DevicePathType(a) == EndDevicePathType);
 }
예제 #4
0
 public static bool IsDevicePathEndSubType(EfiDevicePathProtocol *a)
 {
     return(a->SubType == EndEntireDevicePathSubtype);
 }
예제 #5
0
 public static EfiDevicePathProtocol *NextDevicePathNode(EfiDevicePathProtocol *a)
 {
     return((EfiDevicePathProtocol *)((byte *)a + DevicePathNodeLength(a)));
 }
예제 #6
0
 public static ulong DevicePathNodeLength(EfiDevicePathProtocol *a)
 {
     return((ulong)(a->Length[0] | (a->Length[1] << 8)));
 }
예제 #7
0
 public static byte DevicePathSubType(EfiDevicePathProtocol *a)
 {
     return(a->SubType);
 }
예제 #8
0
 public static byte DevicePathType(EfiDevicePathProtocol *a)
 {
     return((byte)(a->Type & EfiDpTypeMask));
 }
예제 #9
0
 public static bool DP_IS_END_SUBTYPE(EfiDevicePathProtocol *a)
 {
     return(a->SubType == EndEntireDevicePathSubtype);
 }