summaryrefslogtreecommitdiff
path: root/src
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-10use XNFrealloc() instead of xnfreallocEnrico Weigelt, metux IT consult
xnfrealloc is just an alias for XNFrealloc() 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>
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>
2023-05-07AlpOffscreenAccelInit: Use c99 designated struct initializerAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-07Variable scope reductions as suggested by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-05-07GetAccelPitchValues: mark accelWidths as constAlan Coopersmith
Suggested by cppcheck: alp_driver.c:413:6: style: Variable 'accelWidths' can be declared with const [constVariable] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
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-07-20Declare an I2C bus name string as a static type for alp_i2c.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-07-20Declare an I2C bus name string as a static type for lg_i2c.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-06Fix indentation of lg_i2c.cKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-05-02Tab to spaces conversion for lg_i2c.cKevin Brace
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>
2019-04-11Eliminate pointer arithmetic compilation warningsKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-04-11Tab to spaces conversion for cir.hKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2019-02-20Fix for a compilation error when compiling XAA related filesKevin Brace
When commit 27f85fc523102f89c3fc1546ae500816ccbffc8a (Don't build split alpine and laguna support) merged Alpine and Laguna support, it missed a backslash ('\') to denote the next line for XAA related files. 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>
2018-12-25Eliminate unused variable compilation warningKevin Brace
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
2016-12-08alpine: Default to 16bppAdam Jackson
24bpp support is going away, so since we can't do 32bpp and these cards have basically no VRAM to begin with, drop to 16bpp. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
2016-04-27Don't build split alpine and laguna supportAdam Jackson
Before: text data bss dec hex filename 25772 2040 16 27828 6cb4 src/.libs/cirrus_alpine.so 11429 1552 112 13093 3325 src/.libs/cirrus_drv.so 21968 2016 16 24000 5dc0 src/.libs/cirrus_laguna.so 59169 5608 114 64921 fd99 (TOTALS) After: text data bss dec hex filename 47831 3840 112 51783 ca47 src/.libs/cirrus_drv.so So, in the worst case, you're using roughly two more pages for (clean, evictable) text, but two fewer (dirty) pages for data and bss. Fixing this also allows the X server to clean up module loading a bit by enforcing the _drv.so suffix, and since this is the only driver pulling such shenanigans... Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.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>
2016-04-27Use 16bpp when running in virt and on XenSource gfxFrederic Crozat
Due to graphics corruption default to 16bpp in virt instead of 24 (Fedora). Do the same on XenSource gfx, which suffers from the same issue. Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-04-27Disable "acceleration" under qemuStefan Dirsch
Disable "acceleration" under qemu, since taking the hypercall trap is really quite expensive and you're better off doing noaccel. Patch is based on the one by "Adam Jackson" <ajax@redhat.com> http://pkgs.fedoraproject.org/cgit/rpms/xorg-x11-drv-cirrus.git/tree/cirrus-1.2.0-qemu.patch?id=daccd1c8174623500eddfa297d8ea76a86d3c5d9 Reviewed-by: Adam Jackson <ajax@redhat.com>
2014-09-20cirrus: don't use pciTagDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-11-22Skip building xaa files when XAA is not supportedAlan Coopersmith
No point building & linking empty *.o files into the drivers. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2013-01-08cirrus: fix out of bounds access to shadowfbMaarten Lankhorst
Perform the same bounds checking other drivers do. Thanks to Dave Gilbert for feedback on this patch. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
2012-09-25Remove mibstore.hAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2012-08-21cirrus: fix build against old serverDave Airlie
Reported-by: jobermayer on irc Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-08-20cirrus: fix falling back after kernel checkDave Airlie
if we find a kernel driver the code leave the pci slot claimed which stops us falling back. unclaim the pci slot. Signed-off-by: Dave Airlie <airlied@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-09use int scrnIndex instead of int i in macro SCREEN_INIT_ARGS_DECL.Johannes Obermayr
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>
2012-05-17cirrus: don't bind if there is a PCI kernel driver loaded.Dave Airlie
this should ensure we end up using -modesetting under kms. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-03-13alpine: Fix int10 setupAdam Jackson
The PC98-removal fix accidentally took out the non-PC98 path here. Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Adam Jackson <ajax@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-31Build fix for older servers (error: conflicting types for 'pciTag')Jeremy Huddleston
/usr/include/xorg/xf86Pci.h:254:25: note: previous declaration of 'pciTag' was here Reported-by: Johannes Obermayr <johannesobermayr@gmx.de> Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29pciTag was removed from xorg-server, so provide it in-driver until this is ↵Jeremy Huddleston
updated to use libpciaccess Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-29Disable PC98 code on newer servers.Jeremy Huddleston
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-10-21Add support for the NEC PC-9821Satoshi KImura
https://bugs.freedesktop.org/show_bug.cgi?id=1837 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>