Commit graph

503 commits

Author SHA1 Message Date
Brian Paul
e04ed6376b added missing return fd (Alexander Stohr) 2002-11-25 16:02:43 +00:00
Brian Paul
683fe4276a merge from trunk 2002-11-15 01:59:39 +00:00
Brian Paul
878c8869ab Added support for cube mapping registers/packets. Bumped version number to
1.7. In radeon_emit_packets() added packet[id] array bounds check,
    return EINVAL it's out of bounds.
2002-10-25 15:59:44 +00:00
Brian Paul
97bee70a1a merge from trunk 2002-10-15 19:01:22 +00:00
Brian Paul
ebad310901 replace max() with cond expression 2002-10-15 18:43:27 +00:00
Keith Whitwell
aa1ca406d6 Fix error condition... 2002-10-08 08:32:06 +00:00
Keith Whitwell
a653224403 Call pci_enable_device() in DRM(irq_busid). 2002-10-08 08:29:47 +00:00
Keith Whitwell
381e0fe7f8 Free correct block in free_block (K. Rasche) 2002-10-02 07:55:27 +00:00
Michel Daenzer
8c14585fc3 fix wait condition for vertical blank IRQs 2002-10-01 17:31:20 +00:00
Eric Anholt
537f2208f0 Remove some noise being spit to the console. 2002-09-29 23:56:17 +00:00
Eric Anholt
506c1c02a4 Make our set_bit and friends match linux better (cleans up some warnings) 2002-09-29 23:21:55 +00:00
Eric Anholt
efda4ce353 warnings cleanup 2002-09-29 22:47:08 +00:00
Eric Anholt
33a51d8518 Fix some of my silliness in DRM_WAIT_ON (not returning EINTR). 2002-09-29 22:39:34 +00:00
Keith Whitwell
899df4f530 Turn boxes off again 2002-09-29 21:22:01 +00:00
Keith Whitwell
9243e642da Move os-dependent stuff out of radeon_irq.c 2002-09-29 21:19:01 +00:00
Eric Anholt
e6901cad69 Fix up BSD irq handling. 2002-09-29 20:48:18 +00:00
Michel Daenzer
ec48dfa835 add support for 16K and 64K page sizes (Bjorn Helgaas) 2002-09-29 00:12:28 +00:00
Michel Daenzer
a33d42e2ba make SW interrupts more robust: write sequence number to scratch register,
acknowledge any lost interrupts before waiting
2002-09-27 21:47:52 +00:00
Michel Daenzer
cc9a169d08 DRM(vblank_wait) is driver specific 2002-09-26 12:49:18 +00:00
Eric Anholt
97961e2c65 BSD vblank framework. 2002-09-26 07:45:07 +00:00
Eric Anholt
770d045d25 Fix one warning. 2002-09-26 07:21:05 +00:00
Michel Daenzer
f40674ea9f change RADEON_PARAM_IRQ_ACTIVE to RADEON_PARAM_IRQ_NR 2002-09-25 19:48:51 +00:00
Michel Daenzer
55acd0d5a6 common ioctl to wait for vertical blank IRQs 2002-09-25 17:18:19 +00:00
Keith Whitwell
f1c8fe9557 merged r200-0-2-branch to trunk 2002-09-23 17:26:43 +00:00
Michel Daenzer
cfa1a918b6 make sure we never oops because the hardware lock pointer in the sigdata
structure is out of date
2002-09-21 23:18:54 +00:00
David Dawes
c4318a5c64 - Fix various bugs in the DRI support for the i830 and i845G (Keith
Whitwell).
- Major rework of the 2D i830/i845G support, including:
- Improve VESA mode selection, and fix refresh rate selection.
- Don't duplicate functions provided in the vbe modules.
- Don't duplicate functions provided in the vgahw module.
- Rewrite memory allocation.
- Rewrite initialisation and save/restore state handling.
- Decouple the i810 support from i830 and later.
- Remove various unnecessary hacks and workarounds.
- Fix an 845G problem with the ring buffer not in pre-allocated memory.
- Fix screen blanking.
- Fix some HW cursor glitches, and turn HW cursor off at VT switch and
    exit.
- Don't attempt to use the i830's function 1 entity.
- Fix problems with option handling. (David Dawes).
- Add mode VBE-aware mode handling functions to the vbe module (David
    Dawes).
2002-09-11 00:57:49 +00:00
Eric Anholt
9797f0fd17 Remove some extra symlinking for kernel module building that hasn't been
needed since 2000.
2002-08-30 23:49:25 +00:00
Eric Anholt
b248c02c4f Remove this one too: it'll be used from the linux version (if ever) 2002-08-30 21:34:03 +00:00
Eric Anholt
d51ec6b972 Remove compat functions for FreeBSD for drivers which weren't available in
X4.2
2002-08-30 21:06:21 +00:00
Keith Whitwell
be88ab60df file radeon_irq.c was initially added on branch r200-0-2-branch. 2002-08-30 07:55:25 +00:00
Keith Whitwell
4fcde1efc1 standardize use of __FUNCTION__ (Linus) 2002-08-29 07:34:49 +00:00
Keith Whitwell
22c1ca1fd5 Turn boxes off. 2002-08-28 08:47:39 +00:00
Eric Anholt
8a8cfd38df Remove i8x0 files from the BSD side. These were not actually ported, and
when they do get ported most of them won't live in these directories.
2002-08-28 04:33:02 +00:00
Keith Whitwell
fa560b4847 file radeon_mem.c was initially added on branch r200-0-2-branch. 2002-08-27 12:16:32 +00:00
Eric Anholt
e4830ba553 Remove drm_linux.h, it's no longer used. 2002-08-27 03:56:10 +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