<86>Jan 19 01:48:23 userdel[31738]: delete user 'rooter'
<86>Jan 19 01:48:23 userdel[31738]: removed group 'rooter' owned by 'rooter'
<86>Jan 19 01:48:23 userdel[31738]: removed shadow group 'rooter' owned by 'rooter'
<86>Jan 19 01:48:23 groupadd[31749]: group added to /etc/group: name=rooter, GID=603
<86>Jan 19 01:48:23 groupadd[31749]: group added to /etc/gshadow: name=rooter
<86>Jan 19 01:48:23 groupadd[31749]: new group: name=rooter, GID=603
<86>Jan 19 01:48:23 useradd[31758]: new user: name=rooter, UID=603, GID=603, home=/root, shell=/bin/bash
<86>Jan 19 01:48:23 userdel[31778]: delete user 'builder'
<86>Jan 19 01:48:23 userdel[31778]: removed group 'builder' owned by 'builder'
<86>Jan 19 01:48:23 userdel[31778]: removed shadow group 'builder' owned by 'builder'
<86>Jan 19 01:48:23 groupadd[31787]: group added to /etc/group: name=builder, GID=604
<86>Jan 19 01:48:23 groupadd[31787]: group added to /etc/gshadow: name=builder
<86>Jan 19 01:48:23 groupadd[31787]: new group: name=builder, GID=604
<86>Jan 19 01:48:23 useradd[31798]: new user: name=builder, UID=604, GID=604, home=/usr/src, shell=/bin/bash
<13>Jan 19 01:48:27 rpmi: libdha-1.0-alt1.qa1 1365953062 installed
<13>Jan 19 01:48:27 rpmi: libdha-devel-1.0-alt1.qa1 1365953062 installed
Building target platforms: x86_64
Building for target x86_64
Wrote: /usr/src/in/nosrpm/vidix-1.0.0-alt0.2.1.qa1.nosrc.rpm
Installing vidix-1.0.0-alt0.2.1.qa1.src.rpm
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.44733
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf vidix-svn-r21861
+ echo 'Source #0 (vidix-svn-r21861.tar.bz2):'
Source #0 (vidix-svn-r21861.tar.bz2):
+ /bin/bzip2 -dc /usr/src/RPM/SOURCES/vidix-svn-r21861.tar.bz2
+ /bin/tar -xf -
+ cd vidix-svn-r21861
+ /bin/chmod -c -Rf u+rwX,go-w .
+ echo 'Patch #0 (vidix-svn-r21861-configure.patch.gz):'
Patch #0 (vidix-svn-r21861-configure.patch.gz):
+ /bin/gzip -dc /usr/src/RPM/SOURCES/vidix-svn-r21861-configure.patch.gz
+ /usr/bin/patch -p1
patching file configure
patching file drivers/Makefile
patching file Makefile
+ echo 'Patch #1 (vidix-svn-r21861-include.patch.gz):'
Patch #1 (vidix-svn-r21861-include.patch.gz):
+ /bin/gzip -dc /usr/src/RPM/SOURCES/vidix-svn-r21861-include.patch.gz
+ /usr/bin/patch -p1
patching file drivers/bswap.h
patching file drivers/cyberblade_vid.c
patching file drivers/mach64_vid.c
patching file drivers/mga_vid.c
patching file drivers/nvidia_vid.c
patching file drivers/pm3_vid.c
patching file drivers/radeon_vid.c
patching file drivers/savage_vid.c
patching file drivers/sis_bridge.c
patching file drivers/sis_vid.c
patching file drivers/unichrome_vid.c
patching file vidixlib.c
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.44733
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd vidix-svn-r21861
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC'
+ sh ./configure --prefix=/usr --libdir=/usr/lib64 --cc=gcc
Detected operating system: Linux
Detected host architecture: i386
Checking for mman.h ... yes
Checking for malloc.h ... yes
Checking for memalign ... yes
Creating config.mak
Creating config.h
+ make -j8
make -C drivers
make: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
gcc -c -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o vidixlib.o vidixlib.c
make: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
make: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
ld -shared -soname libvidix.so.1.0.0 -o libvidix.so.1.0.0 vidixlib.o -lc -ldl
ln -sf libvidix.so.1.0.0 libvidix.so.1.0
ln -sf libvidix.so.1.0.0 libvidix.so.1
ln -sf libvidix.so.1.0.0 libvidix.so
make: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o radeon_vid.o radeon_vid.c
radeon_vid.c: In function 'radeon_engine_restore':
radeon_vid.c:450:19: warning: variable 'yres' set but not used [-Wunused-but-set-variable]
     uint32_t xres,yres,bpp;
                   ^~~~
radeon_vid.c: In function 'radeon_compute_framesize':
radeon_vid.c:1772:25: warning: variable 'dbpp' set but not used [-Wunused-but-set-variable]
   unsigned pitch,awidth,dbpp;
                         ^~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o mach64_vid.o mach64_vid.c
mach64_vid.c: In function 'mach64_vid_display_video':
mach64_vid.c:633:14: warning: variable 'vf' set but not used [-Wunused-but-set-variable]
     uint32_t vf;
              ^~
mach64_vid.c: In function 'mach64_vid_init_video':
mach64_vid.c:709:63: warning: variable 'leftUV' set but not used [-Wunused-but-set-variable]
     uint32_t src_w,src_h,dest_w,dest_h,pitch,h_inc,v_inc,left,leftUV,top,ecp,y_pos;
                                                               ^~~~~~
mach64_vid.c: In function 'vixPlaybackSetEq':
mach64_vid.c:988:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(br < -64) br = -64; if(br > 63) br = 63;
     ^~
mach64_vid.c:988:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(br < -64) br = -64; if(br > 63) br = 63;
                            ^~
mach64_vid.c:990:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
     ^~
mach64_vid.c:990:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
                          ^~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o mga_vid.o mga_vid.c
mga_vid.c: In function 'vixPlaybackFrameSelect':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:357:2: note: in expansion of macro 'writel'
  writel( regs.besctl, mga_mmio_base + BESCTL );
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:357:2: note: in expansion of macro 'writel'
  writel( regs.besctl, mga_mmio_base + BESCTL );
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:360:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + (MGA_VSYNC_POS<<16),
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:360:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + (MGA_VSYNC_POS<<16),
  ^~~~~~
mga_vid.c: In function 'mga_vid_write_regs':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:374:11: note: in expansion of macro 'readl'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:374:11: note: in expansion of macro 'readl'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
           ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:387:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:387:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:388:3: note: in expansion of macro 'writeb'
   writeb( colkey_on, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:388:3: note: in expansion of macro 'writeb'
   writeb( colkey_on, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:390:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:390:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:391:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:391:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:392:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:392:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:393:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:393:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:394:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:394:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:395:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:395:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:396:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:396:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:397:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:397:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:399:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:399:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:400:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:400:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:401:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:401:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:402:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:402:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:403:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:403:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:404:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:404:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:405:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:405:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:406:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:406:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:412:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:412:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:413:28: note: in expansion of macro 'readb'
   colkey_on=(unsigned char)readb(mga_mmio_base + X_DATAREG) & 1;
                            ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:413:28: note: in expansion of macro 'readb'
   colkey_on=(unsigned char)readb(mga_mmio_base + X_DATAREG) & 1;
                            ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:415:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:415:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:416:34: note: in expansion of macro 'readb'
   colkey_color[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:416:34: note: in expansion of macro 'readb'
   colkey_color[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:417:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:417:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:418:34: note: in expansion of macro 'readb'
   colkey_color[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:418:34: note: in expansion of macro 'readb'
   colkey_color[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:419:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:419:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:420:34: note: in expansion of macro 'readb'
   colkey_color[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:420:34: note: in expansion of macro 'readb'
   colkey_color[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:421:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:421:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:422:34: note: in expansion of macro 'readb'
   colkey_color[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:422:34: note: in expansion of macro 'readb'
   colkey_color[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:424:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:424:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:425:33: note: in expansion of macro 'readb'
   colkey_mask[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:425:33: note: in expansion of macro 'readb'
   colkey_mask[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:426:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:426:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:427:33: note: in expansion of macro 'readb'
   colkey_mask[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:427:33: note: in expansion of macro 'readb'
   colkey_mask[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:428:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:428:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:429:33: note: in expansion of macro 'readb'
   colkey_mask[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:429:33: note: in expansion of macro 'readb'
   colkey_mask[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:430:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:430:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:431:33: note: in expansion of macro 'readb'
   colkey_mask[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:431:33: note: in expansion of macro 'readb'
   colkey_mask[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:439:2: note: in expansion of macro 'writeb'
  writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:439:2: note: in expansion of macro 'writeb'
  writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
  ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:440:2: note: in expansion of macro 'writeb'
  writeb( mga_grkey.ckey.op == CKEY_TRUE, mga_mmio_base + X_DATAREG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:440:2: note: in expansion of macro 'writeb'
  writeb( mga_grkey.ckey.op == CKEY_TRUE, mga_mmio_base + X_DATAREG);
  ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:445:3: note: in expansion of macro 'writeb'
   writeb( XMULCTRL, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:445:3: note: in expansion of macro 'writeb'
   writeb( XMULCTRL, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:446:11: note: in expansion of macro 'readb'
   switch (readb (mga_mmio_base + X_DATAREG))
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:446:11: note: in expansion of macro 'readb'
   switch (readb (mga_mmio_base + X_DATAREG))
           ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:475:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:475:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:476:3: note: in expansion of macro 'writeb'
   writeb( 1, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:476:3: note: in expansion of macro 'writeb'
   writeb( 1, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:479:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:479:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:480:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:480:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:481:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:481:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:482:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:482:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:486:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:486:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:487:3: note: in expansion of macro 'writeb'
   writeb( r, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:487:3: note: in expansion of macro 'writeb'
   writeb( r, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:488:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:488:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:489:3: note: in expansion of macro 'writeb'
   writeb( g, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:489:3: note: in expansion of macro 'writeb'
   writeb( g, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:490:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:490:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:491:3: note: in expansion of macro 'writeb'
   writeb( b, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:491:3: note: in expansion of macro 'writeb'
   writeb( b, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:494:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:494:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:495:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:495:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:496:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:496:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:497:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:497:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:498:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:498:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:499:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:499:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:504:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:504:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:505:3: note: in expansion of macro 'writeb'
   writeb( 0, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:505:3: note: in expansion of macro 'writeb'
   writeb( 0, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:510:2: note: in expansion of macro 'writel'
  writel( regs.besctl,      mga_mmio_base + BESCTL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:510:2: note: in expansion of macro 'writel'
  writel( regs.besctl,      mga_mmio_base + BESCTL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:512:3: note: in expansion of macro 'writel'
   writel( regs.beslumactl,  mga_mmio_base + BESLUMACTL);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:512:3: note: in expansion of macro 'writel'
   writel( regs.beslumactl,  mga_mmio_base + BESLUMACTL);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:513:2: note: in expansion of macro 'writel'
  writel( regs.bespitch,    mga_mmio_base + BESPITCH);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:513:2: note: in expansion of macro 'writel'
  writel( regs.bespitch,    mga_mmio_base + BESPITCH);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:515:2: note: in expansion of macro 'writel'
  writel( regs.besa1org,    mga_mmio_base + BESA1ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:515:2: note: in expansion of macro 'writel'
  writel( regs.besa1org,    mga_mmio_base + BESA1ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:516:2: note: in expansion of macro 'writel'
  writel( regs.besa1corg,   mga_mmio_base + BESA1CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:516:2: note: in expansion of macro 'writel'
  writel( regs.besa1corg,   mga_mmio_base + BESA1CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:517:2: note: in expansion of macro 'writel'
  writel( regs.besa2org,    mga_mmio_base + BESA2ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:517:2: note: in expansion of macro 'writel'
  writel( regs.besa2org,    mga_mmio_base + BESA2ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:518:2: note: in expansion of macro 'writel'
  writel( regs.besa2corg,   mga_mmio_base + BESA2CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:518:2: note: in expansion of macro 'writel'
  writel( regs.besa2corg,   mga_mmio_base + BESA2CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:519:2: note: in expansion of macro 'writel'
  writel( regs.besb1org,    mga_mmio_base + BESB1ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:519:2: note: in expansion of macro 'writel'
  writel( regs.besb1org,    mga_mmio_base + BESB1ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:520:2: note: in expansion of macro 'writel'
  writel( regs.besb1corg,   mga_mmio_base + BESB1CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:520:2: note: in expansion of macro 'writel'
  writel( regs.besb1corg,   mga_mmio_base + BESB1CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:521:2: note: in expansion of macro 'writel'
  writel( regs.besb2org,    mga_mmio_base + BESB2ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:521:2: note: in expansion of macro 'writel'
  writel( regs.besb2org,    mga_mmio_base + BESB2ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:522:2: note: in expansion of macro 'writel'
  writel( regs.besb2corg,   mga_mmio_base + BESB2CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:522:2: note: in expansion of macro 'writel'
  writel( regs.besb2corg,   mga_mmio_base + BESB2CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:525:3: note: in expansion of macro 'writel'
   writel( regs.besa1c3org,  mga_mmio_base + BESA1C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:525:3: note: in expansion of macro 'writel'
   writel( regs.besa1c3org,  mga_mmio_base + BESA1C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:526:3: note: in expansion of macro 'writel'
   writel( regs.besa2c3org,  mga_mmio_base + BESA2C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:526:3: note: in expansion of macro 'writel'
   writel( regs.besa2c3org,  mga_mmio_base + BESA2C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:527:3: note: in expansion of macro 'writel'
   writel( regs.besb1c3org,  mga_mmio_base + BESB1C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:527:3: note: in expansion of macro 'writel'
   writel( regs.besb1c3org,  mga_mmio_base + BESB1C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:528:3: note: in expansion of macro 'writel'
   writel( regs.besb2c3org,  mga_mmio_base + BESB2C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:528:3: note: in expansion of macro 'writel'
   writel( regs.besb2c3org,  mga_mmio_base + BESB2C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:531:2: note: in expansion of macro 'writel'
  writel( regs.beshcoord,   mga_mmio_base + BESHCOORD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:531:2: note: in expansion of macro 'writel'
  writel( regs.beshcoord,   mga_mmio_base + BESHCOORD);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:532:2: note: in expansion of macro 'writel'
  writel( regs.beshiscal,   mga_mmio_base + BESHISCAL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:532:2: note: in expansion of macro 'writel'
  writel( regs.beshiscal,   mga_mmio_base + BESHISCAL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:533:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcst,   mga_mmio_base + BESHSRCST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:533:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcst,   mga_mmio_base + BESHSRCST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:534:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcend,  mga_mmio_base + BESHSRCEND);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:534:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcend,  mga_mmio_base + BESHSRCEND);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:535:2: note: in expansion of macro 'writel'
  writel( regs.beshsrclst,  mga_mmio_base + BESHSRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:535:2: note: in expansion of macro 'writel'
  writel( regs.beshsrclst,  mga_mmio_base + BESHSRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:537:2: note: in expansion of macro 'writel'
  writel( regs.besvcoord,   mga_mmio_base + BESVCOORD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:537:2: note: in expansion of macro 'writel'
  writel( regs.besvcoord,   mga_mmio_base + BESVCOORD);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:538:2: note: in expansion of macro 'writel'
  writel( regs.besviscal,   mga_mmio_base + BESVISCAL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:538:2: note: in expansion of macro 'writel'
  writel( regs.besviscal,   mga_mmio_base + BESVISCAL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:540:2: note: in expansion of macro 'writel'
  writel( regs.besv1srclst, mga_mmio_base + BESV1SRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:540:2: note: in expansion of macro 'writel'
  writel( regs.besv1srclst, mga_mmio_base + BESV1SRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:541:2: note: in expansion of macro 'writel'
  writel( regs.besv1wght,   mga_mmio_base + BESV1WGHT);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:541:2: note: in expansion of macro 'writel'
  writel( regs.besv1wght,   mga_mmio_base + BESV1WGHT);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:542:2: note: in expansion of macro 'writel'
  writel( regs.besv2srclst, mga_mmio_base + BESV2SRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:542:2: note: in expansion of macro 'writel'
  writel( regs.besv2srclst, mga_mmio_base + BESV2SRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:543:2: note: in expansion of macro 'writel'
  writel( regs.besv2wght,   mga_mmio_base + BESV2WGHT);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:543:2: note: in expansion of macro 'writel'
  writel( regs.besv2wght,   mga_mmio_base + BESV2WGHT);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:546:30: note: in expansion of macro 'readl'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
                              ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:546:30: note: in expansion of macro 'readl'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
                              ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:553:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESCTL));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:553:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESCTL));
    ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:555:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESGLOBCTL));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:555:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESGLOBCTL));
    ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:557:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESSTATUS));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:557:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESSTATUS));
    ^~~~~
mga_vid.c: In function 'vixPlaybackSetEq':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:1485:5: note: in expansion of macro 'writel'
     writel(regs.beslumactl,mga_mmio_base + BESLUMACTL);
     ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:1485:5: note: in expansion of macro 'writel'
     writel(regs.beslumactl,mga_mmio_base + BESLUMACTL);
     ^~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o nvidia_vid.o nvidia_vid.c
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o sis_bridge.o sis_bridge.c
sis_bridge.c: In function 'sis_ddc2_delay':
sis_bridge.c:37:9: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
     int temp;
         ^~~~
sis_bridge.c: In function 'sis_sense_30x':
sis_bridge.c:73:20: warning: unused variable 'temp' [-Wunused-variable]
     unsigned short temp;
                    ^~~~
sis_bridge.c:72:35: warning: variable 'haveresult' set but not used [-Wunused-but-set-variable]
     int myflag, result = 0, i, j, haveresult;
                                   ^~~~~~~~~~
sis_bridge.c: In function 'sis_detect_lcd':
sis_bridge.c:399:31: warning: unused variable 'CR37' [-Wunused-variable]
     unsigned char CR32, CR36, CR37;
                               ^~~~
sis_bridge.c:399:25: warning: unused variable 'CR36' [-Wunused-variable]
     unsigned char CR32, CR36, CR37;
                         ^~~~
At top level:
sis_bridge.c:397:13: warning: 'sis_detect_lcd' defined but not used [-Wunused-function]
 static void sis_detect_lcd(void)
             ^~~~~~~~~~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared radeon_vid.o -L../../libdha -ldha -lm  -Wl,-soname,radeon_vid.so -o radeon_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o cyberblade_vid.o cyberblade_vid.c
cyberblade_vid.c: In function 'DumpRegisters':
cyberblade_vid.c:99:17: warning: unused variable 'val' [-Wunused-variable]
         int reg,val;
                 ^~~
cyberblade_vid.c:99:13: warning: unused variable 'reg' [-Wunused-variable]
         int reg,val;
             ^~~
cyberblade_vid.c: In function 'vixPlaybackSetEq':
cyberblade_vid.c:360:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (cr < 0) cr = 0; if(cr > 7) cr = 7;
  ^~
cyberblade_vid.c:360:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if (cr < 0) cr = 0; if(cr > 7) cr = 7;
                      ^~
cyberblade_vid.c:364:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (br < 0) br = 0; if(br > 63) br = 63;
  ^~
cyberblade_vid.c:364:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if (br < 0) br = 0; if(br > 63) br = 63;
                      ^~
cyberblade_vid.c:368:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (sat < 0) sat = 0; if(sat > 31) sat = 31;
  ^~
cyberblade_vid.c:368:24: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  if (sat < 0) sat = 0; if(sat > 31) sat = 31;
                        ^~
cyberblade_vid.c: In function 'vixConfigPlayback':
cyberblade_vid.c:386:14: warning: unused variable 'zoom' [-Wunused-variable]
  int shrink, zoom;
              ^~~~
cyberblade_vid.c:386:6: warning: unused variable 'shrink' [-Wunused-variable]
  int shrink, zoom;
      ^~~~~~
At top level:
cyberblade_vid.c:83:12: warning: 'SRINW' defined but not used [-Wunused-function]
 static int SRINW(int reg)
            ^~~~~
cyberblade_vid.c:69:12: warning: 'CRINW' defined but not used [-Wunused-function]
 static int CRINW(int reg)
            ^~~~~
cyberblade_vid.c: In function 'vixConfigPlayback':
cyberblade_vid.c:574:3: warning: 'uv_pitch' may be used uninitialized in this function [-Wmaybe-uninitialized]
   SROUTW(0x9A,uv_pitch); /* UV Bytes per row */
   ^~~~~~~~~~~~~~~~~~~~~
cyberblade_vid.c:558:20: warning: 'y_pitch' may be used uninitialized in this function [-Wmaybe-uninitialized]
   int lb = (y_pitch+2) >> 2;
            ~~~~~~~~^~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o pm3_vid.o pm3_vid.c
pm3_vid.c: In function 'vixConfigPlayback':
pm3_vid.c:286:42: warning: pointer targets in passing argument 3 of 'compute_scale_factor' differ in signedness [-Wpointer-sign]
     compute_scale_factor(&src_w, &drw_w, &shrink, &zoom);
                                          ^~~~~~~
pm3_vid.c:201:1: note: expected 'unsigned int *' but argument is of type 'int *'
 compute_scale_factor(
 ^~~~~~~~~~~~~~~~~~~~
pm3_vid.c:286:51: warning: pointer targets in passing argument 4 of 'compute_scale_factor' differ in signedness [-Wpointer-sign]
     compute_scale_factor(&src_w, &drw_w, &shrink, &zoom);
                                                   ^~~~~
pm3_vid.c:201:1: note: expected 'unsigned int *' but argument is of type 'int *'
 compute_scale_factor(
 ^~~~~~~~~~~~~~~~~~~~
In file included from pm3_vid.c:35:
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:311:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartLow, (info->dest.x & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:312:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXStartHigh, (info->dest.x & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:313:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndLow, (info->dest.x+drw_w) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:314:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayXEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:316:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartLow, (info->dest.y & 0xff));
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:317:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYStartHigh, (info->dest.y & 0xf00)>>8);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:318:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndLow, (info->dest.y+drw_h) & 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:319:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayYEndHigh,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:322:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:323:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x00);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:324:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xff);
     ^~~~~~~~~~~~~~
pm3_vid.c: In function 'vixPlaybackOn':
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:348:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_vid.c: In function 'vixPlaybackOff':
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:359:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayControl,
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:364:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyR, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:365:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyG, 0x01);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1097:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexHigh,((index)>>8)&0xff);  \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1098:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG (PM3RD_IndexLow,(index)&0xff);   \
     ^~~~~~~~~~~~~~
pm3_regs.h:1103:5: note: in expansion of macro 'RAMDAC_SET_INDEX'
     RAMDAC_SET_INDEX(index);     \
     ^~~~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1090:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
pm3_regs.h:1084:16: warning: variable 'tmp' set but not used [-Wunused-but-set-variable]
  unsigned char tmp;     \
                ^~~
pm3_regs.h:1092:2: note: in expansion of macro 'RAMDAC_DELAY'
  RAMDAC_DELAY(5);   \
  ^~~~~~~~~~~~
pm3_regs.h:1104:5: note: in expansion of macro 'SLOW_WRITE_REG'
     SLOW_WRITE_REG(PM3RD_IndexedData, data);   \
     ^~~~~~~~~~~~~~
pm3_vid.c:366:5: note: in expansion of macro 'RAMDAC_SET_REG'
     RAMDAC_SET_REG(PM3RD_VideoOverlayKeyB, 0xfe);
     ^~~~~~~~~~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared nvidia_vid.o -L../../libdha -ldha -lm -Wl,-soname,nvidia_vid.so -o nvidia_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared mga_vid.o -L../../libdha -ldha -lm -Wl,-soname,mga_vid.so -o mga_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared pm3_vid.o -L../../libdha -ldha -Wl,-soname,pm3_vid.so -o pm3_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared mach64_vid.o -L../../libdha -ldha -Wl,-soname,mach64_vid.so -o mach64_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared cyberblade_vid.o -L../../libdha -ldha -lm -Wl,-soname,cyberblade_vid.so -o cyberblade_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o savage_vid.o savage_vid.c
savage_vid.c: In function 'SavageInitStreamsOld':
savage_vid.c:550:2: warning: #warning enable this again [-Wcpp]
 #warning enable this again
  ^~~~~~~
savage_vid.c:578:2: warning: #warning is this needed? [-Wcpp]
 #warning is this needed?
  ^~~~~~~
savage_vid.c: In function 'savage_getscreenproperties':
savage_vid.c:672:12: warning: unused variable 'width' [-Wunused-variable]
   uint32_t width=0;
            ^~~~~
savage_vid.c: In function 'vixInit':
savage_vid.c:987:34: warning: "/*" within comment [-Wcomment]
   VGAOUT8 (0x3d5, cr66 & ~0x02); /* clear reset flag */
                                   
savage_vid.c:1006:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  info->picture_base = (uint32_t) info->video_base + info->picture_offset;
                       ^
savage_vid.c:863:17: warning: unused variable 'videoRambytes' [-Wunused-variable]
   int videoRam, videoRambytes;
                 ^~~~~~~~~~~~~
savage_vid.c:856:51: warning: unused variable 'cr66' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                                                   ^~~~
savage_vid.c:856:45: warning: unused variable 'cr3f' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                                             ^~~~
savage_vid.c:856:40: warning: unused variable 'sr8' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                                        ^~~
savage_vid.c:856:36: warning: unused variable 'n2' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                                    ^~
savage_vid.c:856:32: warning: unused variable 'n1' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                                ^~
savage_vid.c:856:29: warning: unused variable 'n' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                             ^
savage_vid.c:856:26: warning: unused variable 'm' [-Wunused-variable]
   unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp;
                          ^
savage_vid.c: In function 'vixConfigPlayback':
savage_vid.c:1218:20: warning: unused variable 'fifo_ctrl' [-Wunused-variable]
   uint32_t v_ctrl, fifo_ctrl;
                    ^~~~~~~~~
savage_vid.c:1218:12: warning: unused variable 'v_ctrl' [-Wunused-variable]
   uint32_t v_ctrl, fifo_ctrl;
            ^~~~~~
savage_vid.c:1217:30: warning: unused variable 'v_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
                              ^~~~~~~
savage_vid.c:1217:21: warning: unused variable 'u_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
                     ^~~~~~~
savage_vid.c:1217:12: warning: unused variable 'y_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
            ^~~~~~~
savage_vid.c:1216:28: warning: unused variable 'qwfetch' [-Wunused-variable]
   uint32_t dcount, falign, qwfetch;
                            ^~~~~~~
savage_vid.c:1216:20: warning: unused variable 'falign' [-Wunused-variable]
   uint32_t dcount, falign, qwfetch;
                    ^~~~~~
savage_vid.c:1216:12: warning: unused variable 'dcount' [-Wunused-variable]
   uint32_t dcount, falign, qwfetch;
            ^~~~~~
savage_vid.c:1215:18: warning: unused variable 'mini' [-Wunused-variable]
   uint32_t zoom, mini;
                  ^~~~
savage_vid.c:1215:12: warning: unused variable 'zoom' [-Wunused-variable]
   uint32_t zoom, mini;
            ^~~~
savage_vid.c:1214:23: warning: unused variable 'win_end' [-Wunused-variable]
   uint32_t win_start, win_end;
                       ^~~~~~~
savage_vid.c:1214:12: warning: unused variable 'win_start' [-Wunused-variable]
   uint32_t win_start, win_end;
            ^~~~~~~~~
savage_vid.c:1211:16: warning: unused variable 'srcPitch2' [-Wunused-variable]
   int srcPitch,srcPitch2;
                ^~~~~~~~~
savage_vid.c:1211:7: warning: unused variable 'srcPitch' [-Wunused-variable]
   int srcPitch,srcPitch2;
       ^~~~~~~~
savage_vid.c:1210:7: warning: unused variable 'extfifo_on' [-Wunused-variable]
   int extfifo_on;
       ^~~~~~~~~~
savage_vid.c:1208:16: warning: variable 'swap_uv' set but not used [-Wunused-but-set-variable]
   int uv_size, swap_uv;
                ^~~~~~~
At top level:
savage_vid.c:1195:26: warning: 'VOffs' defined but not used [-Wunused-variable]
 static int YOffs, UOffs, VOffs;
                          ^~~~~
savage_vid.c:1195:19: warning: 'UOffs' defined but not used [-Wunused-variable]
 static int YOffs, UOffs, VOffs;
                   ^~~~~
savage_vid.c:1195:12: warning: 'YOffs' defined but not used [-Wunused-variable]
 static int YOffs, UOffs, VOffs;
            ^~~~~
savage_vid.c:137:12: warning: 'frames' defined but not used [-Wunused-variable]
 static int frames[VID_PLAY_MAXFRAMES];
            ^~~~~~
savage_vid.c:135:22: warning: 'savage_grkey' defined but not used [-Wunused-variable]
 static vidix_grkey_t savage_grkey;
                      ^~~~~~~~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared savage_vid.o -L../../libdha -ldha -lm -Wl,-soname,savage_vid.so -o savage_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -DCRTC2 -o mga_crtc2_vid.o mga_vid.c
mga_vid.c: In function 'crtc2_frame_sel':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:340:2: note: in expansion of macro 'writel'
  writel(cregs.c2startadd0, mga_mmio_base + C2STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:340:2: note: in expansion of macro 'writel'
  writel(cregs.c2startadd0, mga_mmio_base + C2STARTADD0);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:341:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl2startadd0, mga_mmio_base + C2PL2STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:341:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl2startadd0, mga_mmio_base + C2PL2STARTADD0);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:342:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl3startadd0, mga_mmio_base + C2PL3STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:342:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl3startadd0, mga_mmio_base + C2PL3STARTADD0);
  ^~~~~~
mga_vid.c: In function 'vixPlaybackFrameSelect':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:357:2: note: in expansion of macro 'writel'
  writel( regs.besctl, mga_mmio_base + BESCTL );
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:357:2: note: in expansion of macro 'writel'
  writel( regs.besctl, mga_mmio_base + BESCTL );
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:360:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + (MGA_VSYNC_POS<<16),
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:360:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + (MGA_VSYNC_POS<<16),
  ^~~~~~
mga_vid.c: In function 'mga_vid_write_regs':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:374:11: note: in expansion of macro 'readl'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:374:2: note: in expansion of macro 'writel'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:374:11: note: in expansion of macro 'readl'
  writel( (readl(mga_mmio_base + VCOUNT)-1)<<16,
           ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:387:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:387:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:388:3: note: in expansion of macro 'writeb'
   writeb( colkey_on, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:388:3: note: in expansion of macro 'writeb'
   writeb( colkey_on, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:390:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:390:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:391:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:391:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:392:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:392:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:393:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:393:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:394:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:394:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:395:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:395:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:396:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:396:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:397:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:397:3: note: in expansion of macro 'writeb'
   writeb( colkey_color[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:399:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:399:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:400:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:400:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[0], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:401:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:401:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:402:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:402:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[1], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:403:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:403:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:404:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:404:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[2], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:405:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:405:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:406:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:406:3: note: in expansion of macro 'writeb'
   writeb( colkey_mask[3], mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:412:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:412:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:413:28: note: in expansion of macro 'readb'
   colkey_on=(unsigned char)readb(mga_mmio_base + X_DATAREG) & 1;
                            ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:413:28: note: in expansion of macro 'readb'
   colkey_on=(unsigned char)readb(mga_mmio_base + X_DATAREG) & 1;
                            ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:415:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:415:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:416:34: note: in expansion of macro 'readb'
   colkey_color[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:416:34: note: in expansion of macro 'readb'
   colkey_color[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:417:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:417:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:418:34: note: in expansion of macro 'readb'
   colkey_color[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:418:34: note: in expansion of macro 'readb'
   colkey_color[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:419:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:419:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:420:34: note: in expansion of macro 'readb'
   colkey_color[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:420:34: note: in expansion of macro 'readb'
   colkey_color[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:421:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:421:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:422:34: note: in expansion of macro 'readb'
   colkey_color[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:422:34: note: in expansion of macro 'readb'
   colkey_color[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                  ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:424:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:424:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:425:33: note: in expansion of macro 'readb'
   colkey_mask[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:425:33: note: in expansion of macro 'readb'
   colkey_mask[0]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:426:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:426:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:427:33: note: in expansion of macro 'readb'
   colkey_mask[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:427:33: note: in expansion of macro 'readb'
   colkey_mask[1]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:428:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:428:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:429:33: note: in expansion of macro 'readb'
   colkey_mask[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:429:33: note: in expansion of macro 'readb'
   colkey_mask[2]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:430:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:430:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:431:33: note: in expansion of macro 'readb'
   colkey_mask[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:431:33: note: in expansion of macro 'readb'
   colkey_mask[3]=(unsigned char)readb(mga_mmio_base + X_DATAREG);
                                 ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:439:2: note: in expansion of macro 'writeb'
  writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:439:2: note: in expansion of macro 'writeb'
  writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
  ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:440:2: note: in expansion of macro 'writeb'
  writeb( mga_grkey.ckey.op == CKEY_TRUE, mga_mmio_base + X_DATAREG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:440:2: note: in expansion of macro 'writeb'
  writeb( mga_grkey.ckey.op == CKEY_TRUE, mga_mmio_base + X_DATAREG);
  ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:445:3: note: in expansion of macro 'writeb'
   writeb( XMULCTRL, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:445:3: note: in expansion of macro 'writeb'
   writeb( XMULCTRL, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:75:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                                     ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:446:11: note: in expansion of macro 'readb'
   switch (readb (mga_mmio_base + X_DATAREG))
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:75:22: note: in expansion of macro 'GETREG'
 #define readb(addr)  GETREG(uint8_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:446:11: note: in expansion of macro 'readb'
   switch (readb (mga_mmio_base + X_DATAREG))
           ^~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:475:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:475:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:476:3: note: in expansion of macro 'writeb'
   writeb( 1, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:476:3: note: in expansion of macro 'writeb'
   writeb( 1, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:479:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:479:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:480:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:480:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:481:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:481:3: note: in expansion of macro 'writeb'
   writeb( X_COLKEY, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:482:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:482:3: note: in expansion of macro 'writeb'
   writeb( 0x00, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:486:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:486:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:487:3: note: in expansion of macro 'writeb'
   writeb( r, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:487:3: note: in expansion of macro 'writeb'
   writeb( r, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:488:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:488:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:489:3: note: in expansion of macro 'writeb'
   writeb( g, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:489:3: note: in expansion of macro 'writeb'
   writeb( g, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:490:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:490:3: note: in expansion of macro 'writeb'
   writeb( XCOLKEY0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:491:3: note: in expansion of macro 'writeb'
   writeb( b, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:491:3: note: in expansion of macro 'writeb'
   writeb( b, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:494:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:494:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0RED, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:495:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:495:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:496:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:496:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0GREEN, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:497:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:497:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:498:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:498:3: note: in expansion of macro 'writeb'
   writeb( XCOLMSK0BLUE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:499:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:499:3: note: in expansion of macro 'writeb'
   writeb( 0xff, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:504:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:504:3: note: in expansion of macro 'writeb'
   writeb( XKEYOPMODE, mga_mmio_base + PALWTADD);
   ^~~~~~
mga_vid.c:76:41: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                                         ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:505:3: note: in expansion of macro 'writeb'
   writeb( 0, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:76:26: note: in expansion of macro 'SETREG'
 #define writeb(val,addr) SETREG(uint8_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:505:3: note: in expansion of macro 'writeb'
   writeb( 0, mga_mmio_base + X_DATAREG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:510:2: note: in expansion of macro 'writel'
  writel( regs.besctl,      mga_mmio_base + BESCTL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:510:2: note: in expansion of macro 'writel'
  writel( regs.besctl,      mga_mmio_base + BESCTL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:512:3: note: in expansion of macro 'writel'
   writel( regs.beslumactl,  mga_mmio_base + BESLUMACTL);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:512:3: note: in expansion of macro 'writel'
   writel( regs.beslumactl,  mga_mmio_base + BESLUMACTL);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:513:2: note: in expansion of macro 'writel'
  writel( regs.bespitch,    mga_mmio_base + BESPITCH);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:513:2: note: in expansion of macro 'writel'
  writel( regs.bespitch,    mga_mmio_base + BESPITCH);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:515:2: note: in expansion of macro 'writel'
  writel( regs.besa1org,    mga_mmio_base + BESA1ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:515:2: note: in expansion of macro 'writel'
  writel( regs.besa1org,    mga_mmio_base + BESA1ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:516:2: note: in expansion of macro 'writel'
  writel( regs.besa1corg,   mga_mmio_base + BESA1CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:516:2: note: in expansion of macro 'writel'
  writel( regs.besa1corg,   mga_mmio_base + BESA1CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:517:2: note: in expansion of macro 'writel'
  writel( regs.besa2org,    mga_mmio_base + BESA2ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:517:2: note: in expansion of macro 'writel'
  writel( regs.besa2org,    mga_mmio_base + BESA2ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:518:2: note: in expansion of macro 'writel'
  writel( regs.besa2corg,   mga_mmio_base + BESA2CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:518:2: note: in expansion of macro 'writel'
  writel( regs.besa2corg,   mga_mmio_base + BESA2CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:519:2: note: in expansion of macro 'writel'
  writel( regs.besb1org,    mga_mmio_base + BESB1ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:519:2: note: in expansion of macro 'writel'
  writel( regs.besb1org,    mga_mmio_base + BESB1ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:520:2: note: in expansion of macro 'writel'
  writel( regs.besb1corg,   mga_mmio_base + BESB1CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:520:2: note: in expansion of macro 'writel'
  writel( regs.besb1corg,   mga_mmio_base + BESB1CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:521:2: note: in expansion of macro 'writel'
  writel( regs.besb2org,    mga_mmio_base + BESB2ORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:521:2: note: in expansion of macro 'writel'
  writel( regs.besb2org,    mga_mmio_base + BESB2ORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:522:2: note: in expansion of macro 'writel'
  writel( regs.besb2corg,   mga_mmio_base + BESB2CORG);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:522:2: note: in expansion of macro 'writel'
  writel( regs.besb2corg,   mga_mmio_base + BESB2CORG);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:525:3: note: in expansion of macro 'writel'
   writel( regs.besa1c3org,  mga_mmio_base + BESA1C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:525:3: note: in expansion of macro 'writel'
   writel( regs.besa1c3org,  mga_mmio_base + BESA1C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:526:3: note: in expansion of macro 'writel'
   writel( regs.besa2c3org,  mga_mmio_base + BESA2C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:526:3: note: in expansion of macro 'writel'
   writel( regs.besa2c3org,  mga_mmio_base + BESA2C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:527:3: note: in expansion of macro 'writel'
   writel( regs.besb1c3org,  mga_mmio_base + BESB1C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:527:3: note: in expansion of macro 'writel'
   writel( regs.besb1c3org,  mga_mmio_base + BESB1C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:528:3: note: in expansion of macro 'writel'
   writel( regs.besb2c3org,  mga_mmio_base + BESB2C3ORG);
   ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:528:3: note: in expansion of macro 'writel'
   writel( regs.besb2c3org,  mga_mmio_base + BESB2C3ORG);
   ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:531:2: note: in expansion of macro 'writel'
  writel( regs.beshcoord,   mga_mmio_base + BESHCOORD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:531:2: note: in expansion of macro 'writel'
  writel( regs.beshcoord,   mga_mmio_base + BESHCOORD);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:532:2: note: in expansion of macro 'writel'
  writel( regs.beshiscal,   mga_mmio_base + BESHISCAL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:532:2: note: in expansion of macro 'writel'
  writel( regs.beshiscal,   mga_mmio_base + BESHISCAL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:533:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcst,   mga_mmio_base + BESHSRCST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:533:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcst,   mga_mmio_base + BESHSRCST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:534:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcend,  mga_mmio_base + BESHSRCEND);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:534:2: note: in expansion of macro 'writel'
  writel( regs.beshsrcend,  mga_mmio_base + BESHSRCEND);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:535:2: note: in expansion of macro 'writel'
  writel( regs.beshsrclst,  mga_mmio_base + BESHSRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:535:2: note: in expansion of macro 'writel'
  writel( regs.beshsrclst,  mga_mmio_base + BESHSRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:537:2: note: in expansion of macro 'writel'
  writel( regs.besvcoord,   mga_mmio_base + BESVCOORD);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:537:2: note: in expansion of macro 'writel'
  writel( regs.besvcoord,   mga_mmio_base + BESVCOORD);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:538:2: note: in expansion of macro 'writel'
  writel( regs.besviscal,   mga_mmio_base + BESVISCAL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:538:2: note: in expansion of macro 'writel'
  writel( regs.besviscal,   mga_mmio_base + BESVISCAL);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:540:2: note: in expansion of macro 'writel'
  writel( regs.besv1srclst, mga_mmio_base + BESV1SRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:540:2: note: in expansion of macro 'writel'
  writel( regs.besv1srclst, mga_mmio_base + BESV1SRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:541:2: note: in expansion of macro 'writel'
  writel( regs.besv1wght,   mga_mmio_base + BESV1WGHT);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:541:2: note: in expansion of macro 'writel'
  writel( regs.besv1wght,   mga_mmio_base + BESV1WGHT);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:542:2: note: in expansion of macro 'writel'
  writel( regs.besv2srclst, mga_mmio_base + BESV2SRCLST);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:542:2: note: in expansion of macro 'writel'
  writel( regs.besv2srclst, mga_mmio_base + BESV2SRCLST);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:543:2: note: in expansion of macro 'writel'
  writel( regs.besv2wght,   mga_mmio_base + BESV2WGHT);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:543:2: note: in expansion of macro 'writel'
  writel( regs.besv2wght,   mga_mmio_base + BESV2WGHT);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:546:30: note: in expansion of macro 'readl'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
                              ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:546:2: note: in expansion of macro 'writel'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:546:30: note: in expansion of macro 'readl'
  writel( regs.besglobctl + ((readl(mga_mmio_base + VCOUNT)+2)<<16),
                              ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:553:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESCTL));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:553:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESCTL));
    ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:555:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESGLOBCTL));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:555:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESGLOBCTL));
    ^~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:72:53: note: in definition of macro 'GETREG'
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                                     ^~~
mga_vid.c:557:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESSTATUS));
    ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:557:4: note: in expansion of macro 'readl'
    readl(mga_mmio_base + BESSTATUS));
    ^~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:566:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:566:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:566:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:566:11: note: in expansion of macro 'readl'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:566:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:566:11: note: in expansion of macro 'readl'
  writel(((readl(mga_mmio_base + C2CTL) & ~0x03e00000) + (cregs.c2ctl & 0x03e00000)), mga_mmio_base + C2CTL);
           ^~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:567:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:567:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
  ^~~~~~
mga_vid.c:77:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                                      ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:567:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:567:11: note: in expansion of macro 'readl'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
           ^~~~~
mga_vid.c:72:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define GETREG(TYPE,PTR,OFFZ)  (*((volatile TYPE*)((PTR)+(OFFZ))))
                                   ^
mga_vid.c:73:71: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                                       ^~~
mga_vid.c:567:2: note: in expansion of macro 'writel'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
  ^~~~~~
mga_vid.c:77:22: note: in expansion of macro 'GETREG'
 #define readl(addr)  GETREG(uint32_t,(uint32_t)(addr),0)
                      ^~~~~~
mga_vid.c:567:11: note: in expansion of macro 'readl'
  writel(((readl(mga_mmio_base + C2DATACTL) & ~0x000000ff) + (cregs.c2datactl & 0x000000ff)), mga_mmio_base + C2DATACTL);
           ^~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:580:2: note: in expansion of macro 'writel'
  writel(cregs.c2misc, mga_mmio_base + C2MISC);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:580:2: note: in expansion of macro 'writel'
  writel(cregs.c2misc, mga_mmio_base + C2MISC);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:584:2: note: in expansion of macro 'writel'
  writel(cregs.c2offset, mga_mmio_base + C2OFFSET);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:584:2: note: in expansion of macro 'writel'
  writel(cregs.c2offset, mga_mmio_base + C2OFFSET);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:585:2: note: in expansion of macro 'writel'
  writel(cregs.c2startadd0, mga_mmio_base + C2STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:585:2: note: in expansion of macro 'writel'
  writel(cregs.c2startadd0, mga_mmio_base + C2STARTADD0);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:587:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl2startadd0, mga_mmio_base + C2PL2STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:587:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl2startadd0, mga_mmio_base + C2PL2STARTADD0);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:589:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl3startadd0, mga_mmio_base + C2PL3STARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:589:2: note: in expansion of macro 'writel'
  writel(cregs.c2pl3startadd0, mga_mmio_base + C2PL3STARTADD0);
  ^~~~~~
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:591:2: note: in expansion of macro 'writel'
  writel(cregs.c2spicstartadd0, mga_mmio_base + C2SPICSTARTADD0);
  ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:591:2: note: in expansion of macro 'writel'
  writel(cregs.c2spicstartadd0, mga_mmio_base + C2SPICSTARTADD0);
  ^~~~~~
mga_vid.c: In function 'vixPlaybackSetEq':
mga_vid.c:78:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                                          ^
mga_vid.c:73:56: note: in definition of macro 'SETREG'
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                                        ^~~
mga_vid.c:1485:5: note: in expansion of macro 'writel'
     writel(regs.beslumactl,mga_mmio_base + BESLUMACTL);
     ^~~~~~
mga_vid.c:73:38: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 #define SETREG(TYPE,PTR,OFFZ,VAL) (*((volatile TYPE*)((PTR)+(OFFZ))))=VAL
                                      ^
mga_vid.c:78:26: note: in expansion of macro 'SETREG'
 #define writel(val,addr) SETREG(uint32_t,(uint32_t)(addr),0,val)
                          ^~~~~~
mga_vid.c:1485:5: note: in expansion of macro 'writel'
     writel(regs.beslumactl,mga_mmio_base + BESLUMACTL);
     ^~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o unichrome_vid.o unichrome_vid.c
unichrome_vid.c: In function 'vixConfigPlayback':
unichrome_vid.c:804:49: warning: pointer targets in passing argument 5 of 'uc_ovl_map_hzoom' differ in signedness [-Wpointer-sign]
   uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, &falign, &dcount);
                                                 ^~~~~~~
unichrome_vid.c:228:1: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'}
 uc_ovl_map_hzoom (int sw, int dw, uint32_t * zoom, uint32_t * mini,
 ^~~~~~~~~~~~~~~~
unichrome_vid.c:804:58: warning: pointer targets in passing argument 6 of 'uc_ovl_map_hzoom' differ in signedness [-Wpointer-sign]
   uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, &falign, &dcount);
                                                          ^~~~~~~
unichrome_vid.c:228:1: note: expected 'int *' but argument is of type 'uint32_t *' {aka 'unsigned int *'}
 uc_ovl_map_hzoom (int sw, int dw, uint32_t * zoom, uint32_t * mini,
 ^~~~~~~~~~~~~~~~
unichrome_vid.c:777:30: warning: unused variable 'v_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
                              ^~~~~~~
unichrome_vid.c:777:21: warning: unused variable 'u_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
                     ^~~~~~~
unichrome_vid.c:777:12: warning: unused variable 'y_start' [-Wunused-variable]
   uint32_t y_start, u_start, v_start;
            ^~~~~~~
unichrome_vid.c:769:7: warning: 'uv_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
   int uv_size, swap_uv;
       ^~~~~~~
unichrome_vid.c:768:15: warning: 'pitch' may be used uninitialized in this function [-Wmaybe-uninitialized]
   long base0, pitch;
               ^~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared mga_crtc2_vid.o -L../../libdha -ldha -lm -Wl,-soname,mga_crtc2_vid.so -o mga_crtc2_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared unichrome_vid.o -L../../libdha -ldha -lm -Wl,-soname,unichrome_vid.so -o unichrome_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -DRAGE128 -o rage128_vid.o radeon_vid.c
radeon_vid.c: In function 'radeon_compute_framesize':
radeon_vid.c:1772:25: warning: variable 'dbpp' set but not used [-Wunused-but-set-variable]
   unsigned pitch,awidth,dbpp;
                         ^~~~
radeon_vid.c: In function 'vixPlaybackSetEq':
radeon_vid.c:1936:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(br < -64) br = -64; if(br > 63) br = 63;
     ^~
radeon_vid.c:1936:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(br < -64) br = -64; if(br > 63) br = 63;
                            ^~
radeon_vid.c:1938:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
     ^~
radeon_vid.c:1938:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     if(sat < 0) sat = 0; if(sat > 31) sat = 31;
                          ^~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared rage128_vid.o -L../../libdha -ldha -lm  -Wl,-soname,rage128_vid.so -o rage128_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -c -fPIC -I. -I.. -pipe -frecord-gcc-switches -Wall -g -O2 -fPIC -DPIC -o sis_vid.o sis_vid.c
sis_vid.c: In function 'vixInit':
sis_vid.c:368:42: warning: 'sr_data' may be used uninitialized in this function [-Wmaybe-uninitialized]
   ((uint16_t) (cr_data2 & 0x40) << 3) | ((uint16_t) (sr_data & 0x02)
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
gcc -shared sis_vid.o sis_bridge.o -L../../libdha -ldha -Wl,-soname,sis_vid.so -o sis_vid.so
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
rm pm3_vid.o mach64_vid.o
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.79328
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/vidix-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/vidix-buildroot
+ cd vidix-svn-r21861
+ make 'INSTALL=/bin/install -p' LIBDIR=/usr/src/tmp/vidix-buildroot/usr/lib64 INCDIR=/usr/src/tmp/vidix-buildroot/usr/include/vidix install
make: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
make -C drivers install
make[1]: Entering directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
mkdir -p /usr/src/tmp/vidix-buildroot/usr/lib64/vidix
install -m 755  -p *.so /usr/src/tmp/vidix-buildroot/usr/lib64/vidix
make[1]: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861/drivers'
install -d -m 755 /usr/src/tmp/vidix-buildroot/usr/lib64
install -m 644 -s -p libvidix.so.1.0.0 /usr/src/tmp/vidix-buildroot/usr/lib64
ln -sf libvidix.so.1.0.0 /usr/src/tmp/vidix-buildroot/usr/lib64/libvidix.so.1.0
ln -sf libvidix.so.1.0.0 /usr/src/tmp/vidix-buildroot/usr/lib64/libvidix.so.1
ln -sf libvidix.so.1.0.0 /usr/src/tmp/vidix-buildroot/usr/lib64/libvidix.so
install -d -m 755 /usr/src/tmp/vidix-buildroot/usr/include/vidix
install -m 644 fourcc.h /usr/src/tmp/vidix-buildroot/usr/include/vidix/fourcc.h
install -m 644 vidix.h /usr/src/tmp/vidix-buildroot/usr/include/vidix/vidix.h
install -m 644 vidixlib.h /usr/src/tmp/vidix-buildroot/usr/include/vidix/vidixlib.h
make: Leaving directory '/usr/src/RPM/BUILD/vidix-svn-r21861'
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/vidix-buildroot (auto)
mode of './usr/lib64/vidix/unichrome_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/sis_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/savage_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/rage128_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/radeon_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/pm3_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/nvidia_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/mga_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/mga_crtc2_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/mach64_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
mode of './usr/lib64/vidix/cyberblade_vid.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--)
Verifying and fixing files in /usr/src/tmp/vidix-buildroot (binconfig,pkgconfig,libtool,desktop)
Checking contents of files in /usr/src/tmp/vidix-buildroot/ (default)
Compressing files in /usr/src/tmp/vidix-buildroot (auto)
Adjusting library links in /usr/src/tmp/vidix-buildroot
./usr/lib64:
	libvidix.so.1.0.0 -> libvidix.so.1.0.0
Verifying ELF objects in /usr/src/tmp/vidix-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
Hardlinking identical .pyc and .pyo files
Processing files: libvidix-1.0.0-alt0.2.1.qa1
Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.24265
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd vidix-svn-r21861
+ DOCDIR=/usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ export DOCDIR
+ rm -rf /usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ /bin/mkdir -p /usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ cp -prL README /usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ chmod -R go-w /usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ chmod -R a+rX /usr/src/tmp/vidix-buildroot/usr/share/doc/libvidix-1.0.0
+ exit 0
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.mzsrJB
find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell)
lib.prov: /usr/src/tmp/vidix-buildroot/usr/lib64/libvidix.so.1.0.0: 19 symbols, 15 bpp
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.oyMEsm
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks)
Provides: libvidix.so.1.0.0()(64bit) = set:idzHx9OqTl4vsLQWbvVcqztQUSax91iAkuThsHvW
Requires: libc.so.6(ALT_2.24)(64bit), libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libdl.so.2(GLIBC_2.2.5)(64bit), rtld(GNU_HASH)
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.7UwzDa
Processing files: libvidix-devel-1.0.0-alt0.2.1.qa1
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Geb3g2
find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.jwwDwX
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks)
Requires: libvidix = 1.0.0-alt0.2.1.qa1, /usr/lib64/libvidix.so.1.0.0
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.sMtKdW
Processing files: vidix-drivers-1.0.0-alt0.2.1.qa1
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Lp56JY
find-provides: running scripts (debuginfo,lib,pam,perl,pkgconfig,python,shell)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.TwMhO5
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks)
Requires: libc.so.6(GLIBC_2.2.5)(64bit), libc.so.6(GLIBC_2.3.4)(64bit), libc.so.6(GLIBC_2.4)(64bit), libdha.so.1.0()(64bit) >= set:ieqUNMcfkauHOmMVZacYDSYo, libm.so.6(GLIBC_2.2.5)(64bit), rtld(GNU_HASH)
Requires(rpmlib): rpmlib(SetVersions)
Conflicts: MPlayer-vidix-driver
Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.CVy5cn
Creating vidix-drivers-debuginfo package
Processing files: vidix-drivers-debuginfo-1.0.0-alt0.2.1.qa1
Finding Provides (using /usr/lib/rpm/find-provides)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Z4eHnI
find-provides: running scripts (debuginfo)
Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.TSAu46
find-requires: running scripts (debuginfo)
Requires: vidix-drivers = 1.0.0-alt0.2.1.qa1, debug64(libc.so.6), debug64(libdha.so.1.0), debug64(libm.so.6)
Removing 1 extra deps from libvidix-devel due to dependency on libvidix
Wrote: /usr/src/RPM/RPMS/x86_64/libvidix-1.0.0-alt0.2.1.qa1.x86_64.rpm
Wrote: /usr/src/RPM/RPMS/x86_64/libvidix-devel-1.0.0-alt0.2.1.qa1.x86_64.rpm
Wrote: /usr/src/RPM/RPMS/x86_64/vidix-drivers-1.0.0-alt0.2.1.qa1.x86_64.rpm
Wrote: /usr/src/RPM/RPMS/x86_64/vidix-drivers-debuginfo-1.0.0-alt0.2.1.qa1.x86_64.rpm
15.01user 5.92system 0:26.60elapsed 78%CPU (0avgtext+0avgdata 39984maxresident)k
0inputs+0outputs (0major+1043240minor)pagefaults 0swaps
21.05user 10.81system 0:37.79elapsed 84%CPU (0avgtext+0avgdata 115204maxresident)k
344inputs+0outputs (0major+1379683minor)pagefaults 0swaps
--- libvidix-1.0.0-alt0.2.1.qa1.x86_64.rpm.repo	2013-04-15 15:16:18.000000000 +0000
+++ libvidix-1.0.0-alt0.2.1.qa1.x86_64.rpm.hasher	2020-01-19 01:48:58.370134865 +0000
@@ -5,4 +5,3 @@
 /usr/share/doc/libvidix-1.0.0/README	100644	
-Requires: libc.so.6()(64bit) >= set:pnCE0ZdiC7
-Requires: rpmlib(SetVersions)  
+Requires: libc.so.6(ALT_2.24)(64bit)  
 Requires: libc.so.6(GLIBC_2.2.5)(64bit)  
@@ -11,2 +10,3 @@
 Requires: libdl.so.2(GLIBC_2.2.5)(64bit)  
+Requires: rtld(GNU_HASH)  
 Requires: rpmlib(PayloadIsLzma)  
--- vidix-drivers-1.0.0-alt0.2.1.qa1.x86_64.rpm.repo	2013-04-15 15:16:18.000000000 +0000
+++ vidix-drivers-1.0.0-alt0.2.1.qa1.x86_64.rpm.hasher	2020-01-19 01:48:58.422133317 +0000
@@ -14,2 +14,3 @@
 Requires: libc.so.6(GLIBC_2.3.4)(64bit)  
+Requires: libc.so.6(GLIBC_2.4)(64bit)  
 Requires: libdha.so.1.0()(64bit) >= set:ieqUNMcfkauHOmMVZacYDSYo
--- vidix-drivers-debuginfo-1.0.0-alt0.2.1.qa1.x86_64.rpm.repo	2013-04-15 15:16:18.000000000 +0000
+++ vidix-drivers-debuginfo-1.0.0-alt0.2.1.qa1.x86_64.rpm.hasher	2020-01-19 01:48:58.455132335 +0000
@@ -18,2 +18,3 @@
 /usr/src/debug/vidix-svn-r21861/drivers/nvidia_vid.c	100644	
+/usr/src/debug/vidix-svn-r21861/drivers/pm3_regs.h	100644	
 /usr/src/debug/vidix-svn-r21861/drivers/pm3_vid.c	100644