Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm/i915 Expose the i915...



details:   https://anonhg.NetBSD.org/src/rev/a64b85e950f2
branches:  riastradh-drm2
changeset: 788365:a64b85e950f2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:26:53 2013 +0000

description:
Expose the i915 struct drm_driver and PCI id list from i915_drv.c.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r e8f85544a40d -r a64b85e950f2 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Wed Jul 24 03:26:36 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Wed Jul 24 03:26:53 2013 +0000
@@ -132,6 +132,11 @@
 static struct drm_driver driver;
 extern int intel_agp_enabled;
 
+#ifdef __NetBSD__
+/* XXX Kludge to expose this to NetBSD driver attachment goop.  */
+struct drm_driver *const i915_drm_driver = &driver;
+#endif
+
 #define INTEL_VGA_DEVICE(id, info) {           \
        .class = PCI_BASE_CLASS_DISPLAY << 16,  \
        .class_mask = 0xff0000,                 \
@@ -404,6 +409,12 @@
 MODULE_DEVICE_TABLE(pci, pciidlist);
 #endif
 
+#ifdef __NetBSD__
+/* XXX Kludge to expose this to NetBSD driver attachment goop.  */
+const struct pci_device_id *const i915_device_ids = pciidlist;
+const size_t i915_n_device_ids = __arraycount(pciidlist);
+#endif
+
 void intel_detect_pch(struct drm_device *dev)
 {
        struct drm_i915_private *dev_priv = dev->dev_private;



Home | Main Index | Thread Index | Old Index