Module Name: src
Committed By: riastradh
Date: Mon Aug 27 06:43:10 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/dist/drm/radeon: ci_dpm.c
src/sys/external/bsd/drm2/include/linux: dmi.h fence.h math64.h
Log Message:
provide some dummy structs
declaration without implementation of dmi_match (Won't link)
provide div64_u64_rem XXX the naming of the parameters is backwards
ci_send_msg_to_smc_return_parameter isn't unused, keep it
Author: coypu <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/include/linux/dmi.h \
src/sys/external/bsd/drm2/include/linux/math64.h
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/include/linux/fence.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/radeon/ci_dpm.c
diff -u src/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c:1.8 src/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c:1.9
--- src/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c:1.8 Mon Aug 27 06:40:56 2018
+++ src/sys/external/bsd/drm2/dist/drm/radeon/ci_dpm.c Mon Aug 27 06:43:10 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: ci_dpm.c,v 1.8 2018/08/27 06:40:56 riastradh Exp $ */
+/* $NetBSD: ci_dpm.c,v 1.9 2018/08/27 06:43:10 riastradh Exp $ */
/*
* Copyright 2013 Advanced Micro Devices, Inc.
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ci_dpm.c,v 1.8 2018/08/27 06:40:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ci_dpm.c,v 1.9 2018/08/27 06:43:10 riastradh Exp $");
#include <linux/firmware.h>
#include "drmP.h"
@@ -1671,7 +1671,6 @@ static PPSMC_Result ci_send_msg_to_smc_w
return ci_send_msg_to_smc(rdev, msg);
}
-#ifndef __NetBSD__ /* XXX unused? */
static PPSMC_Result ci_send_msg_to_smc_return_parameter(struct radeon_device *rdev,
PPSMC_Msg msg, u32 *parameter)
{
@@ -1684,7 +1683,6 @@ static PPSMC_Result ci_send_msg_to_smc_r
return smc_result;
}
-#endif
static int ci_dpm_force_state_sclk(struct radeon_device *rdev, u32 n)
{
Index: src/sys/external/bsd/drm2/include/linux/dmi.h
diff -u src/sys/external/bsd/drm2/include/linux/dmi.h:1.3 src/sys/external/bsd/drm2/include/linux/dmi.h:1.4
--- src/sys/external/bsd/drm2/include/linux/dmi.h:1.3 Fri Apr 25 23:54:59 2014
+++ src/sys/external/bsd/drm2/include/linux/dmi.h Mon Aug 27 06:43:10 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: dmi.h,v 1.3 2014/04/25 23:54:59 riastradh Exp $ */
+/* $NetBSD: dmi.h,v 1.4 2018/08/27 06:43:10 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -69,5 +69,6 @@ struct dmi_system_id {
#define DMI_EXACT_MATCH(a, b) {(a), (b)}
int dmi_check_system(const struct dmi_system_id *list);
+bool dmi_match(enum dmi_field, const char[]);
#endif /* _LINUX_DMI_H_ */
Index: src/sys/external/bsd/drm2/include/linux/math64.h
diff -u src/sys/external/bsd/drm2/include/linux/math64.h:1.3 src/sys/external/bsd/drm2/include/linux/math64.h:1.4
--- src/sys/external/bsd/drm2/include/linux/math64.h:1.3 Wed Jul 16 20:59:58 2014
+++ src/sys/external/bsd/drm2/include/linux/math64.h Mon Aug 27 06:43:10 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: math64.h,v 1.3 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: math64.h,v 1.4 2018/08/27 06:43:10 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -54,4 +54,11 @@ div64_s64(int64_t divisor, int64_t divid
return divisor / dividend;
}
+static inline uint64_t
+div64_u64_rem(uint64_t divisor, uint64_t dividend, uint64_t *rem)
+{
+ *rem = divisor % dividend;
+ return divisor / dividend;
+}
+
#endif /* _LINUX_MATH64_H_ */
Index: src/sys/external/bsd/drm2/include/linux/fence.h
diff -u src/sys/external/bsd/drm2/include/linux/fence.h:1.1 src/sys/external/bsd/drm2/include/linux/fence.h:1.2
--- src/sys/external/bsd/drm2/include/linux/fence.h:1.1 Mon Aug 27 06:33:57 2018
+++ src/sys/external/bsd/drm2/include/linux/fence.h Mon Aug 27 06:43:10 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: fence.h,v 1.1 2018/08/27 06:33:57 riastradh Exp $ */
+/* $NetBSD: fence.h,v 1.2 2018/08/27 06:43:10 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,4 +32,13 @@
#ifndef _LINUX_FENCE_H_
#define _LINUX_FENCE_H_
+struct fence_ops {
+
+};
+
+struct fence {
+ const struct fence_ops *ops;
+};
+
+
#endif /* _LINUX_FENCE_H_ */