TianoCore EDK2 master
|
#include "AhciPei.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | GetDevicePathInstanceSize (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINTN *InstanceSize, OUT BOOLEAN *EntireDevicePathEnd) |
EFI_STATUS | AhciIsHcDevicePathValid (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN UINTN DevicePathLength) |
EFI_STATUS | AhciBuildDevicePath (IN PEI_AHCI_CONTROLLER_PRIVATE_DATA *Private, IN UINT16 Port, IN UINT16 PortMultiplierPort, OUT UINTN *DevicePathLength, OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath) |
Variables | |
SATA_DEVICE_PATH | mAhciSataDevicePathNodeTemplate |
EFI_DEVICE_PATH_PROTOCOL | mAhciEndDevicePathNodeTemplate |
The device path help function.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file DevicePath.c.
EFI_STATUS AhciBuildDevicePath | ( | IN PEI_AHCI_CONTROLLER_PRIVATE_DATA * | Private, |
IN UINT16 | Port, | ||
IN UINT16 | PortMultiplierPort, | ||
OUT UINTN * | DevicePathLength, | ||
OUT EFI_DEVICE_PATH_PROTOCOL ** | DevicePath | ||
) |
Build the device path for an ATA device with given port and port multiplier number.
[in] | Private | A pointer to the PEI_AHCI_CONTROLLER_PRIVATE_DATA data structure. |
[in] | Port | The given port number. |
[in] | PortMultiplierPort | The given port multiplier number. |
[out] | DevicePathLength | The length of the device path in bytes specified by DevicePath. |
[out] | DevicePath | The device path of ATA device. |
EFI_SUCCESS | The operation succeeds. |
EFI_INVALID_PARAMETER | The parameters are invalid. |
EFI_OUT_OF_RESOURCES | The operation fails due to lack of resources. |
Definition at line 177 of file DevicePath.c.
EFI_STATUS AhciIsHcDevicePathValid | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
IN UINTN | DevicePathLength | ||
) |
Check the validity of the device path of a ATA AHCI host controller.
[in] | DevicePath | A pointer to the EFI_DEVICE_PATH_PROTOCOL structure. |
[in] | DevicePathLength | The length of the device path. |
EFI_SUCCESS | The device path is valid. |
EFI_INVALID_PARAMETER | The device path is invalid. |
Definition at line 106 of file DevicePath.c.
EFI_STATUS GetDevicePathInstanceSize | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath, |
OUT UINTN * | InstanceSize, | ||
OUT BOOLEAN * | EntireDevicePathEnd | ||
) |
Get the size of the current device path instance.
[in] | DevicePath | A pointer to the EFI_DEVICE_PATH_PROTOCOL structure. |
[out] | InstanceSize | The size of the current device path instance. |
[out] | EntireDevicePathEnd | Indicate whether the instance is the last one in the device path strucure. |
EFI_SUCCESS | The size of the current device path instance is fetched. |
Others | Fails to get the size of the current device path instance. |
Definition at line 55 of file DevicePath.c.
EFI_DEVICE_PATH_PROTOCOL mAhciEndDevicePathNodeTemplate |
Definition at line 32 of file DevicePath.c.
SATA_DEVICE_PATH mAhciSataDevicePathNodeTemplate |
Definition at line 15 of file DevicePath.c.