**/\r
typedef\r
RETURN_STATUS\r
-(EFIAPI *PCI_CAP_DEV_READ_CONFIG) (\r
+(EFIAPI *PCI_CAP_DEV_READ_CONFIG)(\r
IN PCI_CAP_DEV *PciDevice,\r
IN UINT16 SourceOffset,\r
OUT VOID *DestinationBuffer,\r
**/\r
typedef\r
RETURN_STATUS\r
-(EFIAPI *PCI_CAP_DEV_WRITE_CONFIG) (\r
+(EFIAPI *PCI_CAP_DEV_WRITE_CONFIG)(\r
IN PCI_CAP_DEV *PciDevice,\r
IN UINT16 DestinationOffset,\r
IN VOID *SourceBuffer,\r
// config space accessors.\r
//\r
struct PCI_CAP_DEV {\r
- PCI_CAP_DEV_READ_CONFIG ReadConfig;\r
- PCI_CAP_DEV_WRITE_CONFIG WriteConfig;\r
+ PCI_CAP_DEV_READ_CONFIG ReadConfig;\r
+ PCI_CAP_DEV_WRITE_CONFIG WriteConfig;\r
};\r
\r
//\r
// Public data structure that PciCapGetInfo() fills in about a PCI_CAP object.\r
//\r
typedef struct {\r
- PCI_CAP_DOMAIN Domain;\r
- UINT16 CapId;\r
+ PCI_CAP_DOMAIN Domain;\r
+ UINT16 CapId;\r
//\r
// The capability identified by Domain and CapId may have multiple instances\r
// in config space. NumInstances provides the total count of occurrences of\r
// the capability. It is always positive.\r
//\r
- UINT16 NumInstances;\r
+ UINT16 NumInstances;\r
//\r
// Instance is the serial number, in capabilities list traversal order (not\r
// necessarily config space offset order), of the one capability instance\r
// that PciCapGetInfo() is reporting about. Instance is always smaller than\r
// NumInstances.\r
//\r
- UINT16 Instance;\r
+ UINT16 Instance;\r
//\r
// The offset in config space at which the capability header of the\r
// capability instance starts.\r
//\r
- UINT16 Offset;\r
+ UINT16 Offset;\r
//\r
// The deduced maximum size of the capability instance, including the\r
// capability header. This hint is an upper bound, calculated -- without\r
// capability, and (b) from the end of the config space identified by Domain,\r
// whichever is lower.\r
//\r
- UINT16 MaxSizeHint;\r
+ UINT16 MaxSizeHint;\r
//\r
// The version number of the capability instance. Always zero when Domain is\r
// PciCapNormal.\r
//\r
- UINT8 Version;\r
+ UINT8 Version;\r
} PCI_CAP_INFO;\r
\r
-\r
/**\r
Parse the capabilities lists (both normal and extended, as applicable) of a\r
PCI device.\r
RETURN_STATUS\r
EFIAPI\r
PciCapListInit (\r
- IN PCI_CAP_DEV *PciDevice,\r
- OUT PCI_CAP_LIST **CapList\r
+ IN PCI_CAP_DEV *PciDevice,\r
+ OUT PCI_CAP_LIST **CapList\r
);\r
\r
-\r
/**\r
Free the resources used by CapList.\r
\r
VOID\r
EFIAPI\r
PciCapListUninit (\r
- IN PCI_CAP_LIST *CapList\r
+ IN PCI_CAP_LIST *CapList\r
);\r
\r
-\r
/**\r
Locate a capability instance in the parsed capabilities lists.\r
\r
RETURN_STATUS\r
EFIAPI\r
PciCapListFindCap (\r
- IN PCI_CAP_LIST *CapList,\r
- IN PCI_CAP_DOMAIN Domain,\r
- IN UINT16 CapId,\r
- IN UINT16 Instance,\r
- OUT PCI_CAP **Cap OPTIONAL\r
+ IN PCI_CAP_LIST *CapList,\r
+ IN PCI_CAP_DOMAIN Domain,\r
+ IN UINT16 CapId,\r
+ IN UINT16 Instance,\r
+ OUT PCI_CAP **Cap OPTIONAL\r
);\r
\r
-\r
/**\r
Locate the first instance of the capability given by (Domain, CapId) such\r
that the instance's Version is greater than or equal to MinVersion.\r
RETURN_STATUS\r
EFIAPI\r
PciCapListFindCapVersion (\r
- IN PCI_CAP_LIST *CapList,\r
- IN PCI_CAP_DOMAIN Domain,\r
- IN UINT16 CapId,\r
- IN UINT8 MinVersion,\r
- OUT PCI_CAP **Cap OPTIONAL\r
+ IN PCI_CAP_LIST *CapList,\r
+ IN PCI_CAP_DOMAIN Domain,\r
+ IN UINT16 CapId,\r
+ IN UINT8 MinVersion,\r
+ OUT PCI_CAP **Cap OPTIONAL\r
);\r
\r
-\r
/**\r
Get information about a PCI Capability instance.\r
\r
RETURN_STATUS\r
EFIAPI\r
PciCapGetInfo (\r
- IN PCI_CAP *Cap,\r
- OUT PCI_CAP_INFO *Info\r
+ IN PCI_CAP *Cap,\r
+ OUT PCI_CAP_INFO *Info\r
);\r
\r
-\r
/**\r
Read a slice of a capability instance.\r
\r
RETURN_STATUS\r
EFIAPI\r
PciCapRead (\r
- IN PCI_CAP_DEV *PciDevice,\r
- IN PCI_CAP *Cap,\r
- IN UINT16 SourceOffsetInCap,\r
- OUT VOID *DestinationBuffer,\r
- IN UINT16 Size\r
+ IN PCI_CAP_DEV *PciDevice,\r
+ IN PCI_CAP *Cap,\r
+ IN UINT16 SourceOffsetInCap,\r
+ OUT VOID *DestinationBuffer,\r
+ IN UINT16 Size\r
);\r
\r
-\r
/**\r
Write a slice of a capability instance.\r
\r
RETURN_STATUS\r
EFIAPI\r
PciCapWrite (\r
- IN PCI_CAP_DEV *PciDevice,\r
- IN PCI_CAP *Cap,\r
- IN UINT16 DestinationOffsetInCap,\r
- IN VOID *SourceBuffer,\r
- IN UINT16 Size\r
+ IN PCI_CAP_DEV *PciDevice,\r
+ IN PCI_CAP *Cap,\r
+ IN UINT16 DestinationOffsetInCap,\r
+ IN VOID *SourceBuffer,\r
+ IN UINT16 Size\r
);\r
\r
#endif // __PCI_CAP_LIB_H__\r