From nobody Wed Mar 02 15:59:35 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E367719DF59D; Wed, 2 Mar 2022 15:59:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K7zMW5sHDz3Mb9; Wed, 2 Mar 2022 15:59:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646236775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pGsIaD/WEpkA5jm14JHzKHd+qbEDGzRnhh3/SvXlJIE=; b=vDXIUwbAGX7ItLlzF3QuTEBVwQKaKksedPXlTvN481S3sRTGc9vDD4qs9ZpUjO8xkJSCTX 1dPbPGr7eV6sdpgucaj14UBIrxqidXg5X0Q0g7eRZlL9sQmlW/UefVEARpJfFufJxHJziB 6SLWqgAWErm+xSr4fi8Q+753weVq4KnurRJa0Mf9SOUrggX6AOwz829+Z6RwnCj+VK5Wa0 /iJdjaAQsXjIznUPDidJHeUFGuuz93lovqqylD3qcbCayj2plw0WHWhz4vwZskpUIm0iX+ uA3O0sqMEF32/GR/Jz+2ctm+5ormMOT7eqGDLB8wlvewzbVDw8rX37uC4KGLrg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A95A126225; Wed, 2 Mar 2022 15:59:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 222FxZ8Z081576; Wed, 2 Mar 2022 15:59:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 222FxZek081575; Wed, 2 Mar 2022 15:59:35 GMT (envelope-from git) Date: Wed, 2 Mar 2022 15:59:35 GMT Message-Id: <202203021559.222FxZek081575@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 731a929ac908 - main - vt_vga: Correct "plane" spelling List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 731a929ac908774cdb74f0444b075be6248190bd Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646236775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pGsIaD/WEpkA5jm14JHzKHd+qbEDGzRnhh3/SvXlJIE=; b=nbfWNvrM/7YDf/rbCOEqupjpgeuwn2gsxrayij2jdu5o/qTbDuJXrdHx0LVZM+fZUxS12h wbvFZGi9PWaf5f48DM+BjUGmuHuuW88xLID8S5F7RLTvpx8ashXXpBIhU1ggbC6uEZylKT TQkbB6M//2ziGTcCGH6vueEVqA1Du6gXwXXZjoeRn01H8luAuINo7GnofNciQ7SnMcC21e leCondwsutT2I9OOZJBJmFf6E8QfrDEeOlBgIlAFxn6fDlfDSdmVAjcoBx/e+THS/bJF53 Y/3szeH4E/2a9+wNV9EViQmZWE8zkxYiKg86greLGtNNHzMhy33Pf7lLQoG2vA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646236775; a=rsa-sha256; cv=none; b=RyI8v88LrIT6kW0ZT8URCVSYoBg2h+A0z4BsSfgW/VPf/eVF9W1MuZtp6mEF9fDJNq3w63 W0JyRVNaMNu+Iw1aTJNJy/GnPalLh7/VJ1Cg3UjTjwMCm5owd87/T1sJtlrcs9WkMznZe7 11LGF+25BMkzupTpzXy0nnfPpqaneXhp0BbKFsQwGU+Hm8HQ7y4N2UT8Woi8CWsykKySTP podBapIlwbNR+kz9Ix+M0e4rMe61aJ4U9wzDVSzLXLrbUc7+jKLWOJ5wQgPxAerMuKV533 NlzCLAiKx3/yNvUe3QUUbmyd0eZBmtmDZ4Zd72h+fm5o1fX3F9HDY2t1csZ2kA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=731a929ac908774cdb74f0444b075be6248190bd commit 731a929ac908774cdb74f0444b075be6248190bd Author: Ed Maste AuthorDate: 2022-03-02 14:08:25 +0000 Commit: Ed Maste CommitDate: 2022-03-02 15:56:40 +0000 vt_vga: Correct "plane" spelling I suspect the variable names and comments were accidentally French. MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/dev/vt/hw/vga/vt_vga.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c index 563867399e53..c0d001d09659 100644 --- a/sys/dev/vt/hw/vga/vt_vga.c +++ b/sys/dev/vt/hw/vga/vt_vga.c @@ -138,7 +138,7 @@ vga_setwmode(struct vt_device *vd, int wmode) switch (wmode) { case 3: - /* Re-enable all plans. */ + /* Re-enable all planes. */ REG_WRITE1(sc, VGA_SEQ_ADDRESS, VGA_SEQ_MAP_MASK); REG_WRITE1(sc, VGA_SEQ_DATA, VGA_SEQ_MM_EM3 | VGA_SEQ_MM_EM2 | VGA_SEQ_MM_EM1 | VGA_SEQ_MM_EM0); @@ -533,21 +533,21 @@ static void vga_bitblt_pixels_block_ncolors(struct vt_device *vd, const uint8_t *masks, unsigned int x, unsigned int y, unsigned int height) { - unsigned int i, j, plan, color, offset; + unsigned int i, j, plane, color, offset; struct vga_softc *sc; - uint8_t mask, plans[height * 4]; + uint8_t mask, planes[height * 4]; sc = vd->vd_softc; - memset(plans, 0, sizeof(plans)); + memset(planes, 0, sizeof(planes)); /* * To write a group of pixels using 3 or more colors, we select - * Write Mode 0 and write one byte to each plan separately. + * Write Mode 0 and write one byte to each plane separately. */ /* - * We first compute each byte: each plan contains one bit of the + * We first compute each byte: each plane contains one bit of the * color code for each of the 8 pixels. * * For example, if the 8 pixels are like this: @@ -559,10 +559,10 @@ vga_bitblt_pixels_block_ncolors(struct vt_device *vd, const uint8_t *masks, * * The corresponding for bytes are: * GBBBBBBY - * Plan 0: 10000001 = 0x81 - * Plan 1: 10000001 = 0x81 - * Plan 2: 10000000 = 0x80 - * Plan 3: 00000000 = 0x00 + * Plane 0: 10000001 = 0x81 + * Plane 1: 10000001 = 0x81 + * Plane 2: 10000000 = 0x80 + * Plane 3: 00000000 = 0x00 * | | | * | | +-> 0b0011 (Y) * | +-----> 0b0000 (B) @@ -580,28 +580,28 @@ vga_bitblt_pixels_block_ncolors(struct vt_device *vd, const uint8_t *masks, continue; /* The pixel "j" uses color "color". */ - for (plan = 0; plan < 4; ++plan) - plans[i * 4 + plan] |= - ((color >> plan) & 0x1) << (7 - j); + for (plane = 0; plane < 4; ++plane) + planes[i * 4 + plane] |= + ((color >> plane) & 0x1) << (7 - j); } } } /* * The bytes are ready: we now switch to Write Mode 0 and write - * all bytes, one plan at a time. + * all bytes, one plane at a time. */ vga_setwmode(vd, 0); REG_WRITE1(sc, VGA_SEQ_ADDRESS, VGA_SEQ_MAP_MASK); - for (plan = 0; plan < 4; ++plan) { - /* Select plan. */ - REG_WRITE1(sc, VGA_SEQ_DATA, 1 << plan); + for (plane = 0; plane < 4; ++plane) { + /* Select plane. */ + REG_WRITE1(sc, VGA_SEQ_DATA, 1 << plane); - /* Write all bytes for this plan, from Y to Y+height. */ + /* Write all bytes for this plane, from Y to Y+height. */ for (i = 0; i < height; ++i) { offset = (VT_VGA_WIDTH * (y + i) + x) / 8; - MEM_WRITE1(sc, offset, plans[i * 4 + plan]); + MEM_WRITE1(sc, offset, planes[i * 4 + plane]); } } }