-/* $OpenBSD: drmP.h,v 1.186 2015/04/06 15:43:15 jsg Exp $ */
+/* $OpenBSD: drmP.h,v 1.187 2015/04/10 05:31:25 jsg Exp $ */
/* drmP.h -- Private header for Direct Rendering Manager -*- linux-c -*-
* Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com
*/
#include <sys/extent.h>
#include <sys/rwlock.h>
+#ifdef DDB
+#include <ddb/db_var.h>
+#endif
+
#include <uvm/uvm_extern.h>
#include <uvm/uvm_object.h>
-/* $OpenBSD: drm_linux.h,v 1.15 2015/04/08 04:03:06 jsg Exp $ */
+/* $OpenBSD: drm_linux.h,v 1.16 2015/04/10 05:31:25 jsg Exp $ */
/*
* Copyright (c) 2013, 2014 Mark Kettenis
*
return curcpu()->ci_inatomic;
}
+static inline int
+irqs_disabled(void)
+{
+ return (cold);
+}
+
+static inline int
+in_dbg_master(void)
+{
+#ifdef DDB
+ return (db_is_active);
+#endif
+ return (0);
+}
+
static inline void *
kmap_atomic(struct vm_page *pg)
{