linux/drivers/gpu/drm/ast/ast_drv.c

/*
 * Copyright 2012 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sub license, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
 * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 * USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * The above copyright notice and this permission notice (including the
 * next paragraph) shall be included in all copies or substantial portions
 * of the Software.
 *
 */
/*
 * Authors: Dave Airlie <[email protected]>
 */

#include <linux/module.h>
#include <linux/of.h>
#include <linux/pci.h>

#include <drm/drm_aperture.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_drv.h>
#include <drm/drm_fbdev_shmem.h>
#include <drm/drm_gem_shmem_helper.h>
#include <drm/drm_module.h>
#include <drm/drm_probe_helper.h>

#include "ast_drv.h"

static int ast_modeset =;

MODULE_PARM_DESC();
module_param_named(modeset, ast_modeset, int, 0400);

/*
 * DRM driver
 */

DEFINE_DRM_GEM_FOPS(ast_fops);

static const struct drm_driver ast_driver =;

/*
 * PCI driver
 */

#define PCI_VENDOR_ASPEED

#define AST_VGA_DEVICE(id, info)

static const struct pci_device_id ast_pciidlist[] =;

MODULE_DEVICE_TABLE(pci, ast_pciidlist);

static bool ast_is_vga_enabled(void __iomem *ioregs)
{}

static void ast_enable_vga(void __iomem *ioregs)
{}

/*
 * Run this function as part of the HW device cleanup; not
 * when the DRM device gets released.
 */
static void ast_enable_mmio_release(void *data)
{}

static int ast_enable_mmio(struct device *dev, void __iomem *ioregs)
{}

static void ast_open_key(void __iomem *ioregs)
{}

static int ast_detect_chip(struct pci_dev *pdev,
			   void __iomem *regs, void __iomem *ioregs,
			   enum ast_chip *chip_out,
			   enum ast_config_mode *config_mode_out)
{}

static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{}

static void ast_pci_remove(struct pci_dev *pdev)
{}

static void ast_pci_shutdown(struct pci_dev *pdev)
{}

static int ast_drm_freeze(struct drm_device *dev)
{}

static int ast_drm_thaw(struct drm_device *dev)
{}

static int ast_drm_resume(struct drm_device *dev)
{}

static int ast_pm_suspend(struct device *dev)
{}

static int ast_pm_resume(struct device *dev)
{}

static int ast_pm_freeze(struct device *dev)
{}

static int ast_pm_thaw(struct device *dev)
{}

static int ast_pm_poweroff(struct device *dev)
{}

static const struct dev_pm_ops ast_pm_ops =;

static struct pci_driver ast_pci_driver =;

drm_module_pci_driver_if_modeset();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();