mirror of https://github.com/acidanthera/audk.git
Refine code to follow edkii coding style.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dong Eric <eric.dong@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16500 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
300c1f0d35
commit
41089802d5
|
@ -42,12 +42,26 @@ typedef struct {
|
||||||
CHAR16 *Name;
|
CHAR16 *Name;
|
||||||
} MTD_NAME;
|
} MTD_NAME;
|
||||||
|
|
||||||
typedef VOID (EFIAPI *SerialDecodeFucntion) (EFI_DEVICE_PATH_PROTOCOL *DevPath, DEVICE_CONSIST_MAPPING_INFO *MapInfo,EFI_DEVICE_PATH_PROTOCOL *);
|
/**
|
||||||
|
Serial Decode function.
|
||||||
|
|
||||||
|
@param DevPath The Device path info.
|
||||||
|
@param MapInfo The map info.
|
||||||
|
@param OrigDevPath The original device path protocol.
|
||||||
|
|
||||||
|
**/
|
||||||
|
typedef
|
||||||
|
VOID
|
||||||
|
(EFIAPI *SERIAL_DECODE_FUNCTION) (
|
||||||
|
EFI_DEVICE_PATH_PROTOCOL *DevPath,
|
||||||
|
DEVICE_CONSIST_MAPPING_INFO *MapInfo,
|
||||||
|
EFI_DEVICE_PATH_PROTOCOL *OrigDevPath
|
||||||
|
);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT8 Type;
|
UINT8 Type;
|
||||||
UINT8 SubType;
|
UINT8 SubType;
|
||||||
SerialDecodeFucntion SerialFun;
|
SERIAL_DECODE_FUNCTION SerialFun;
|
||||||
INTN (EFIAPI *CompareFun) (EFI_DEVICE_PATH_PROTOCOL *DevPath, EFI_DEVICE_PATH_PROTOCOL *DevPath2);
|
INTN (EFIAPI *CompareFun) (EFI_DEVICE_PATH_PROTOCOL *DevPath, EFI_DEVICE_PATH_PROTOCOL *DevPath2);
|
||||||
} DEV_PATH_CONSIST_MAPPING_TABLE;
|
} DEV_PATH_CONSIST_MAPPING_TABLE;
|
||||||
|
|
||||||
|
@ -426,6 +440,7 @@ DevPathCompareDefault (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -453,6 +468,7 @@ DevPathSerialHardDrive (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -476,6 +492,7 @@ DevPathSerialAtapi (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -500,6 +517,7 @@ DevPathSerialCdRom (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -524,6 +542,7 @@ DevPathSerialFibre (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -550,6 +569,7 @@ DevPathSerialUart (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -608,6 +628,7 @@ DevPathSerialUsb (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
|
@ -671,6 +692,7 @@ DevPathSerialVendor (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -694,6 +716,7 @@ DevPathSerialLun (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -719,6 +742,7 @@ DevPathSerialSata (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -763,6 +787,7 @@ DevPathSerialIScsi (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -786,6 +811,7 @@ DevPathSerialI2O (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -823,6 +849,7 @@ DevPathSerialMacAddr (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -856,6 +883,7 @@ DevPathSerialInfiniBand (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -901,6 +929,8 @@ DevPathSerialIPv4 (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -938,6 +968,8 @@ DevPathSerialIPv6 (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -962,6 +994,7 @@ DevPathSerialScsi (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -987,6 +1020,7 @@ DevPathSerial1394 (
|
||||||
|
|
||||||
@param[in] DevicePathNode The node to get info on.
|
@param[in] DevicePathNode The node to get info on.
|
||||||
@param[in] MappingItem The info item to populate.
|
@param[in] MappingItem The info item to populate.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
**/
|
**/
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -1015,6 +1049,7 @@ DevPathSerialAcpi (
|
||||||
|
|
||||||
@param[in] DevicePathNode Ignored.
|
@param[in] DevicePathNode Ignored.
|
||||||
@param[in] MappingItem Ignored.
|
@param[in] MappingItem Ignored.
|
||||||
|
@param[in] DevicePath Ignored.
|
||||||
|
|
||||||
Does nothing.
|
Does nothing.
|
||||||
**/
|
**/
|
||||||
|
@ -1265,7 +1300,7 @@ GetDeviceConsistMappingInfo (
|
||||||
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
SerialDecodeFucntion SerialFun;
|
SERIAL_DECODE_FUNCTION SerialFun;
|
||||||
UINTN Index;
|
UINTN Index;
|
||||||
EFI_DEVICE_PATH_PROTOCOL *OriginalDevicePath;
|
EFI_DEVICE_PATH_PROTOCOL *OriginalDevicePath;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue