Deleted Added
sdiff udiff text old ( 256848 ) new ( 259016 )
full compact
1/* i915_drv.c -- Intel i915 driver -*- linux-c -*-
2 * Created: Wed Feb 14 17:10:04 2001 by gareth@valinux.com
3 */
4/*-
5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
6 * All Rights Reserved.
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a

--- 16 unchanged lines hidden (view full) ---

25 * OTHER DEALINGS IN THE SOFTWARE.
26 *
27 * Authors:
28 * Gareth Hughes <gareth@valinux.com>
29 *
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/drm2/i915/i915_drv.c 256848 2013-10-21 16:22:51Z kib $");
34
35#include <dev/drm2/drmP.h>
36#include <dev/drm2/drm.h>
37#include <dev/drm2/drm_mm.h>
38#include <dev/drm2/i915/i915_drm.h>
39#include <dev/drm2/i915/i915_drv.h>
40#include <dev/drm2/drm_pciids.h>
41#include <dev/drm2/i915/intel_drv.h>
42
43/* drv_PCI_IDs comes from drm_pciids.h, generated from drm_pciids.txt. */
44static drm_pci_id_list_t i915_pciidlist[] = {
45 i915_PCI_IDS
46};
47
48static const struct intel_device_info intel_i830_info = {
49 .gen = 2, .is_mobile = 1, .cursor_needs_physical = 1,
50 .has_overlay = 1, .overlay_needs_physical = 1,

--- 324 unchanged lines hidden (view full) ---

375
376 dev = device_get_softc(kdev);
377 if (i915_modeset == 1)
378 i915_driver_info.driver_features |= DRIVER_MODESET;
379 dev->driver = &i915_driver_info;
380 return (drm_attach(kdev, i915_pciidlist));
381}
382
383const struct intel_device_info *
384i915_get_device_id(int device)
385{
386 const struct intel_gfx_device_id *did;
387
388 for (did = &pciidlist[0]; did->device != 0; did++) {
389 if (did->device != device)
390 continue;

--- 4 unchanged lines hidden (view full) ---

395
396static device_method_t i915_methods[] = {
397 /* Device interface */
398 DEVMETHOD(device_probe, i915_probe),
399 DEVMETHOD(device_attach, i915_attach),
400 DEVMETHOD(device_suspend, i915_suspend),
401 DEVMETHOD(device_resume, i915_resume),
402 DEVMETHOD(device_detach, drm_detach),
403 DEVMETHOD_END
404};
405
406static driver_t i915_driver = {
407 "drmn",
408 i915_methods,
409 sizeof(struct drm_device)
410};

--- 411 unchanged lines hidden ---