pci.c (ffb1e76f4f32d2b8ea4189df0484980370476395) | pci.c (06dc660e6eb8817c4c379d2ca290ae0b3f77c69f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCI Bus Services, see include/linux/pci.h for further explanation. 4 * 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 7 * 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> --- 2077 unchanged lines hidden (view full) --- 2086 dr = find_pci_dr(pdev); 2087 WARN_ON(!dr || !dr->enabled); 2088 if (dr) 2089 dr->pinned = 1; 2090} 2091EXPORT_SYMBOL(pcim_pin_device); 2092 2093/* | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * PCI Bus Services, see include/linux/pci.h for further explanation. 4 * 5 * Copyright 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 7 * 8 * Copyright 1997 -- 2000 Martin Mares <mj@ucw.cz> --- 2077 unchanged lines hidden (view full) --- 2086 dr = find_pci_dr(pdev); 2087 WARN_ON(!dr || !dr->enabled); 2088 if (dr) 2089 dr->pinned = 1; 2090} 2091EXPORT_SYMBOL(pcim_pin_device); 2092 2093/* |
2094 * pcibios_add_device - provide arch specific hooks when adding device dev | 2094 * pcibios_device_add - provide arch specific hooks when adding device dev |
2095 * @dev: the PCI device being added 2096 * 2097 * Permits the platform to provide architecture specific functionality when 2098 * devices are added. This is the default implementation. Architecture 2099 * implementations can override this. 2100 */ | 2095 * @dev: the PCI device being added 2096 * 2097 * Permits the platform to provide architecture specific functionality when 2098 * devices are added. This is the default implementation. Architecture 2099 * implementations can override this. 2100 */ |
2101int __weak pcibios_add_device(struct pci_dev *dev) | 2101int __weak pcibios_device_add(struct pci_dev *dev) |
2102{ 2103 return 0; 2104} 2105 2106/** 2107 * pcibios_release_device - provide arch specific hooks when releasing 2108 * device dev 2109 * @dev: the PCI device being released --- 4718 unchanged lines hidden --- | 2102{ 2103 return 0; 2104} 2105 2106/** 2107 * pcibios_release_device - provide arch specific hooks when releasing 2108 * device dev 2109 * @dev: the PCI device being released --- 4718 unchanged lines hidden --- |