I tried this :
----------------------------------------------------------------------------
/* if (IS_I965G(dev)) {
BEGIN_LP_RING(4);
OUT_RING(GFX_OP_DRAWRECT_INFO_I965);
OUT_RING((box.x1 & 0xffff) | (box.y1 << 16));
OUT_RING(((box.x2 - 1) & 0xffff) | ((box.y2 - 1) << 16));
OUT_RING(DR4);
ADVANCE_LP_RING();
} else {*/
BEGIN_LP_RING(6);
OUT_RING(GFX_OP_DRAWRECT_INFO);
OUT_RING(DR1);
OUT_RING((box.x1 & 0xffff) | (box.y1 << 16));
OUT_RING(((box.x2 - 1) & 0xffff) | ((box.y2 - 1) << 16));
OUT_RING(DR4);
OUT_RING(0);
ADVANCE_LP_RING();
// }
----------------------------------------------------------------------------
and the compilation is success on i915_dma.c.
An old warrning error in i915_irq.c still exist. By commenting out the dev_priv defination the compile is success.
Regards,
Below is the error message:
----------------------------------------------------------------------------
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I- -I. -I.. -I. -I@ -I@/contrib/altq -I@/../include -finline-limit=8000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c /usr/home/angka/xorg/extra/drm/bsd-core/i915/../i915_irq.c
/usr/home/angka/xorg/extra/drm/bsd-core/i915/../i915_irq.c: In function `i915_driver_irq_postinstall':
/usr/home/angka/xorg/extra/drm/bsd-core/i915/../i915_irq.c:270: warning: unused variable `dev_priv'
On 8/15/06, Eric Anholt <[EMAIL PROTECTED]> wrote:
On Tue, 2006-08-15 at 08:59 +0700, Angka H. K. wrote:
> I have drm source about a week ago on FreeBSD 7.
>
> My compilation failed on i915_dma.c line 405, the compiler complain
> about pdev not define. The defination looks like this
> "dev->pdev->device ". There is no pdev defined at drm_device structure
> I think.
Yes, the code is currently broken on FreeBSD. However, given that
FreeBSD (so far) lacks GART support for the G965 support added in
current DRM code compared to the last merge to FreeBSD, that's probably
a priority to add before fixing the DRM. I'm working on that.
--
Eric Anholt [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED]
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel