aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/bios_uv.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/bios_uv.c')
-rw-r--r--arch/x86/kernel/bios_uv.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/kernel/bios_uv.c b/arch/x86/kernel/bios_uv.c
index b0206a211b0..575127a6e35 100644
--- a/arch/x86/kernel/bios_uv.c
+++ b/arch/x86/kernel/bios_uv.c
@@ -154,6 +154,25 @@ s64 uv_bios_freq_base(u64 clock_type, u64 *ticks_per_second)
154} 154}
155EXPORT_SYMBOL_GPL(uv_bios_freq_base); 155EXPORT_SYMBOL_GPL(uv_bios_freq_base);
156 156
157/*
158 * uv_bios_set_legacy_vga_target - Set Legacy VGA I/O Target
159 * @decode: true to enable target, false to disable target
160 * @domain: PCI domain number
161 * @bus: PCI bus number
162 *
163 * Returns:
164 * 0: Success
165 * -EINVAL: Invalid domain or bus number
166 * -ENOSYS: Capability not available
167 * -EBUSY: Legacy VGA I/O cannot be retargeted at this time
168 */
169int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus)
170{
171 return uv_bios_call(UV_BIOS_SET_LEGACY_VGA_TARGET,
172 (u64)decode, (u64)domain, (u64)bus, 0, 0);
173}
174EXPORT_SYMBOL_GPL(uv_bios_set_legacy_vga_target);
175
157 176
158#ifdef CONFIG_EFI 177#ifdef CONFIG_EFI
159void uv_bios_init(void) 178void uv_bios_init(void)