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 Add string Linux module parameters.
details: https://anonhg.NetBSD.org/src/rev/ecc2eaecf8d2
branches: trunk
changeset: 336310:ecc2eaecf8d2
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Feb 25 14:00:52 2015 +0000
description:
Add string Linux module parameters.
Needed by nouveau.
>From chs@.
diffstat:
sys/external/bsd/drm2/drm/drm_sysctl.c | 4 +++-
sys/external/bsd/drm2/include/linux/moduleparam.h | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 141fb7889bf6 -r ecc2eaecf8d2 sys/external/bsd/drm2/drm/drm_sysctl.c
--- a/sys/external/bsd/drm2/drm/drm_sysctl.c Wed Feb 25 13:52:42 2015 +0000
+++ b/sys/external/bsd/drm2/drm/drm_sysctl.c Wed Feb 25 14:00:52 2015 +0000
@@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_sysctl.c,v 1.4 2014/11/24 17:29:02 prlw1 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_sysctl.c,v 1.5 2015/02/25 14:00:52 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -96,6 +96,8 @@
return CTLTYPE_BOOL;
case MTYPE_int:
return CTLTYPE_INT;
+ case MTYPE_charp:
+ return CTLTYPE_STRING;
default:
aprint_error("unhandled module param type %d for %s\n",
p->type, p->name);
diff -r 141fb7889bf6 -r ecc2eaecf8d2 sys/external/bsd/drm2/include/linux/moduleparam.h
--- a/sys/external/bsd/drm2/include/linux/moduleparam.h Wed Feb 25 13:52:42 2015 +0000
+++ b/sys/external/bsd/drm2/include/linux/moduleparam.h Wed Feb 25 14:00:52 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: moduleparam.h,v 1.4 2014/11/12 04:53:14 christos Exp $ */
+/* $NetBSD: moduleparam.h,v 1.5 2015/02/25 14:00:52 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -44,6 +44,7 @@
#define MTYPE_int 0
#define MTYPE_bool 1
+#define MTYPE_charp 2
#define module_param_named(NAME, VAR, TYPE, MODE) \
static __attribute__((__used__)) struct linux_module_param_info info_ ## NAME = { \
Home |
Main Index |
Thread Index |
Old Index