drm_pci_init(9) Register matching PCI devices with the DRM subsystem

SYNOPSIS

int drm_pci_init(struct drm_driver * driver, struct pci_driver * pdriver);

ARGUMENTS

driver

DRM device driver

pdriver

PCI device driver

DESCRIPTION

Initializes a drm_device structures, registering the stubs and initializing the AGP device.

NOTE

This function is deprecated. Modern modesetting drm drivers should use pci_register_driver directly, this function only provides shadow-binding support for old legacy drivers on top of that core pci function.

RETURN

0 on success or a negative error code on failure.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,         
        

Contributions all over the place

Lukas Wunner <[email protected]>

vga_switcheroo documentation

COPYRIGHT