Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 14:47:29 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif: object.h

Log Message:
Let's not truncate registers to 8-bit when we read them, shall we?


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
    src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h:1.5 src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h:1.6
--- src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h:1.5	Mon Aug 27 14:47:16 2018
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/object.h	Mon Aug 27 14:47:29 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: object.h,v 1.5 2018/08/27 14:47:16 riastradh Exp $	*/
+/*	$NetBSD: object.h,v 1.6 2018/08/27 14:47:29 riastradh Exp $	*/
 
 #ifndef __NVIF_OBJECT_H__
 #define __NVIF_OBJECT_H__
@@ -60,7 +60,7 @@ nvif_rd08(struct nvif_object *obj, uint6
 	else
 		return nvif_object_rd(obj, 1, offset);
 }
-static inline uint8_t
+static inline uint16_t
 nvif_rd16(struct nvif_object *obj, uint64_t offset)
 {
 	if (obj->map.ptr)
@@ -69,7 +69,7 @@ nvif_rd16(struct nvif_object *obj, uint6
 	else
 		return nvif_object_rd(obj, 2, offset);
 }
-static inline uint8_t
+static inline uint32_t
 nvif_rd32(struct nvif_object *obj, uint64_t offset)
 {
 	if (obj->map.ptr)

Reply via email to