Commit graph

480 commits

Author SHA1 Message Date
Keith Whitwell
f7c3041156 compilation fixes for bsd, linux 2002-09-17 13:30:17 +00:00
Keith Whitwell
12d0ced27c DRM_DEBUG 2002-09-17 13:16:46 +00:00
Keith Whitwell
555a03c150 kfree --> DRM_FREE remove print statements 2002-09-17 13:16:26 +00:00
Keith Whitwell
1bd9460733 kmalloc --> DRM_MALLOC 2002-09-17 13:13:49 +00:00
Keith Whitwell
d437905d7f Add radeon_mem.c 2002-09-17 13:11:34 +00:00
Keith Whitwell
52ca47accb irq, allocator bugfixes 2002-09-17 11:27:29 +00:00
Eric Anholt
af2412cda1 Port new radeon irq code to FreeBSD, add a couple of macros to drm_os_*.
Untested yet as the userland isn't compiling on my end. More of this
    needs to be made os-independent, but that should probably wait until
    gamma (the other irq-using driver) is worked on too.
2002-08-31 06:47:32 +00:00
Eric Anholt
a15637555f Some whitespace cleanup of radeon_irq.c 2002-08-31 06:42:29 +00:00
Keith Whitwell
5e0e50d732 irqs work and can be used from userspace 2002-08-30 10:23:07 +00:00
Keith Whitwell
e4fcd729f8 add the framework for an irq handler, actually see some interrupts back
from hw
2002-08-30 07:55:25 +00:00
Keith Whitwell
2545b3dd43 hook up memory manager ioctls 2002-08-28 15:10:08 +00:00
Keith Whitwell
e45c84ba91 initial pass at allocator 2002-08-27 12:16:32 +00:00
Eric Anholt
5e81d590d5 Include non-radeon modules in the build. 2002-08-27 01:22:55 +00:00
Keith Whitwell
48cc350e21 merged r200-0-1-branch 2002-08-26 22:16:18 +00:00
Leif Delgass
a697941d4c Don't (re)define vmalloc_to_page for kernel >= 2.4.19, as it has been
backported from 2.5.x. Also fix a couple of incorrect
    LINUX_VERSION_CODE tests and fix header dependency for r128, radeon
    when building without AGP.
2002-08-22 19:35:31 +00:00
Leif Delgass
2febcafd66 SetPageLocked only defined in 2.5.x (x=?), use LockPage for 2.4.x (x>=9).
Also apply build fixes from i810_dma.c to i830_dma.c
2002-08-22 18:43:39 +00:00
Jose Fonseca
18d3fac990 Change the linux kernel version condition in the i810 driver (according to
Alan Cox)
2002-08-21 14:09:28 +00:00
Eric Anholt
77c35c043a Remove drm_linux.h, move the two useful defines into drm_drv.h (the only
place they're used). Use fd locking on -current. Actually copy in data
    from userspace to kernel in the linux-compat ioctl path. Make sure
    ioctl sizes are as expected in the ioctl handler functions.
2002-08-21 07:14:21 +00:00
Leif Delgass
8eedac5833 add missing include (for udelay), remove unused counter. 2002-08-21 01:14:43 +00:00
Michel Daenzer
3165128fc4 TRUE and FALSE don't seem to be defined everywhere... 2002-08-21 00:09:32 +00:00
Keith Whitwell
33d57137da zero-cliprect case patch from Jacek 2002-08-12 07:26:00 +00:00
Michel Daenzer
d0ac4e5ad0 test scratch register writeback before using it 2002-08-11 15:56:44 +00:00
Eric Anholt
d2f2b42f1d Try to open the /dev/dri/cardX device once, then only if it fails check the
device number and recreate it if necessary. Fixes xf86drm.c to allow
    linux binaries to be used for emulation on FreeBSD.
2002-08-08 21:23:46 +00:00
Rik Faith
977b420d5d Updates from Rusty Russell to:
1) Remove redundant header inclusion
2) Silence bitop on non-long argument warnings (change int to long)
3) Move to ISO C (gcc 2.6) initializers (accepted by older gccs also) All
    of these are syntax changes that should not impact functionality.
2002-08-06 18:00:57 +00:00
Michel Daenzer
881a9b214d fix off-by-one error for right bottom corner in radeon_emit_clip_rect()
(Jacek Rosik)
2002-07-18 23:17:13 +00:00
Tim Smith
8fa8db126a Workaround for Radeon lockups on fast machines 2002-07-17 08:30:36 +00:00
Michel Daenzer
9a3a3143ce bump DRM minor and check it before using the GETPARAM ioctl to obtain
scratch register values
2002-07-14 20:26:52 +00:00
Michel Daenzer
fd86ac9561 Don't read scratch registers directly, obtain the values via the GET_PARAM
ioctl. The DRM reads them from memory addresses the chip writes to on
    updates. Fall back to reading the registers directly with an old DRM.
(Tim Smith, cleanups by myself)
2002-07-11 20:31:12 +00:00
Eric Anholt
2ec9c15d8c Increase the linux-compatibility max ioctl. 2002-07-09 02:40:38 +00:00
Alan Hourihane
9ceabc585a remove obsolete files 2002-07-06 09:43:12 +00:00
Alan Hourihane
59c07e447b remove files missed by merge 2002-07-05 08:58:15 +00:00
Alan Hourihane
74ef13fd00 merged bsd-3-0-0-branch 2002-07-05 08:31:11 +00:00
Keith Whitwell
24025ca5f7 Fix some more pageflipping issues -- existing code was doing MMIO writes
while ring was active. There is still an MMIO read in there, but I
    haven't seen any lockups that could be attributed to it.
2002-07-04 12:03:15 +00:00
Keith Whitwell
ca81e1334e Revert SET_SCISSORS change. 2002-07-04 11:55:44 +00:00
Tim Smith
cc45cc0609 Fix lockup on faster machines when drawing in multiple clip rectangles
(e.g. when part of a 3D window is obscured by another window)
2002-07-02 21:34:25 +00:00
Keith Whitwell
bb91bc0879 Set pfCurrentPage on cleanup_pageflip 2002-06-27 17:56:39 +00:00
Alan Hourihane
8aecdbea76 gamma_alloc -> DRM(alloc) 2002-06-25 12:13:20 +00:00
Max Lingua
f626cf76e6 file s3v.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua
4cdcbd6c2f file s3v_dma.c was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua
4073aa694c file s3v_drm.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua
5f8b0028a2 file s3v_drv.c was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua
688082d656 file s3v_drv.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Max Lingua
978136f2f4 file s3v_regs.h was initially added on branch s3virge-0-0-1-branch. 2002-06-25 11:20:36 +00:00
Eric Anholt
663c9a152a file radeon_state.c was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
3fe7fb316c file radeon.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
f8794f23f6 file radeon_drm.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
1942da19d4 file mga_dma.c was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
baf55c1b8b file mga_drv.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
df6e570e4d file mga_ucode.h was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00
Eric Anholt
2a0545aa19 file mga_warp.c was initially added on branch bsd-3-0-0-branch. 2002-06-21 06:08:46 +00:00