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