David Dawes
c3092ead64
Targets for building dristat and drmstat.
2003-04-25 00:57:42 +00:00
Eric Anholt
58650c3a9d
Clean up the DRM_COPY_TO_USER()ing of DRM(infobufs), making it more
...
legible.
2003-04-25 00:02:14 +00:00
Eric Anholt
781828b26e
Clean up the style of the linux-compat code and use ioctl() directly rather
...
than reimplementing it.
2003-04-24 23:57:29 +00:00
Leif Delgass
16fda821eb
Pass dma handle from pci_alloc_consistent to the card for status page,
...
rather than using virt_to_bus() on the virtual address.
2003-04-24 23:18:33 +00:00
Eric Anholt
a147df879b
Remove more gamma DMA infrastructure. Most of this code was copied straight
...
from linux, so it could be added back if some driver needed it in the
future.
2003-04-24 19:09:55 +00:00
Leif Delgass
d6a82ff9c1
Remove unused dev->map_count. We always iterate the maplist with
...
list_for_each() and the count is not updated or used for stats.
2003-04-24 16:55:22 +00:00
Leif Delgass
2dc672a790
Minor cleanups for dri/drmstat test progs (Both still need targets for new
...
Makefile)
2003-04-24 16:47:32 +00:00
Leif Delgass
cd3d6090b7
Remove unused variables
2003-04-24 15:29:30 +00:00
Keith Whitwell
57406077e5
Move the debug versions of the DRM memory functions to a new file and
...
implement non-debug ones as standard.
2003-04-24 10:02:18 +00:00
Keith Whitwell
a41594e8df
Remove #if 0'd code and some unused string functions
2003-04-24 09:41:33 +00:00
Eric Anholt
01178567eb
Remove more gamma DMA code. This isn't all of it, but it's a major portion.
2003-04-24 06:19:54 +00:00
Eric Anholt
c6d2af70cb
Move some common code from addbufs_<type> to addbufs. Make buf_alloc be
...
protected by the count_lock and make it non-atomic.
2003-04-24 05:56:44 +00:00
Eric Anholt
af3bfdef26
Remove the ioctl_count variable from the device. A reference is held to the
...
fp throughout the ioctl syscall, so the device can't be closed out from
under us.
2003-04-24 05:14:05 +00:00
Eric Anholt
bcd527ee71
Remove a bunch of dead code and fix spelling of a couple of comments.
2003-04-24 04:50:07 +00:00
David Dawes
00522cedd6
Single/dual rasterizer quiescence patch for the glint/gamma DRI driver
...
(#5685 , Sven Luther).
2003-04-24 03:01:40 +00:00
David Dawes
9d603b0abe
break long line
2003-04-24 02:56:06 +00:00
Eric Anholt
9b2b2337b3
Move one definition to drm_drv.h and remove the rest of drm_init.h which
...
was all unused.
2003-04-24 00:46:03 +00:00
Eric Anholt
e21473c888
Remove DRM_DMA_HISTOGRAM and associated code.
2003-04-24 00:37:35 +00:00
Eric Anholt
1fc0a5e1e4
Make DRM(read) and DRM(poll) stubs and remove DRM(write) and
...
DRM(write_string). This is the first part of removing much of the
support code for gamma from the BSD DRM, since it appears that no new
drivers are using it and nobody has ever shown interest in gamma on
BSD.
2003-04-24 00:25:36 +00:00
Keith Whitwell
e15b0b6a1b
Install dummy/noop read & poll fops unless the driver has replacements.
2003-04-23 23:42:29 +00:00
Michel Daenzer
23a76c3759
deal correctly with read() from the DRM failing
2003-04-23 14:21:17 +00:00
Michel Daenzer
d5db1144dd
get rid of superfluous fields in struct drm_radeon_ring_buffer
...
use correct address for ring read pointer writeback (yes, we seem to have
been running with bogus values for the ring read pointer, which
'worked' because the return value of radeon_wait_ring() is never
checked and the ring usually never fills up)
2003-04-22 21:45:06 +00:00
Leif Delgass
5ee61c18f4
Remove AGP dependency in kernel config for radeon, sis. Remove
...
PCIGART_ENABLED define for radeon, pcigart support now included for any
arch.
2003-04-22 21:30:24 +00:00
Leif Delgass
22608a414d
Only mga, i810, i830 require AGP (should mga define __MUST_HAVE_AGP?)
2003-04-22 19:42:27 +00:00
Alan Hourihane
879e3d335c
change PREINSTALL/POSTINSTALL/UNINSTALL irq code to real functions as per
...
the other drivers
2003-04-22 12:52:17 +00:00
Alan Hourihane
9c5d16216d
remove unused variable
2003-04-22 12:42:22 +00:00
Alan Hourihane
0782f0df60
fix gamma headers
2003-04-22 12:41:16 +00:00
Keith Whitwell
73e20998b4
Rename drm_lists.h to gamma_lists.h
2003-04-22 12:14:59 +00:00
Keith Whitwell
700e880c3d
new file
2003-04-22 12:07:43 +00:00
Keith Whitwell
928c25d14f
Move the excitingly named DRM(flush_block_and_flush) and friends to
...
gamma-specific code.
Fix templates so i8x0 drivers don't have to define __HAVE_DMA_WAITLIST.
2003-04-22 12:07:24 +00:00
Keith Whitwell
aba6bf7eb3
remove unused __HAVE_KERNEL_CTX_SWITCH code
2003-04-22 11:39:34 +00:00
Keith Whitwell
a1780925fb
Move a chunk of gamma-specific code out of drm_dma.h. Remove unused
...
'DRM_FLAG_NOCTX' option.
2003-04-22 11:31:55 +00:00
Keith Whitwell
056762a910
remove unused dma histogram code
2003-04-22 10:18:29 +00:00
Keith Whitwell
5141da97f6
Move a bunch of gamma-specific code into a gamma-specific file. Restore the
...
kooky DRM(write_string) code for gamma.
2003-04-22 10:13:14 +00:00
Keith Whitwell
13211ad82c
add more get_param queries for embedded project
2003-04-22 09:49:14 +00:00
Keith Whitwell
fc4fb6b51b
remove DRM read, poll and write_string
2003-04-22 08:06:14 +00:00
Leif Delgass
46e06192a8
Check for NULL map before calling DRM(ioremapfree) on cleanup. Prevents an
...
oops if a map wasn't found (e.g. XFree86 Bugzilla #108 )
2003-04-21 16:07:17 +00:00
David Dawes
da35a90d99
Add a Kconfig file as used in recent 2.5.x kernels.
2003-04-17 18:52:05 +00:00
David Dawes
21af320287
Make Config.in look more like a recent 2.4.x kernel version.
2003-04-17 18:48:06 +00:00
David Dawes
dbb7beb51d
Rework the Linux drm kernel module build to leverage off the standard
...
kernel build system. This is based on suggestions and examples from
David Woodhouse. This approach has the advantage that the build
requirements of a wider range of standard kernels are now supported
transparently, but the disadvantage of some extra complexity to handle
building against clean vendor-distributed kernel source trees. This has
been tested with some recent Red Hat and SuSE distributions.
2003-04-17 18:44:38 +00:00
David Dawes
c2d7ff1bf9
Bring some drm module changes over from the XFree86 trunk:
...
- Reset 'bound' flag for an agp entry after undbind succeeded in
drm_agpsupport.h (Egbert Eich).
- Ignore hw_lock for drm device if lock was set by a different instance (ie
Xserver) to prevent second server from spinning in driver release
function (currently only relevant for i8xx drm drivers) (David Dawes).
- Use the agpgart "key" for the unique handle for bindings rather than the
memory address (the key is guaranteed to be unique) (David Dawes).
2003-04-17 18:41:28 +00:00
David Dawes
d1b7f551e6
Fix DRM module build on 2.5.41 and later kernels (tqueue -> workqueue).
2003-04-17 15:27:34 +00:00
Jose Fonseca
48e389f3a5
file drm_pci.h was initially added on branch mach64-0-0-5-branch.
2003-04-10 14:58:53 +00:00
Eric Anholt
244d4faa1d
file mach64_drv.c was initially added on branch mach64-0-0-6-branch.
2003-04-08 04:43:29 +00:00
Eric Anholt
353c84d2dd
file Makefile was initially added on branch mach64-0-0-6-branch.
2003-04-08 04:23:49 +00:00
Eric Anholt
12a52fd826
file drm_linux_list.h was initially added on branch mach64-0-0-6-branch.
2003-04-08 04:09:47 +00:00
Leif Delgass
10444e06d4
Use list_entry() to get container struct from struct list_head pointers.
...
Build fix for RedHat 9 kernel (5 args to remap_page_range()).
2003-04-08 01:30:43 +00:00
Leif Delgass
3f7769921b
add 'SG' map type identifier string (pci scatter/gather) to /proc vm info
2003-04-05 19:49:16 +00:00
Eric Anholt
6f88a5351c
Whitespace and remove a dead commented line.
2003-04-01 18:53:24 +00:00
Leif Delgass
8e51112fe0
Warning fix (use %p format for filp)
2003-03-31 04:14:35 +00:00