Need help to port SiS M671/M672 graphic driver for X.Org 1.19

If some developer or someone that has some know-how in compiling C stuff want to collaborate and help with fixing build erros and warnings, here the steps on how to build the driver:

install required packages:

sudo apt-get -y install build-essential xorg-dev autoconf automake git libtool-bin xutils-dev inxi libpciaccess-dev

git clone
cd xf86-video-sis-imedia
./configure --prefix=/usr
make -j2

The source code is most of the time up-to-date with my local source code.
As you can see i’ve already ported some stuff, but there are still some errors and warning to fix, but not that much anymore.

open a new terminal and:

cd /usr/include
grep -rnw -e "ScreenInit"

in order to find some useful headers or how the functions are declared.
This helped me already a lot.

Actually i’m stuck at this warning:

sis_driver.c: In function ‘SISProbe’:
sis_driver.c:559:30: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
      pScrn->ScreenInit       = SISScreenInit;

GCC doesn’t tell me something like “expected ‘ uint32’ but argument is of type ‘int’”…
so it’s hard to understand for me.
Also i can’t find anything how “ScreenInit” is declared.

Nevermind i’ve fixed the warning.
The goal is to get at least 2D hardware accelleration or maybe even better 3D.