Module Name: src Committed By: macallan Date: Tue Mar 11 06:04:19 UTC 2025
Modified Files: src/sys/arch/hppa/dev: gftfb.c Log Message: drop unnecessary wait and register write when moving the cursor sprite To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/arch/hppa/dev/gftfb.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/arch/hppa/dev/gftfb.c diff -u src/sys/arch/hppa/dev/gftfb.c:1.28 src/sys/arch/hppa/dev/gftfb.c:1.29 --- src/sys/arch/hppa/dev/gftfb.c:1.28 Tue Mar 11 05:48:26 2025 +++ src/sys/arch/hppa/dev/gftfb.c Tue Mar 11 06:04:19 2025 @@ -1,4 +1,4 @@ -/* $NetBSD: gftfb.c,v 1.28 2025/03/11 05:48:26 macallan Exp $ */ +/* $NetBSD: gftfb.c,v 1.29 2025/03/11 06:04:19 macallan Exp $ */ /* $OpenBSD: sti_pci.c,v 1.7 2009/02/06 22:51:04 miod Exp $ */ @@ -1388,9 +1388,8 @@ gftfb_move_cursor(struct gftfb_softc *sc if (y < 0) y = 0x1000 - y; pos = (x << 16) | y; if (sc->sc_enabled) pos |= 0x80000000; - gftfb_wait(sc); + gftfb_wait_fifo(sc, 2); gftfb_write4(sc, NGLE_REG_17, pos); - gftfb_write4(sc, NGLE_REG_18, 0x80); } static int