X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ShellPkg%2FLibrary%2FUefiShellCommandLib%2FConsistMapping.c;h=64f504a258148b59391fb843bdda7c0a7d3614ba;hp=3425e9e912beb65d4a171251d9f9086eb0f18cb3;hb=e26d7b59756b8995473345713178e1b35473a7a2;hpb=8d095e78c605eaa832db489879bb8b522ef31dd4 diff --git a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c index 3425e9e912..64f504a258 100644 --- a/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c +++ b/ShellPkg/Library/UefiShellCommandLib/ConsistMapping.c @@ -43,8 +43,8 @@ typedef struct { typedef struct { UINT8 Type; UINT8 SubType; - VOID (*SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); - INTN (*CompareFun) (EFI_DEVICE_PATH_PROTOCOL *, EFI_DEVICE_PATH_PROTOCOL *); + VOID (EFIAPI *SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); + INTN (EFIAPI *CompareFun) (EFI_DEVICE_PATH_PROTOCOL *, EFI_DEVICE_PATH_PROTOCOL *); } DEV_PATH_CONSIST_MAPPING_TABLE; @@ -259,6 +259,7 @@ AppendCSDGuid ( } INTN +EFIAPI _DevPathCompareAcpi ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2 @@ -284,6 +285,7 @@ _DevPathCompareAcpi ( } INTN +EFIAPI _DevPathComparePci ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath1, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath2 @@ -1063,7 +1065,7 @@ GetDeviceConsistMappingInfo ( IN EFI_DEVICE_PATH_PROTOCOL *DevicePath ) { - VOID (*SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); + VOID (EFIAPI *SerialFun) (EFI_DEVICE_PATH_PROTOCOL *, DEVICE_CONSIST_MAPPING_INFO *); UINTN Index; @@ -1204,10 +1206,10 @@ ShellCommandConsistMappingUnInitialize ( } /** - Create a consistent mapped name for the device specified by DevicePath + Create a consistent mapped name for the device specified by DevicePath based on the Table. - This must be called after ShellCommandConsistMappingInitialize() and + This must be called after ShellCommandConsistMappingInitialize() and before ShellCommandConsistMappingUnInitialize() is called. @param[in] DeviecPath The pointer to the dev path for the device.