host-drivers/base-driver/vca/plx87xx/plx_hw.c
static u8
plx_find_root_complex_bus_num(struct pci_dev *pdev)
{
	struct pci_bus *bus = pdev->bus;

	while (bus->parent)
		bus = bus->parent;

	return bus->number;
}
/*
 * plx_find_root_complex_bus_num - find root complex bus number for a pdev
 *
 * @pdev: The PCIe device
 *
 * RETURNS: The root complex bus number
 */
find root complex bus number for a pdev
@pdev: The PCIe device

The root complex bus number
find root complex bus number for a pdev @pdev : The PCIe device The root complex bus number
static u8
plx_find_root_complex_bus_num(struct pci_dev *pdev)
{
	struct pci_bus *bus = pdev->bus;
	while (bus->parent)
		bus = bus->parent;
	return bus->number;
}
static u8 plx_find_root_complex_bus_num ( struct pci_dev * pdev ) { struct pci_bus * bus = pdev -> bus ; while ( bus -> parent ) bus = bus -> parent ; return bus -> number ; }
plx_find_root_complex_bus_num - find root complex bus number for a pdev
 @pdev: The PCIe device
plx_find_root_complex_bus_num - find root complex bus number for a pdev @pdev : The PCIe device