Lines Matching defs:bridge
130 priv->bridge.pci = info;
194 priv->bridge.pcmcia = info;
204 * Get the PCI bridge information for a device
207 * If \c dev is a PCI-to-PCI bridge, a pointer to a \c pci_bridge_info
215 if (priv->bridge.pci == NULL) {
219 return ((priv->header_type & 0x7f) == 1) ? priv->bridge.pci : NULL;
224 * Get the PCMCIA bridge information for a device
227 * If \c dev is a PCI-to-PCMCIA bridge, a pointer to a
235 if (priv->bridge.pcmcia == NULL) {
239 return (priv->header_type == 2) ? priv->bridge.pcmcia : NULL;
244 * Determine the primary, secondary, and subordinate buses for a bridge
247 * a specified bridge. Not all bridges directly store this information
251 * For example, for a PCI-to-ISA bridge, \c primary_bus will be set to the ID
256 * On success, zero is returned. If \c dev is not a bridge, \c ENODEV is
269 /* If the device isn't a bridge, return an error.
294 if (priv->bridge.pci == NULL)
297 *primary_bus = priv->bridge.pci->primary_bus;
298 *secondary_bus = priv->bridge.pci->secondary_bus;
299 *subordinate_bus = priv->bridge.pci->subordinate_bus;
308 if (priv->bridge.pcmcia == NULL)
311 *primary_bus = priv->bridge.pcmcia->primary_bus;
312 *secondary_bus = priv->bridge.pcmcia->card_bus;
313 *subordinate_bus = priv->bridge.pcmcia->subordinate_bus;
339 struct pci_device *bridge;
349 while ((bridge = pci_device_next(iter)) != NULL) {
350 if (bridge->domain == dev->domain) {
352 pci_device_get_bridge_info(bridge);
364 return bridge;