#define EFI_ENABLE_REGISTER 3\r
#define EFI_DISABLE_REGISTER 4\r
\r
+/**\r
+ Operate the PCI register via PciIo function interface.\r
+ \r
+ @param PciIoDevice Pointer to instance of PCI_IO_DEVICE\r
+ @param Command Operator command\r
+ @param Offset The address within the PCI configuration space for the PCI controller.\r
+ @param Operation Type of Operation\r
+ @param PtrCommand Return buffer holding old PCI command, if operation is not EFI_SET_REGISTER\r
+ \r
+ @return status of PciIo operation\r
+**/\r
EFI_STATUS\r
PciOperateRegister (\r
IN PCI_IO_DEVICE *PciIoDevice,\r
IN UINT8 Operation,\r
OUT UINT16 *PtrCommand\r
)\r
-/**\r
-\r
-Routine Description:\r
-\r
- TODO: Add function description\r
-\r
-Arguments:\r
-\r
- PciIoDevice - TODO: add argument description\r
- Command - TODO: add argument description\r
- Offset - TODO: add argument description\r
- Operation - TODO: add argument description\r
- PtrCommand - TODO: add argument description\r
-\r
-Returns:\r
-\r
- TODO: add return values\r
-\r
-**/\r
;\r
\r
+/**\r
+ check the cpability of this device supports\r
+ \r
+ @param PciIoDevice Pointer to instance of PCI_IO_DEVICE\r
+ \r
+ @retval TRUE Support\r
+ @retval FALSE Not support\r
+**/\r
BOOLEAN\r
PciCapabilitySupport (\r
IN PCI_IO_DEVICE *PciIoDevice\r
)\r
-/**\r
-\r
-Routine Description:\r
-\r
- TODO: Add function description\r
-\r
-Arguments:\r
-\r
- PciIoDevice - TODO: add argument description\r
-\r
-Returns:\r
-\r
- TODO: add return values\r
-\r
-**/\r
;\r
\r
+/**\r
+ Locate cap reg.\r
+ \r
+ @param PciIoDevice - A pointer to the PCI_IO_DEVICE.\r
+ @param CapId - The cap ID.\r
+ @param Offset - A pointer to the offset.\r
+ @param NextRegBlock - A pointer to the next block.\r
+ \r
+ @retval EFI_UNSUPPORTED Pci device does not support\r
+ @retval EFI_NOT_FOUND Pci device support but can not find register block.\r
+ @retval EFI_SUCCESS Success to locate capability register block\r
+**/\r
EFI_STATUS\r
LocateCapabilityRegBlock (\r
IN PCI_IO_DEVICE *PciIoDevice,\r
IN OUT UINT8 *Offset,\r
OUT UINT8 *NextRegBlock OPTIONAL\r
)\r
-/**\r
-\r
-Routine Description:\r
-\r
- TODO: Add function description\r
-\r
-Arguments:\r
-\r
- PciIoDevice - TODO: add argument description\r
- CapId - TODO: add argument description\r
- Offset - TODO: add argument description\r
- NextRegBlock - TODO: add argument description\r
-\r
-Returns:\r
-\r
- TODO: add return values\r
-\r
-**/\r
;\r
\r
\r