Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make compile with more recent patch, I hope

  • Loading branch information...
commit b7aaec4ec3898ac71bda4ee05ea6245a8938165e 1 parent 4e40118
@mlankhorst mlankhorst authored
Showing with 8 additions and 0 deletions.
  1. +5 −0 pscnv/bsd_support.h
  2. +3 −0  pscnv/nouveau_bsddrv.c
View
5 pscnv/bsd_support.h
@@ -42,6 +42,11 @@
typedef DRM_SPINTYPE spinlock_t;
+#ifndef cpu_to_le16
+#define cpu_to_le16(x) htole16(x)
+#define le16_to_cpu(x) le16toh(x)
+#endif
+
#define spin_lock_init(lock) DRM_SPININIT(lock, #lock)
#define spin_lock_destroy(lock) DRM_SPINUNINIT(lock)
#define spin_lock(lock) DRM_SPINLOCK(lock)
View
3  pscnv/nouveau_bsddrv.c
@@ -183,6 +183,9 @@ static device_method_t pscnv_methods[] = {
DEVMETHOD(device_suspend, nouveau_suspend),
DEVMETHOD(device_resume, nouveau_resume),
DEVMETHOD(device_detach, drm_detach),
+#ifdef DEVICE_AFTER_ATTACH
+ DEVMETHOD(device_after_attach, drm_after_attach),
+#endif
DEVMETHOD_END
};
Please sign in to comment.
Something went wrong with that request. Please try again.