[PATCH] vgahw: Resurrect disabling of legacy VGA support
Mark Kettenis
mark.kettenis at xs4all.nl
Mon Aug 12 11:58:37 PDT 2013
> From: Egbert Eich <eich at freedesktop.org>
> Date: Mon, 12 Aug 2013 18:24:47 +0200
>
> DACDelay() used to be defined differently on platforms
> that don't have legacy VGA support.
>
> This distinction was removed with
>
> commit 6d9efdce0d06df6b85f0681bea306c0b1e851502
> Author: Adam Jackson <ajax at redhat.com>
> Date: Tue Sep 20 18:12:29 2011 -0400
>
> vgahw: Port to pciaccess IO space routines
>
> Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>
> Tested-by: Jeremy Huddleston <jeremyhu at apple.com>
> Signed-off-by: Adam Jackson <ajax at redhat.com>
> Reviewed-by: Jamey Sharp <jamey at minilop.net>
>
> which has produced crashes at least on PowerPC.
Which driver uses DACDelay(), but doesn't actually need working VGA
legacy support?
> Signed-off-by: Egbert Eich <eich at freedesktop.org>
> ---
> hw/xfree86/vgahw/vgaHW.h | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/hw/xfree86/vgahw/vgaHW.h b/hw/xfree86/vgahw/vgaHW.h
> index 937a8a5..c8b213f 100644
> --- a/hw/xfree86/vgahw/vgaHW.h
> +++ b/hw/xfree86/vgahw/vgaHW.h
> @@ -168,11 +168,15 @@ typedef struct _vgaHWRec {
> #define BITS_PER_GUN 6
> #define COLORMAP_SIZE 256
>
> -#define DACDelay(hw) \
> +#if defined(__powerpc__) || defined(__arm__) || defined(__s390__) || defined(__nds32__)
> +# define DACDelay(hw) /* No legacy VGA support */
> +#else
> +# define DACDelay(hw) \
> do { \
> (hw)->readST01((hw)); \
> (hw)->readST01((hw)); \
> } while (0)
> +#endif
>
> /* Function Prototypes */
>
> --
> 1.8.1.4
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list