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 Add drm_config_found for food...
details: https://anonhg.NetBSD.org/src/rev/29981f939986
branches: riastradh-drm2
changeset: 788351:29981f939986
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:23:00 2013 +0000
description:
Add drm_config_found for foodrm_attach to call to attach drm(4).
diffstat:
sys/external/bsd/drm2/dist/include/drm/drmP.h | 5 +++++
sys/external/bsd/drm2/drm/drm_drv.c | 23 +++++++++++++++++++++--
2 files changed, 26 insertions(+), 2 deletions(-)
diffs (56 lines):
diff -r 86979e47de64 -r 29981f939986 sys/external/bsd/drm2/dist/include/drm/drmP.h
--- a/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 03:22:42 2013 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drmP.h Wed Jul 24 03:23:00 2013 +0000
@@ -1484,6 +1484,11 @@
extern int drm_lastclose(struct drm_device *dev);
#endif
+#ifdef __NetBSD__
+extern void drm_config_found(device_t, /* XXXX const */ struct drm_driver *,
+ unsigned long, struct drm_device *);
+#endif
+
/* Device support (drm_fops.h) */
extern struct mutex drm_global_mutex;
#ifdef __NetBSD__
diff -r 86979e47de64 -r 29981f939986 sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 03:22:42 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Wed Jul 24 03:23:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.1.2.9 2013/07/24 03:22:42 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.1.2.10 2013/07/24 03:23:00 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.9 2013/07/24 03:22:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.10 2013/07/24 03:23:00 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -586,3 +586,22 @@
out:
return error;
}
+
+void
+drm_config_found(device_t parent, struct drm_driver *driver,
+ unsigned long flags, struct drm_device *dev)
+{
+ int error;
+
+ error = drm_fill_in_dev(dev, NULL, driver);
+ if (error) {
+ aprint_error_dev(parent, "unable to initialize drm: %d\n",
+ error);
+ return;
+ }
+
+ if (config_found_ia(parent, "drmbus", dev, NULL) == NULL) {
+ aprint_error_dev(parent, "unable to attach drm\n");
+ return;
+ }
+}
Home |
Main Index |
Thread Index |
Old Index