Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/pci match linux side loading of headers
details: https://anonhg.NetBSD.org/src/rev/81bfc340c312
branches: trunk
changeset: 992397:81bfc340c312
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:06:41 2018 +0000
description:
match linux side loading of headers
more bring in OLD drm code to unbreak the build
matching netbsd types etc. to get the build going
Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/include/drm/drm_dp_mst_helper.h | 4 +++-
sys/external/bsd/drm2/include/linux/fb.h | 5 ++++-
sys/external/bsd/drm2/include/linux/mm.h | 10 +++++++++-
sys/external/bsd/drm2/include/linux/mutex.h | 3 ++-
sys/external/bsd/drm2/include/linux/types.h | 8 +++++++-
sys/external/bsd/drm2/include/linux/ww_mutex.h | 4 +++-
sys/external/bsd/drm2/pci/drm_pci.c | 7 +++----
7 files changed, 31 insertions(+), 10 deletions(-)
diffs (157 lines):
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/dist/include/drm/drm_dp_mst_helper.h
--- a/sys/external/bsd/drm2/dist/include/drm/drm_dp_mst_helper.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/dist/include/drm/drm_dp_mst_helper.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_dp_mst_helper.h,v 1.2 2018/08/27 04:58:37 riastradh Exp $ */
+/* $NetBSD: drm_dp_mst_helper.h,v 1.3 2018/08/27 06:06:41 riastradh Exp $ */
/*
* Copyright © 2014 Red Hat.
@@ -456,7 +456,9 @@
unsigned long payload_mask;
unsigned long vcpi_mask;
+#ifndef __NetBSD__
wait_queue_head_t tx_waitq;
+#endif
struct work_struct work;
struct work_struct tx_work;
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/include/linux/fb.h
--- a/sys/external/bsd/drm2/include/linux/fb.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/fb.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $ */
+/* $NetBSD: fb.h,v 1.3 2018/08/27 06:06:41 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,6 +32,9 @@
#ifndef _LINUX_FB_H_
#define _LINUX_FB_H_
+#include <linux/kgdb.h>
+#include <linux/notifier.h>
+
#define PICOS2KHZ(PICOS) (1000000000ul / (PICOS))
#define KHZ2PICOS(KHZ) (1000000000ul / (KHZ))
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/include/linux/mm.h
--- a/sys/external/bsd/drm2/include/linux/mm.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/mm.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mm.h,v 1.6 2015/10/18 14:03:20 jmcneill Exp $ */
+/* $NetBSD: mm.h,v 1.7 2018/08/27 06:06:41 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,6 +35,8 @@
#include <uvm/uvm_extern.h>
#include <asm/page.h>
+#include <linux/shrinker.h>
+
struct file;
@@ -76,4 +78,10 @@
return uvmexp.npages;
}
+static inline void
+kvfree(void * ptr)
+{
+ panic("Unimplemented");
+}
+
#endif /* _LINUX_MM_H_ */
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/include/linux/mutex.h
--- a/sys/external/bsd/drm2/include/linux/mutex.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/mutex.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.7 2014/08/23 08:03:33 riastradh Exp $ */
+/* $NetBSD: mutex.h,v 1.8 2018/08/27 06:06:41 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -35,6 +35,7 @@
#include <sys/mutex.h>
#include <lib/libkern/libkern.h> /* KASSERT */
+#include <linux/list.h>
#define __acquires(lock) /* XXX lockdep stuff */
#define __releases(lock) /* XXX lockdep stuff */
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/include/linux/types.h
--- a/sys/external/bsd/drm2/include/linux/types.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/types.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.4 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: types.h,v 1.5 2018/08/27 06:06:41 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -77,4 +77,10 @@
/* XXX Not sure this is correct. */
typedef off_t loff_t;
+struct rcu_head {
+
+};
+
+#define DECLARE_BITMAP(name,size) size_t name[size/sizeof(size_t)]
+
#endif /* _LINUX_TYPES_H_ */
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/include/linux/ww_mutex.h
--- a/sys/external/bsd/drm2/include/linux/ww_mutex.h Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/ww_mutex.h Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ww_mutex.h,v 1.11 2015/05/21 21:55:55 riastradh Exp $ */
+/* $NetBSD: ww_mutex.h,v 1.12 2018/08/27 06:06:41 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -37,6 +37,8 @@
#include <sys/mutex.h>
#include <sys/rbtree.h>
+#include <linux/mutex.h>
+
struct ww_class {
volatile uint64_t wwc_ticket;
};
diff -r a679298e68c1 -r 81bfc340c312 sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c Mon Aug 27 06:06:31 2018 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c Mon Aug 27 06:06:41 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_pci.c,v 1.18 2017/07/27 02:11:24 nonaka Exp $ */
+/* $NetBSD: drm_pci.c,v 1.19 2018/08/27 06:06:42 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.18 2017/07/27 02:11:24 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.19 2018/08/27 06:06:42 riastradh Exp $");
#include <sys/types.h>
#include <sys/errno.h>
@@ -53,7 +53,6 @@
struct drm_bus_irq_cookie *);
static const char *
drm_pci_get_name(struct drm_device *);
-static int drm_pci_set_busid(struct drm_device *, struct drm_master *);
static int drm_pci_set_unique(struct drm_device *, struct drm_master *,
struct drm_unique *);
static int drm_pci_irq_by_busid(struct drm_device *,
@@ -320,7 +319,7 @@
unique);
}
-static int
+int
drm_pci_set_busid(struct drm_device *dev, struct drm_master *master)
{
int n;
Home |
Main Index |
Thread Index |
Old Index