summaryrefslogtreecommitdiff
path: root/src/lg_driver.c
AgeCommit message (Collapse)Author
2024-05-23drop compat to pre-1.18 xorg-server versionsHEADmasterEnrico Weigelt, metux IT consult
Since we're now relying on >= 1.18, we can drop lots of old compat stuff. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/-/merge_requests/8>
2024-05-13Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0)Alan Coopersmith
Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Allows dropping remnants of code for XAA and pre-pciaccess X servers Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/-/merge_requests/6>
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-cirrus/-/merge_requests/5>
2022-01-22Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-08-02Save and restore RIF Control and RAC Control registersKevin Brace
While the standby resume from ACPI S3 State still fails (i.e., hard system freeze), saving and restoring Rambus RIF (Rambus Interface) Control and RAC (Rambus ASIC Cell) Control registers prevents weird artifacts from being displayed after standby resume (i.e., merely a blank screen after standby resume). Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-07-30Stop accessing SR12 and SR13Kevin Brace
The access to these extended VGA sequencer registers appears to come from the code for Cirrus Logic Alpine family. Laguna family does not use these registers according to Laguna VisualMedia Accelerators Family CL-GD546X Software Technical Reference Manual, Second Edition. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Activate I2C bus for Laguna based devicesKevin Brace
There is really no good reason for I2C bus based automatic display detection to not be turned on by default. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Check for a successful transmission of EDID for Laguna I2C bus codeKevin Brace
The existing code can potentially cause a null pointer crash if EDID was not obtained successfully. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Fix for Laguna I2C bus code compilation errorKevin Brace
When commit 9a5e19597be4f5ee4c1030e4a716207789e78668 (cirrus: convert to compat server API.) updated the code, it did not update Laguna I2C bus code to handle newer X Servers. Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Make adjustments to code comments of lg_driver.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Fix indentation of lg_driver.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-17Tab to spaces conversion for lg_driver.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25Suppress unused label compilation warningKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2018-12-25Use const char for xf86GetOptValString return typeKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2016-04-27Remove (almost) no-op setup functionsAdam Jackson
These became practical no-ops when I removed reference to the loader symbol lists. gcc will still emit code (and bss) for them though. No functional change, just doing it to prove that nothing special happens at submodule load. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
2014-09-20cirrus: don't use pciTagDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-25Remove mibstore.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-07-13cirrus: handle server with no XAADave Airlie
this fixes cirrus to work with a server with no XAA module. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05cirrus: drop xf86PciInfo.Dave Airlie
This drops usage of deprecated header file. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-06-05cirrus: convert to compat server API.Dave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-12-20Typo fixAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19Fix for new vgaHW ABIAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-12-19Fall back to shadowfb if XAA is unavailableAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2011-10-19Build fix for ABI Version 12Jeremy Huddleston
ABI Version 12 removes support for multiple PCI domains. If you need to use this driver on a system with more than one PCI domain, you should either port this driver to using libpciaccess directly or stick with an older server. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-17Use malloc/calloc/realloc/free directlyJeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-10-06Purge cvs tags.Jesse Adkins
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-07-28cirrus: change to using ABI version checkDave Airlie
2009-07-28cirrus: update for resources/RAC API removalDave Airlie
2009-06-10cirrus: add inputstr.h explicitlyDave Airlie
using inputInfo requires inputstr.h this got included by accident before
2009-05-28Remove useless loader symbol lists.Adam Jackson
2008-07-28Update to use miPointerGetPosition.Paulo Cesar Pereira de Andrade
miPointerPosition is deprecated.
2008-01-08cirrus initial pci access supportDave Airlie
2006-04-07Unlibcwrap. Bump server version requirement. Bump to 1.1.0.Adam Jackson
2005-07-11Prep for modular builds by adding guarded #include "config.h" everywhere.XORG-6_8_99_903XORG-6_8_99_902XORG-6_8_99_901XORG-6_8_99_900XORG-6_8_99_16XORG-6_8_99_15accelerated_indirect-0-0-1Adam Jackson
2005-06-26Bug #3628: Fix video driver submodule visibility.XORG-6_8_99_14XORG-6_8_99_13Adam Jackson
2005-06-25Bug #3626: _X_EXPORT tags for video and input drivers.Adam Jackson
2005-04-20Fix includes right throughout the Xserver tree:sco_port_update-baseXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10sco_port_updateDaniel Stone
change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h; change "foo.h", "extensions/foo.h" and "X11/foo.h" to <X11/extensions/foo.h> for extension headers, e.g. Xv.h; change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
2004-06-16DRI XFree86-4_3_99_12-merge importDRI-trunk-20040721DRI-trunk-20040613DRI-XFree86-4_3_99_12-mergeEric Anholt
2004-04-23Merging XORG-CURRENT into trunkXACE-SELINUX-MERGECOMPOSITEWRAPEgbert Eich
2004-03-14Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004xf86-4_4_99_1Egbert Eich
2004-03-03Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004xf86-4_4_0STSF-CURRENTEgbert Eich
2004-02-26readding XFree86's cvs IDsxf86-4_3_99_903Egbert Eich
2004-02-26Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004Egbert Eich
2003-11-25XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_903_specialxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16xf86-012804-2330Kaleb Keithley
2003-11-14Initial revisionXORG-STABLEKaleb Keithley