|
TianoCore EDK2 master
|
#include "PciBus.h"Go to the source code of this file.
Functions | |
| EFI_STATUS | PciOperateRegister (IN PCI_IO_DEVICE *PciIoDevice, IN UINT16 Command, IN UINT8 Offset, IN UINT8 Operation, OUT UINT16 *PtrCommand) |
| BOOLEAN | PciCapabilitySupport (IN PCI_IO_DEVICE *PciIoDevice) |
| EFI_STATUS | LocateCapabilityRegBlock (IN PCI_IO_DEVICE *PciIoDevice, IN UINT8 CapId, IN OUT UINT8 *Offset, OUT UINT8 *NextRegBlock OPTIONAL) |
| EFI_STATUS | LocatePciExpressCapabilityRegBlock (IN PCI_IO_DEVICE *PciIoDevice, IN UINT16 CapId, IN OUT UINT32 *Offset, OUT UINT32 *NextRegBlock OPTIONAL) |
PCI command register operations supporting functions implementation for PCI Bus module.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciCommand.c.
| EFI_STATUS LocateCapabilityRegBlock | ( | IN PCI_IO_DEVICE * | PciIoDevice, |
| IN UINT8 | CapId, | ||
| IN OUT UINT8 * | Offset, | ||
| OUT UINT8 *NextRegBlock | OPTIONAL | ||
| ) |
Locate capability register block per capability ID.
| PciIoDevice | A pointer to the PCI_IO_DEVICE. |
| CapId | The capability ID. |
| Offset | A pointer to the offset returned. |
| NextRegBlock | A pointer to the next block returned. |
| EFI_SUCCESS | Successfully located capability register block. |
| EFI_UNSUPPORTED | Pci device does not support capability. |
| EFI_NOT_FOUND | Pci device support but can not find register block. |
Definition at line 106 of file PciCommand.c.
| EFI_STATUS LocatePciExpressCapabilityRegBlock | ( | IN PCI_IO_DEVICE * | PciIoDevice, |
| IN UINT16 | CapId, | ||
| IN OUT UINT32 * | Offset, | ||
| OUT UINT32 *NextRegBlock | OPTIONAL | ||
| ) |
Locate PciExpress capability register block per capability ID.
| PciIoDevice | A pointer to the PCI_IO_DEVICE. |
| CapId | The capability ID. |
| Offset | A pointer to the offset returned. |
| NextRegBlock | A pointer to the next block returned. |
| EFI_SUCCESS | Successfully located capability register block. |
| EFI_UNSUPPORTED | Pci device does not support capability. |
| EFI_NOT_FOUND | Pci device support but can not find register block. |
Definition at line 195 of file PciCommand.c.
| BOOLEAN PciCapabilitySupport | ( | IN PCI_IO_DEVICE * | PciIoDevice | ) |
Check the capability supporting by given device.
| PciIoDevice | Pointer to instance of PCI_IO_DEVICE. |
| TRUE | Capability supported. |
| FALSE | Capability not supported. |
Definition at line 81 of file PciCommand.c.
| EFI_STATUS PciOperateRegister | ( | IN PCI_IO_DEVICE * | PciIoDevice, |
| IN UINT16 | Command, | ||
| IN UINT8 | Offset, | ||
| IN UINT8 | Operation, | ||
| OUT UINT16 * | PtrCommand | ||
| ) |
Operate the PCI register via PciIo function interface.
| PciIoDevice | Pointer to instance of PCI_IO_DEVICE. |
| Command | Operator command. |
| Offset | The address within the PCI configuration space for the PCI controller. |
| Operation | Type of Operation. |
| PtrCommand | Return buffer holding old PCI command, if operation is not EFI_SET_REGISTER. |
Definition at line 24 of file PciCommand.c.