diff options
author | Mike Travis <travis@sgi.com> | 2010-02-02 17:38:13 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-05 17:05:41 -0500 |
commit | 95a8b6efc5d07103583f706c8a5889437d537939 (patch) | |
tree | a8e9161eea03b0eb21e838826c547771158ecdce /include/linux/pci.h | |
parent | 499a2673713c85734a54c37dd90b4b729de399c4 (diff) |
pci: Update pci_set_vga_state() to call arch functions
Update pci_set_vga_state to call arch dependent functions to enable Legacy
VGA I/O transactions to be redirected to correct target.
[akpm@linux-foundation.org: make pci_register_set_vga_state() __init]
Signed-off-by: Mike Travis <travis@sgi.com>
LKML-Reference: <201002022238.o12McE1J018723@imap1.linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Robin Holt <holt@sgi.com>
Cc: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 174e5392e51e..5da166e560c2 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -955,6 +955,11 @@ static inline int pci_proc_domain(struct pci_bus *bus) | |||
955 | } | 955 | } |
956 | #endif /* CONFIG_PCI_DOMAINS */ | 956 | #endif /* CONFIG_PCI_DOMAINS */ |
957 | 957 | ||
958 | /* some architectures require additional setup to direct VGA traffic */ | ||
959 | typedef int (*arch_set_vga_state_t)(struct pci_dev *pdev, bool decode, | ||
960 | unsigned int command_bits, bool change_bridge); | ||
961 | extern void pci_register_set_vga_state(arch_set_vga_state_t func); | ||
962 | |||
958 | #else /* CONFIG_PCI is not enabled */ | 963 | #else /* CONFIG_PCI is not enabled */ |
959 | 964 | ||
960 | /* | 965 | /* |