Thu Jul 14 19:55:56 2022 UTC ()
Fix pasto.


(tsutsui)
diff -r1.44 -r1.45 src/sys/arch/luna68k/dev/lunafb.c

cvs diff -r1.44 -r1.45 src/sys/arch/luna68k/dev/lunafb.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/dev/lunafb.c 2022/07/03 11:30:48 1.44
+++ src/sys/arch/luna68k/dev/lunafb.c 2022/07/14 19:55:56 1.45
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: lunafb.c,v 1.44 2022/07/03 11:30:48 andvar Exp $ */ 1/* $NetBSD: lunafb.c,v 1.45 2022/07/14 19:55:56 tsutsui Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2000 The NetBSD Foundation, Inc. 4 * Copyright (c) 2000 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Tohru Nishimura. 8 * by Tohru Nishimura.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -21,27 +21,27 @@ @@ -21,27 +21,27 @@
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ 32#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
33 33
34__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.44 2022/07/03 11:30:48 andvar Exp $"); 34__KERNEL_RCSID(0, "$NetBSD: lunafb.c,v 1.45 2022/07/14 19:55:56 tsutsui Exp $");
35 35
36#include <sys/param.h> 36#include <sys/param.h>
37#include <sys/systm.h> 37#include <sys/systm.h>
38#include <sys/conf.h> 38#include <sys/conf.h>
39#include <sys/device.h> 39#include <sys/device.h>
40#include <sys/ioctl.h> 40#include <sys/ioctl.h>
41#include <sys/kmem.h> 41#include <sys/kmem.h>
42#include <sys/mman.h> 42#include <sys/mman.h>
43#include <sys/proc.h> 43#include <sys/proc.h>
44#include <sys/tty.h> 44#include <sys/tty.h>
45#include <sys/errno.h> 45#include <sys/errno.h>
46#include <sys/buf.h> 46#include <sys/buf.h>
47 47
@@ -243,27 +243,27 @@ omfbioctl(void *v, void *vs, u_long cmd, @@ -243,27 +243,27 @@ omfbioctl(void *v, void *vs, u_long cmd,
243 int new_mode; 243 int new_mode;
244 244
245 switch (cmd) { 245 switch (cmd) {
246 case WSDISPLAYIO_GTYPE: 246 case WSDISPLAYIO_GTYPE:
247 *(u_int *)data = WSDISPLAY_TYPE_LUNA; 247 *(u_int *)data = WSDISPLAY_TYPE_LUNA;
248 return 0; 248 return 0;
249 249
250 case WSDISPLAYIO_GINFO: 250 case WSDISPLAYIO_GINFO:
251#define wsd_fbip ((struct wsdisplay_fbinfo *)data) 251#define wsd_fbip ((struct wsdisplay_fbinfo *)data)
252 wsd_fbip->height = dc->dc_ht; 252 wsd_fbip->height = dc->dc_ht;
253 wsd_fbip->width = dc->dc_wid; 253 wsd_fbip->width = dc->dc_wid;
254 wsd_fbip->depth = dc->dc_depth; 254 wsd_fbip->depth = dc->dc_depth;
255 wsd_fbip->cmsize = dc->dc_cmsize; 255 wsd_fbip->cmsize = dc->dc_cmsize;
256#undef fbt 256#undef wsd_fbip
257 return 0; 257 return 0;
258 258
259 case WSDISPLAYIO_LINEBYTES: 259 case WSDISPLAYIO_LINEBYTES:
260 *(u_int *)data = dc->dc_rowbytes; 260 *(u_int *)data = dc->dc_rowbytes;
261 return 0; 261 return 0;
262 262
263 case WSDISPLAYIO_GETCMAP: 263 case WSDISPLAYIO_GETCMAP:
264 return omgetcmap(sc, (struct wsdisplay_cmap *)data); 264 return omgetcmap(sc, (struct wsdisplay_cmap *)data);
265 265
266 case WSDISPLAYIO_PUTCMAP: 266 case WSDISPLAYIO_PUTCMAP:
267 return omsetcmap(sc, (struct wsdisplay_cmap *)data); 267 return omsetcmap(sc, (struct wsdisplay_cmap *)data);
268 268
269 case WSDISPLAYIO_SMODE: 269 case WSDISPLAYIO_SMODE: