cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/video/fbdev.c

Directory: arch/x86/video
/*
 * Copyright (C) 2007 Antonino Daplas <adaplas@gmail.com>
 *
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file COPYING in the main directory of this archive
 * for more details.
 *
 */
#include <linux/fb.h>
#include <linux/pci.h>
#include <linux/module.h>
#include <linux/vgaarb.h>


int fb_is_primary_device(struct fb_info *info) { struct device *device = info->device; struct pci_dev *default_device = vga_default_device(); struct pci_dev *pci_dev; struct resource *res; if (!device || !dev_is_pci(device)) return 0; pci_dev = to_pci_dev(device); if (default_device) { if (pci_dev == default_device) return 1; return 0; } res = pci_dev->resource + PCI_ROM_RESOURCE; if (res->flags & IORESOURCE_ROM_SHADOW) return 1; return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Antonino A. Daplas6061.22%250.00%
Matthew Garrett2323.47%125.00%
Vitaly Kuznetsov1515.31%125.00%
Total98100.00%4100.00%

EXPORT_SYMBOL(fb_is_primary_device); MODULE_LICENSE("GPL");

Overall Contributors

PersonTokensPropCommitsCommitProp
Antonino A. Daplas7158.68%233.33%
Matthew Garrett2621.49%116.67%
Vitaly Kuznetsov1512.40%116.67%
Adrian Bunk64.96%116.67%
Paul Gortmaker32.48%116.67%
Total121100.00%6100.00%
Directory: arch/x86/video
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.