mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 02:04:19 +08:00
PCI: make pci_flags always available
If we move resource assignment functions into the core, we'll still need a way for architectures to prevent reassignment, e.g., the "pci_probe_only" functionality, and we'll need a generic, always available way the core can test for that. The "pci_flags" arrangement used by several architectures seems like a convenient way to do this. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
823806ff6b
commit
47087700ce
@ -25,8 +25,11 @@
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/cache.h>
|
||||
#include <linux/slab.h>
|
||||
#include <asm-generic/pci-bridge.h>
|
||||
#include "pci.h"
|
||||
|
||||
unsigned int __weak pci_flags;
|
||||
|
||||
struct pci_dev_resource {
|
||||
struct list_head list;
|
||||
struct resource *res;
|
||||
|
Loading…
Reference in New Issue
Block a user