hv: change function parameters: pci_pdev_read_cfg and pci_pdev_write_cfg

In order to allow these functions to be called without an associated
struct pci_pdev (for example, at the time of PCI bus enumeration), these
two functions can not take the struct vdev as input parameter.

Tracked-On: #1568
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Zide Chen
2018-10-08 08:59:10 -07:00
committed by lijinxia
parent 19e1b9675f
commit 9cc1f57f63
4 changed files with 11 additions and 11 deletions

View File

@@ -157,4 +157,7 @@ static inline bool pci_bar_access(uint32_t offset)
}
}
uint32_t pci_pdev_read_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes);
void pci_pdev_write_cfg(union pci_bdf bdf, uint32_t offset, uint32_t bytes, uint32_t val);
#endif /* PCI_H_ */