summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2024-05-08use XNFcallocarray() instead of xnfcalloc macroEnrico Weigelt, metux IT consult
xnfcalloc is just an alias for XNFcallocarray() that doesn't seem to serve any practical purpose, so it can go away once all drivers stopped using it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/5>
2022-12-15Replace malloc()+memset() with calloc()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15Replace malloc()+snprintf() with Xasprintf()Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15Quiet -Wempty-body warningAlan Coopersmith
smi_video.c: In function ‘SetAttrSAA7111’: smi_video.c:802:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] if ((j&7) == 7) DEBUG("\n"); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-12-15constify some char * declarationsAlan Coopersmith
Clears 6 of 17 -Wdiscarded-qualifiers warnings from gcc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-01-28Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2016-07-19Adapt Block/WakeupHandler signature for ABI 23Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2015-09-30Use X11/Xarch.h for endian detection.Thomas Klausner
Reviewed-by: Connor Behan <connor.behan@gmail.com>
2015-08-23Check for drawables before compositingConnor Behan
This should prevent a crash when something like Cairo tries to composite a solid picture. Signed-off-by: Connor Behan <connor.behan@gmail.com>
2015-05-09Fix a couple const-ness warningsJulien Cristau
smi_accel.c: In function 'SMI_GEReset': smi_accel.c:51:1: warning: passing argument 4 of 'SMI_GEReset' discards 'const' qualifier from pointer target type WaitIdle(); ^ smi_accel.c:38:1: note: expected 'char *' but argument is of type 'const char *' SMI_GEReset(ScrnInfoPtr pScrn, int from_timeout, int line, char *file) ^ [...] smi_driver.c: In function 'SMI_DetectPanelSize': smi_driver.c:1011:12: warning: assignment discards 'const' qualifier from pointer target type if ((s = xf86GetOptValString(pSmi->Options, OPTION_PANEL_SIZE)) != NULL) { ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-09Fix SwitchMode and AdjustFrame hooksJulien Cristau
smi_driver.c: In function 'SMI_Probe': smi_driver.c:360:24: warning: assignment from incompatible pointer type pScrn->SwitchMode = SMI_SwitchMode; ^ smi_driver.c:361:24: warning: assignment from incompatible pointer type pScrn->AdjustFrame = SMI_AdjustFrame; ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-08Fix BlockHandler declarationJulien Cristau
smi_video.c: In function 'SMI_SetupVideo': smi_video.c:940:24: warning: assignment from incompatible pointer type pSmi->BlockHandler = pScreen->BlockHandler; ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
2015-05-08Fix shadow compiler warningJulien Cristau
smi_video.c: In function 'SetAttrSAA7111': smi_video.c:795:6: warning: declaration of 'i' shadows a parameter [-Wshadow] int i; ^ smi_video.c:723:39: warning: shadowed declaration is here [-Wshadow] SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value) ^ Signed-off-by: Julien Cristau <jcristau@debian.org>
2014-09-30Remove dependency on xf86PciInfo.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-30Fix a typoAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-30Fix build against xserver 1.17Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-05-21Use own thunk function instead of vgaHW*WeakAdam Jackson
I plan to remove the Weak functions from a future server. Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-01-09Remove miInitializeBackingStore()Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-17smi: convert to new X server screen conversion apis.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17smi: port to compat-api for new server.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-07-17smi: fix build against XAA-less serverDave Airlie
2011-12-19Fix for new vgaHW ABIAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19Make failure to XAA non-fatalAdam Jackson
No shadowfb support in this driver yet. Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-11-17Check ABI major not encoded ABIAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-11-16Adapt to missing PIOOffset in videoabi 12Adam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-02-27Replace calls to xalloc/xcalloc/xfree with malloc/calloc/freeJulien Cristau
Also don't check for NULL before calling free(). Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-02-27Fix compiler warning on 64bitJulien Cristau
src/smi_driver.c: In function ‘SMI_MapMem’: src/smi_driver.c:1498: warning: format ‘%08lX’ expects type ‘long unsigned int’, but argument 6 has type ‘CARD32’ Signed-off-by: Julien Cristau <jcristau@debian.org>
2011-02-27Fix build with xserver 1.10Julien Cristau
ScrnInfo->pixmapPrivate is gone Signed-off-by: Julien Cristau <jcristau@debian.org>
2010-06-22xv: Make sure we have a CRTC before setting up the overlay.Francisco Jerez
Fixes a segfault when the destination area is off screen. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Tested-by: Krzysztof Halasa <khc@pm.waw.pl>
2010-02-11config: move CWARNFLAGS from configure.ac to Makefile.amGaetan Nadon
Compiler warning flags should be explicitly set in the makefile rather than being merged with other packages compiler flags. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-02-08Fix lack of precision in video resizing. #26443Cedric Cellier
On some videos the last displayed line was wrong. This can be fixed using LynxEM+ VPR68. Code borrowed from siliconmotion's in-house driver. Also fix a typo. Signed-off-by: Cedric Cellier <rixed@happyleptic.org> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-11-02Change clockRange to ClockRange, not ClockRangesAdam Jackson
ClockRanges is a silly type and I want rid of it, and the one extra field it provides that's not in ClockRange, we're not using. Signed-off-by: Adam Jackson <ajax@redhat.com>
2009-08-05fix build after headers movedxf86-video-siliconmotion-1.7.3Dave Airlie
2009-07-28siliconmotion: change to using ABI version checkDave Airlie
2009-07-28siliconmotion: update for resources/RAC API removalDave Airlie
2009-07-16Update to xextproto 7.1 support.Peter Hutterer
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers need to include dpmsconst.h if xextproto 7.1 is available. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-23Fix EXA rotation for SM502 at 32bpp (bug 22432).Francisco Jerez
2009-05-28Remove useless loader symbol lists.Adam Jackson
2009-05-27Program MCLK/MXCLK on startup for a secondary SM502.Francisco Jerez
This should allow using a SM502 as secondary display device (bug 21810).
2009-05-10Widen the pixel clock readjust interval for SM712.Francisco Jerez
Set it to 3MHz so that the pixel clock frequency is overridden when it's found to be 49MHz, which is reported to be unstable.
2009-05-05Fail gracefully when the specified virtual screen doesn't fit in RAM.Francisco Jerez
2009-05-05Probe the amount of installed memory by trial and error on SM712.Francisco Jerez
In some cases the BIOS hasn't filled in the "scratchpad registers" (SR71) with the right amount of memory installed (e.g. MIPS platform). There seems to be no other way to do it than to test it. This should fix bug 21528.
2009-04-21Increase the maximum clock value to 200MHz on SM712.Francisco Jerez
The default MCLK setting was higher than the clock limit, and it failed.
2009-04-21Don't attempt monitor detection on SM712.Francisco Jerez
The databook says nothing about it, and it doesn't work.
2009-03-20Stop clearing of "VESA compliance power down mode" bitJamie Lentin
Clearing this bit causes an OQO 01+ w/SMI720 to power down the LCD, leave it alone. Signed-off-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-03-13Fix direct access to IO space on chipsets with no IOBase mapping.Matthieu Herrb
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-02-11siliconmotion: Fix disabling of debugging if SMI501_CLI_DEBUG is set to 0Niels de Vos
Due to checking if SMI501_CLI_DEBUG is defined, some debugging will be enabled if SMI501_CLI_DEBUG is set to 0. A single #if should be used instead. Some debugging code already does this. Signed-off-by: Niels de Vos <niels.devos@wincor-nixdorf.com> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-02-04Wait for vertical retrace before writing registers at SMILynx_CrtcDPMS_*Francisco Jerez
2009-02-04Set dualhead to on by default on SM72x chipsets.Francisco Jerez
2009-02-04Dynamically switch virtual refresh mode.Francisco Jerez
Probably this makes dualhead mode more useful because it makes possible displaying video on the LCD as long as the CRT output is disabled or cloned.