Module Name: src Committed By: tsutsui Date: Fri Jun 18 09:11:44 UTC 2010
Modified Files: src/sys/dev/hpc: hpcfb.c Log Message: Add WSDISPLAYIO_LINEBYTES, which is required by Xorg wsfb server. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/dev/hpc/hpcfb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/hpc/hpcfb.c diff -u src/sys/dev/hpc/hpcfb.c:1.55 src/sys/dev/hpc/hpcfb.c:1.56 --- src/sys/dev/hpc/hpcfb.c:1.55 Sat May 15 08:53:27 2010 +++ src/sys/dev/hpc/hpcfb.c Fri Jun 18 09:11:44 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: hpcfb.c,v 1.55 2010/05/15 08:53:27 tsutsui Exp $ */ +/* $NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $ */ /*- * Copyright (c) 1999 @@ -43,7 +43,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.55 2010/05/15 08:53:27 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.56 2010/06/18 09:11:44 tsutsui Exp $"); #ifdef _KERNEL_OPT #include "opt_hpcfb.h" @@ -582,6 +582,10 @@ wdf->cmsize = 256; /* XXXX */ return (0); + case WSDISPLAYIO_LINEBYTES: + *(u_int *)data = dc->dc_rinfo.ri_stride; + return 0; + case WSDISPLAYIO_SMODE: if (*(int *)data == WSDISPLAYIO_MODE_EMUL){ if (sc->sc_mapping){