vga_switcheroo_register_client(9) register vga client

SYNOPSIS

int vga_switcheroo_register_client(struct pci_dev * pdev, const struct vga_switcheroo_client_ops * ops, bool driver_power_control);

ARGUMENTS

pdev

client pci device

ops

client callbacks

driver_power_control

whether power state is controlled by the driver's runtime pm

DESCRIPTION

Register vga client (GPU). Enable vga_switcheroo if another GPU and a handler have already registered. The power state of the client is assumed to be ON.

RETURN

0 on success, -ENOMEM on memory allocation error.

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