#include <linux/vgaarb.h>
#include <linux/vga_switcheroo.h>
#include <drm/drm_fb_helper.h>
#include "nouveau_drv.h"
#include "nouveau_acpi.h"
#include "nouveau_vga.h"
static unsigned int
nouveau_vga_set_decode(struct pci_dev *pdev, bool state)
{ … }
static void
nouveau_switcheroo_set_state(struct pci_dev *pdev,
enum vga_switcheroo_state state)
{ … }
static void
nouveau_switcheroo_reprobe(struct pci_dev *pdev)
{ … }
static bool
nouveau_switcheroo_can_switch(struct pci_dev *pdev)
{ … }
static const struct vga_switcheroo_client_ops
nouveau_switcheroo_ops = …;
void
nouveau_vga_init(struct nouveau_drm *drm)
{ … }
void
nouveau_vga_fini(struct nouveau_drm *drm)
{ … }
void
nouveau_vga_lastclose(struct drm_device *dev)
{ … }