From f3aa73538fe3712b599fb06502431869140957b6 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 19 Jan 2024 17:51:16 +0000 Subject: Rename WSDISPLAY_TYPE_RKDRM to WSDISPLAY_TYPE_KMS such that we can use it for other generic KMS drivers. ok jsg@, matthieu@ --- sys/dev/fdt/rkdrm.c | 4 ++-- sys/dev/wscons/wsconsio.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/dev/fdt/rkdrm.c b/sys/dev/fdt/rkdrm.c index cac3ccb7a38..e4445706583 100644 --- a/sys/dev/fdt/rkdrm.c +++ b/sys/dev/fdt/rkdrm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkdrm.c,v 1.19 2024/01/16 23:37:50 jsg Exp $ */ +/* $OpenBSD: rkdrm.c,v 1.20 2024/01/19 17:51:15 kettenis Exp $ */ /* $NetBSD: rk_drm.c,v 1.3 2019/12/15 01:00:58 mrg Exp $ */ /*- * Copyright (c) 2019 Jared D. McNeill @@ -266,7 +266,7 @@ rkdrm_wsioctl(void *v, u_long cmd, caddr_t data, int flag, struct proc *p) return ws_set_param(dp); return -1; case WSDISPLAYIO_GTYPE: - *(u_int *)data = WSDISPLAY_TYPE_RKDRM; + *(u_int *)data = WSDISPLAY_TYPE_KMS; return 0; case WSDISPLAYIO_GINFO: wdf = (struct wsdisplay_fbinfo *)data; diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index 574c593cf1e..332b650cff2 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsconsio.h,v 1.100 2023/07/02 21:44:04 bru Exp $ */ +/* $OpenBSD: wsconsio.h,v 1.101 2024/01/19 17:51:15 kettenis Exp $ */ /* $NetBSD: wsconsio.h,v 1.74 2005/04/28 07:15:44 martin Exp $ */ /* @@ -461,7 +461,7 @@ struct wsmouse_parameters { #define WSDISPLAY_TYPE_INTELDRM 69 /* Intel KMS framebuffer */ #define WSDISPLAY_TYPE_RADEONDRM 70 /* ATI Radeon KMS framebuffer */ #define WSDISPLAY_TYPE_EFIFB 71 /* EFI framebuffer */ -#define WSDISPLAY_TYPE_RKDRM 72 /* Rockchip KMS framebuffer */ +#define WSDISPLAY_TYPE_KMS 72 /* Generic KMS framebuffer */ #define WSDISPLAY_TYPE_ASTFB 73 /* AST framebuffer */ #define WSDISPLAY_TYPE_VIOGPU 74 /* VirtIO GPU */ -- cgit v1.2.3