From 2911d0aae1c3173140d6c78482661e15cae54133 Mon Sep 17 00:00:00 2001 From: jakllsch Date: Fri, 22 Aug 2014 19:59:18 +0000 Subject: [PATCH] Support WSDISPLAYIO_GET_FBINFO ioctl in tifb(4). --- sys/arch/arm/omap/tifb.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/omap/tifb.c b/sys/arch/arm/omap/tifb.c index e48f04d6c477..ed2ae0b4404e 100644 --- a/sys/arch/arm/omap/tifb.c +++ b/sys/arch/arm/omap/tifb.c @@ -1,4 +1,4 @@ -/* $NetBSD: tifb.c,v 1.1 2014/07/16 18:30:43 bouyer Exp $ */ +/* $NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $ */ /* * Copyright (c) 2010 Michael Lorenz @@ -57,7 +57,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.1 2014/07/16 18:30:43 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tifb.c,v 1.2 2014/08/22 19:59:18 jakllsch Exp $"); #include "opt_omap.h" @@ -779,6 +779,17 @@ tifb_ioctl(void *v, void *vs, u_long cmd, void *data, int flag, } return 0; + case WSDISPLAYIO_GET_FBINFO: + { + struct wsdisplayio_fbinfo *fbi = data; + int ret; + + ret = wsdisplayio_get_fbinfo(&ms->scr_ri, fbi); + fbi->fbi_flags |= WSFB_VRAM_IS_RAM; + fbi->fbi_fboffset = sc->sc_palettesize; + return ret; + } + case WSDISPLAYIO_GVIDEO: { int *on = data;