Ignore:
Timestamp:
Apr 14, 2017, 9:41:36 PM (3 months ago)
Author:
brainslayer
Message:

kernel update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-4.9/drivers/gpu/drm/mga/mga_drv.c

    r31574 r31859  
    3838#include <drm/drm_pciids.h>
    3939
    40 static int mga_driver_device_is_agp(struct drm_device *dev);
    41 
    4240static struct pci_device_id pciidlist[] = {
    4341        mga_PCI_IDS
     
    6765        .set_busid = drm_pci_set_busid,
    6866        .dma_quiescent = mga_driver_dma_quiescent,
    69         .device_is_agp = mga_driver_device_is_agp,
    7067        .get_vblank_counter = mga_get_vblank_counter,
    7168        .enable_vblank = mga_enable_vblank,
     
    108105MODULE_DESCRIPTION(DRIVER_DESC);
    109106MODULE_LICENSE("GPL and additional rights");
    110 
    111 /**
    112  * Determine if the device really is AGP or not.
    113  *
    114  * In addition to the usual tests performed by \c drm_device_is_agp, this
    115  * function detects PCI G450 cards that appear to the system exactly like
    116  * AGP G450 cards.
    117  *
    118  * \param dev   The device to be tested.
    119  *
    120  * \returns
    121  * If the device is a PCI G450, zero is returned.  Otherwise 2 is returned.
    122  */
    123 static int mga_driver_device_is_agp(struct drm_device *dev)
    124 {
    125         const struct pci_dev *const pdev = dev->pdev;
    126 
    127         /* There are PCI versions of the G450.  These cards have the
    128          * same PCI ID as the AGP G450, but have an additional PCI-to-PCI
    129          * bridge chip.  We detect these cards, which are not currently
    130          * supported by this driver, by looking at the device ID of the
    131          * bus the "card" is on.  If vendor is 0x3388 (Hint Corp) and the
    132          * device is 0x0021 (HB6 Universal PCI-PCI bridge), we reject the
    133          * device.
    134          */
    135 
    136         if ((pdev->device == 0x0525) && pdev->bus->self
    137             && (pdev->bus->self->vendor == 0x3388)
    138             && (pdev->bus->self->device == 0x0021)) {
    139                 return 0;
    140         }
    141 
    142         return 2;
    143 }
Note: See TracChangeset for help on using the changeset viewer.