Commit graph

524 commits

Author SHA1 Message Date
Eric Anholt
a49668a280 Updates for current NetBSD. With this, mga and tdfx compile (radeon, r128
are close). This particular version hasn't been tested yet.
Submitted by: Erik Reid
2003-01-28 20:53:22 +00:00
Eric Anholt
9e4f21f170 Remove the BSD gamma code. It's probably out of date, probably broken, and
hasn't ever been used as far as I can tell.
2003-01-28 20:10:08 +00:00
Eric Anholt
bceba29c23 Fix build on -current: Provide M_WAITOK define. 2003-01-24 00:50:20 +00:00
Eric Anholt
f69ea13e21 Uninitialize spinlocks, which in 5.0 are mutexes that are tracked by
WITNESS.
2003-01-17 08:57:02 +00:00
Eric Anholt
7d38b60a67 Add more PCI IDs from pciids.sf.net 2003-01-17 08:54:29 +00:00
Eric Anholt
270e349804 Remove some linuxisms that were left in drm_bufs.h, make some types match,
and add a cast to drm_sysctl.h (not sure why this is necessary, but
    it's debug info anyway)
2003-01-13 22:53:48 +00:00
Eric Anholt
433526a123 Remove some x86-specific asm in the BSD DRM. For versions without an
atomic_cmpset, use spls.
2003-01-13 22:14:20 +00:00
Eric Anholt
b3b6c102ee Fix locking of memory sysctl on -current: Copy the memory stats under the
lock, then ouput the information to the sysctl outside of the lock.
2002-12-05 21:06:41 +00:00
Eric Anholt
4d0c8ce146 Check-in of current bus_space changes. 2002-11-11 06:16:53 +00:00
Eric Anholt
4f86f4e07c Lint fix: remove a comma at the end of an enum. 2002-11-10 00:57:00 +00:00
Eric Anholt
7cf9526001 Clean up some linux leftovers in pcigart code. 2002-11-09 01:56:48 +00:00
Eric Anholt
4e913decdb Apply a little style(9) in drm_agpsupport.h. 2002-11-09 01:55:40 +00:00
Eric Anholt
e03e54cc02 Remove an unneeded include of <sys/types.h> 2002-11-08 07:28:12 +00:00
Eric Anholt
9a6b59db39 Inaugurate bsd-4-0-0-branch with Erik Reid's NetBSD patches (with enough
modifications on my part to have probably broken them thoroughly).
2002-10-31 04:23:09 +00:00
Eric Anholt
e656655a36 Kernel support for vblank syncing on Rage 128 and Matrox. 2002-10-30 06:10:34 +00:00
Jens Owen
344c7f6b41 updated e-mail addresses for Keith, Alan and Jens 2002-10-29 20:29:05 +00:00
Michel Daenzer
5e1b8ed88a preserve CRTC{,2}_OFFSET_CNTL in 2D driver to avoid bad effects when
pageflipping after a mode switch
take current page into account in AdjustFrame(); writing the CRTC offset
    via the CP was probably a bad idea as this can happen asynchronously,
    reverted
take frame offset into account when flipping pages
handle CRTC2 as well for pageflipping (untested)
preserve GEN_INT_CNTL on mode switches to prevent interrupts from getting
    disabled
2002-10-29 13:49:26 +00:00
Eric Anholt
10900dab7c Use bus_alloc_resource/bus_release_resource more properly: save the rid
returned by alloc.
2002-10-29 03:20:21 +00:00
Brian Paul
ff25e7016c merge from mesa-4-1-branch to get cube-map registers. bumped version to 1.7 2002-10-28 19:05:40 +00:00
Eric Anholt
516392beff s/udelay/DRM_UDELAY/ 2002-10-27 05:25:50 +00:00
Eric Anholt
9f21f02217 Catch up to -current. 2002-10-27 05:24:33 +00:00
Alan Hourihane
b3a20ce219 final part of XFree86 4.2.99.2 merge 2002-10-22 23:38:53 +00:00
Alan Hourihane
ff4baa69da Import of XFree86 4.2.99.2 2002-10-22 13:43:45 +00:00
Eric Anholt
5e9fad3588 Fix reversed test that broke vblank waiting on FreeBSD.
Pointy hat to: anholt
2002-10-14 23:35:24 +00:00
Keith Whitwell
3d69766ea6 Jonny Strom's mga_dma.c patch 2002-10-10 08:25:40 +00:00
Brian Paul
2af90a581d replaced max() macro with conditional expression 2002-10-09 16:29:01 +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