From d9e6a6e2e0ba4c64b2e52aea55aefabc693e9f97 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 27 Jan 2022 17:47:19 -0800 Subject: Fix spelling/wording issues Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith --- src/savage_accel.c | 10 +++++----- src/savage_cursor.c | 2 +- src/savage_dga.c | 2 +- src/savage_driver.c | 22 +++++++++++----------- src/savage_drm.h | 2 +- src/savage_hwmc.c | 4 ++-- src/savage_regs.h | 2 +- src/savage_sarea.h | 2 +- src/savage_video.c | 2 +- src/savage_xaa.c | 4 ++-- 10 files changed, 26 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/savage_accel.c b/src/savage_accel.c index 1bcb5fa..fb594f3 100644 --- a/src/savage_accel.c +++ b/src/savage_accel.c @@ -199,7 +199,7 @@ SavageInitialize2DEngine(ScrnInfoPtr pScrn) OUTREG(0x48C18, (psav->cobOffset >> 7) | (psav->cobIndex)); if( psav->ShadowStatus ) { - /* Set shadow update threshholds. */ + /* Set shadow update thresholds. */ /*OUTREG(0x48C10, 0x6090 ); OUTREG(0x48C14, 0x70A8 );*/ OUTREG(0x48C10, psav->bciThresholdLo >> 2); @@ -420,7 +420,7 @@ void SavageSetGBD_Twister(ScrnInfoPtr pScrn) * 01: destination tiling format * 10: texture tiling format * 11: reserved - * bit 28: block write disble/enable + * bit 28: block write disable/enable * 0: disable * 1: enable */ @@ -836,7 +836,7 @@ void SavageSetGBD_M7(ScrnInfoPtr pScrn) * 01: reserved * 10: 16 bit * 11: 32 bit - * bit 28: block write disble/enable + * bit 28: block write disable/enable * 0: enable * 1: disable */ @@ -1455,9 +1455,9 @@ SavageInitAccel(ScreenPtr pScreen) /*if ( scanlines > maxlines ) scanlines = maxlines;*/ /* CR47983, XvMC do not work on system with frame buffer less than 32MB. * VBE reports frame buffer size a little less than 16MB, this makes the condition - * truns out FALSE. + * turns out FALSE. * Now just reduce the level to 14.5MB, things should be OK, while the hwmc frame buffer layout - * caculation need more understanding and should be fixed. + * calculation need more understanding and should be fixed. */ /*if total memory is less than 16M, there is no HWMC support */ if((psav->videoRambytes < /*16*/(14*1024+512)*1024L) || psav->bDisableXvMC) diff --git a/src/savage_cursor.c b/src/savage_cursor.c index 9f6dcc9..8ef9753 100644 --- a/src/savage_cursor.c +++ b/src/savage_cursor.c @@ -267,7 +267,7 @@ SavageSetCursorPosition( yoff = 0; } - /* This is the recomended order to move the cursor */ + /* This is the recommended order to move the cursor */ if (psav->IsSecondary) { SelectIGA2(); outCRReg( 0x46, (x & 0xff00)>>8 ); diff --git a/src/savage_dga.c b/src/savage_dga.c index 413e0e7..d0184ef 100644 --- a/src/savage_dga.c +++ b/src/savage_dga.c @@ -301,7 +301,7 @@ Savage_SetMode( if( psav->hwcursor && psav->hwc_on) { SavageHideCursor(pScrn); - psav->hwc_on = TRUE; /* save for later restauration */ + psav->hwc_on = TRUE; /* save for later restoration */ } diff --git a/src/savage_driver.c b/src/savage_driver.c index 01fc0bc..9692974 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -110,10 +110,10 @@ static Bool SavageModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode); static Bool SavageCloseScreen(CLOSE_SCREEN_ARGS_DECL); static Bool SavageSaveScreen(ScreenPtr pScreen, int mode); static void SavageLoadPalette(ScrnInfoPtr pScrn, int numColors, - int *indicies, LOCO *colors, + int *indices, LOCO *colors, VisualPtr pVisual); static void SavageLoadPaletteSavage4(ScrnInfoPtr pScrn, int numColors, - int *indicies, LOCO *colors, + int *indices, LOCO *colors, VisualPtr pVisual); static void SavageUpdateKey(ScrnInfoPtr pScrn, int r, int g, int b); static void SavageCalcClock(long freq, int min_m, int min_n1, int max_n1, @@ -712,7 +712,7 @@ static Bool SavagePciProbe(DriverPtr drv, int entity_num, pEnt = xf86GetEntityInfo(entity_num); /* MX, IX, SuperSavage cards support Dual-Head, mark the entity as - * sharable. + * shareable. */ if (pEnt->chipset == S3_SAVAGE_MX || pEnt->chipset == S3_SUPERSAVAGE) { DevUnion *pPriv; @@ -820,7 +820,7 @@ static Bool SavageProbe(DriverPtr drv, int flags) pEnt = xf86GetEntityInfo(usedChips[i]); - /* MX, IX, SuperSavage cards support Dual-Head, mark the entity as sharable*/ + /* MX, IX, SuperSavage cards support Dual-Head, mark the entity as shareable*/ if(pEnt->chipset == S3_SAVAGE_MX || pEnt->chipset == S3_SUPERSAVAGE) { DevUnion *pPriv; @@ -1302,7 +1302,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) pScrn->overlayFlags = OVERLAY_8_32_DUALFB; } else { xf86DrvMsg(pScrn->scrnIndex,X_WARNING,"Wrong argument: " - "\"%s\" Ingnoring\n",s); + "\"%s\" Ignoring\n",s); } } else if (pScrn->depth != 15) { psav->overlayDepth = 8; @@ -1465,7 +1465,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) /* We support 1X 2X and 4X */ #ifdef SAVAGEDRI #ifdef XSERVER_LIBPCIACCESS - /* Try to read the AGP capabilty block from the device. If there is + /* Try to read the AGP capability block from the device. If there is * no AGP info, the device is PCI. */ @@ -1479,7 +1479,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) * capability is present. The procedure is outlined as follows: * * 1) Test bit 4 (CAP_LIST) of the PCI status register of the device - * to determine wether or not this device implements any extended + * to determine whether or not this device implements any extended * capabilities. If this bit is zero, then the device is a PCI 2.1 * or earlier device and is not AGP capable, and we can conclude it * to be a PCI device. @@ -4209,7 +4209,7 @@ void SavageDisableMMIO(ScrnInfoPtr pScrn) return; } -void SavageLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indicies, +void SavageLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors, VisualPtr pVisual) { SavagePtr psav = SAVPTR(pScrn); @@ -4239,7 +4239,7 @@ void SavageLoadPalette(ScrnInfoPtr pScrn, int numColors, int *indicies, } for (i=0; icolorKey) updateKey = index; VGAOUT8(0x3c8, index); VGAOUT8(0x3c9, colors[index].red); @@ -4292,7 +4292,7 @@ SavageUpdateKey(ScrnInfoPtr pScrn, int r, int g, int b) #define inStatus1() (hwp->readST01( hwp )) #endif -void SavageLoadPaletteSavage4(ScrnInfoPtr pScrn, int numColors, int *indicies, +void SavageLoadPaletteSavage4(ScrnInfoPtr pScrn, int numColors, int *indices, LOCO *colors, VisualPtr pVisual) { SavagePtr psav = SAVPTR(pScrn); @@ -4304,7 +4304,7 @@ void SavageLoadPaletteSavage4(ScrnInfoPtr pScrn, int numColors, int *indicies, for (i=0; i