[PATCH 03/11] xfree86: bus: move IOADDRESS definition to a common header file

Alan Coopersmith alan.coopersmith at oracle.com
Fri May 21 07:21:26 PDT 2010


Tiago Vignatti wrote:
> IOADDRESS type definition encompass more than just pci code, so move it to
> common.
> 
> Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
> ---
>  hw/xfree86/common/xf86str.h         |    1 +
>  hw/xfree86/os-support/bus/xf86Pci.h |    3 +--
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86str.h b/hw/xfree86/common/xf86str.h
> index de1f1b6..485c15a 100644
> --- a/hw/xfree86/common/xf86str.h
> +++ b/hw/xfree86/common/xf86str.h
> @@ -58,6 +58,7 @@ typedef uint64_t memType;
>  typedef uintptr_t memType;
>  #endif
>  
> +typedef unsigned long IOADDRESS;    /* Must be large enough for a pointer */

If it must be large enough for a pointer, why not use uintptr_t like the code
two lines before it?

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list