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/include/drm provide DRM_FILE_PAGE_OFFS...
details: https://anonhg.NetBSD.org/src/rev/d864ec38e79f
branches: trunk
changeset: 1028194:d864ec38e79f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 09:47:59 2021 +0000
description:
provide DRM_FILE_PAGE_OFFSET_{START,SIZE}
Author: Maya Rashish <maya%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/include/drm/drm_vma_manager.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 4c848453eb83 -r d864ec38e79f sys/external/bsd/drm2/include/drm/drm_vma_manager.h
--- a/sys/external/bsd/drm2/include/drm/drm_vma_manager.h Sun Dec 19 09:47:52 2021 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_vma_manager.h Sun Dec 19 09:47:59 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_vma_manager.h,v 1.5 2021/12/19 09:45:42 riastradh Exp $ */
+/* $NetBSD: drm_vma_manager.h,v 1.6 2021/12/19 09:47:59 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -40,6 +40,14 @@
#include <linux/mm.h>
+#if BITS_PER_LONG == 64
+#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1)
+#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 256)
+#else
+#define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFUL >> PAGE_SHIFT) + 1)
+#define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFUL >> PAGE_SHIFT) * 16)
+#endif
+
struct drm_file;
struct drm_vma_offset_manager {
Home |
Main Index |
Thread Index |
Old Index