mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
Improve/fix PCI device doxygen comments.
Thanks to Ron for explaining this. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Ronald G. Minnich <rminnich@gmail.com> git-svn-id: svn://coreboot.org/repository/coreboot-v3@801 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
e8b1edeb4c
commit
70c96e3919
1 changed files with 10 additions and 3 deletions
|
@ -950,12 +950,19 @@ static struct device *pci_scan_get_dev(struct device **list, unsigned int devfn)
|
|||
/**
|
||||
* Scan a PCI bus.
|
||||
*
|
||||
* Determine the existence of a given PCI device.
|
||||
* Determine the existence of a given PCI device. Allocate a new struct device
|
||||
* if dev==NULL was passed in and the device exists in hardware.
|
||||
*
|
||||
* @param dev Pointer to the device structure if it already is in the device
|
||||
* tree, i.e. was specified in the dts. It may not exist on hardware,
|
||||
* however. Looking for hardware not yet in the device tree has this
|
||||
* parameter as NULL.
|
||||
* @param bus Pointer to the bus structure.
|
||||
* @param devfn A device/function number.
|
||||
* @return The device structure for the device (if found)
|
||||
* or the NULL if no device is found.
|
||||
* @return The device structure for the device if it exists in hardware
|
||||
* or the passed in device structure with enabled=0 if the device
|
||||
* does not exist in hardware and only in the tree
|
||||
* or NULL if no device is found and dev==NULL was passed in.
|
||||
*/
|
||||
struct device *pci_probe_dev(struct device *dev, struct bus *bus,
|
||||
unsigned int devfn)
|
||||
|
|
Loading…
Add table
Reference in a new issue