vgaarb.c (b6f6167ea8a424d14b41c172fe7a5f49e164f221) | vgaarb.c (cf8e8658100d4eae80ce9b21f7a81cb024dd5057) |
---|---|
1// SPDX-License-Identifier: MIT 2/* 3 * vgaarb.c: Implements VGA arbitration. For details refer to 4 * Documentation/gpu/vgaarbiter.rst 5 * 6 * (C) Copyright 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> 7 * (C) Copyright 2007 Paulo R. Zanoni <przanoni@gmail.com> 8 * (C) Copyright 2007, 2009 Tiago Vignatti <vignatti@freedesktop.org> --- 542 unchanged lines hidden (view full) --- 551 __vga_put(vgadev, rsrc); 552bail: 553 spin_unlock_irqrestore(&vga_lock, flags); 554} 555EXPORT_SYMBOL(vga_put); 556 557static bool vga_is_firmware_default(struct pci_dev *pdev) 558{ | 1// SPDX-License-Identifier: MIT 2/* 3 * vgaarb.c: Implements VGA arbitration. For details refer to 4 * Documentation/gpu/vgaarbiter.rst 5 * 6 * (C) Copyright 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org> 7 * (C) Copyright 2007 Paulo R. Zanoni <przanoni@gmail.com> 8 * (C) Copyright 2007, 2009 Tiago Vignatti <vignatti@freedesktop.org> --- 542 unchanged lines hidden (view full) --- 551 __vga_put(vgadev, rsrc); 552bail: 553 spin_unlock_irqrestore(&vga_lock, flags); 554} 555EXPORT_SYMBOL(vga_put); 556 557static bool vga_is_firmware_default(struct pci_dev *pdev) 558{ |
559#if defined(CONFIG_X86) || defined(CONFIG_IA64) | 559#if defined(CONFIG_X86) |
560 u64 base = screen_info.lfb_base; 561 u64 size = screen_info.lfb_size; 562 struct resource *r; 563 u64 limit; 564 565 /* Select the device owning the boot framebuffer if there is one */ 566 567 if (screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) --- 992 unchanged lines hidden --- | 560 u64 base = screen_info.lfb_base; 561 u64 size = screen_info.lfb_size; 562 struct resource *r; 563 u64 limit; 564 565 /* Select the device owning the boot framebuffer if there is one */ 566 567 if (screen_info.capabilities & VIDEO_CAPABILITY_64BIT_BASE) --- 992 unchanged lines hidden --- |