Commit Graph

18 Commits

Author SHA1 Message Date
rmind 084180cb58 drm_do_addbufs_pci: Fix the mess of malloc()s and free()s, which
do not accept NULL arguments.
Found via CID: 4439
2007-04-04 00:30:58 +00:00
jmcneill 4ce279101e In drm_remove_magic, free the magic entry when it is found instead of
attempting to free a NULL reference in the error case. From Yorick Hardy.
2007-03-29 11:31:06 +00:00
jmcneill 11827f045a Introduce options DRM_NO_AGP and DRM_NO_MTRR, so I can run this on
platforms that don't provide these services.

In drm_mmap, don't wrap the return value with atop() if we're on macppc.

While we're here, fix:
	pci_intr_establish(&dev->pa.pa_pc, ...);
to:
	pci_intr_establish(dev->pa.pa_pc, ...);

The former doesn't even compile on macppc, and I'm amazed that it works at
all anywhere else.
2007-03-28 11:29:36 +00:00
dogcow 1aec633c29 caddr_t -> char *, even though it's in #ifdef __FreeBSD__ sections, just
so grep -r won't show it any more.
2007-03-23 20:01:45 +00:00
drochner f67e2cbf66 Free ressources more agressively.
(The natural place for this would be on each close, but we don't have
a driver entry point for this.)
from Yorick Hardy
2007-03-23 11:06:31 +00:00
xtraeme 3cd917fe6c Use void * rather than caddr_t to fix the build. 2007-03-22 23:35:00 +00:00
jmcneill 7126d77514 Newline after foodrm0 at vga0 message. 2007-03-22 15:14:20 +00:00
jmcneill 4683f1b535 Pass a proper vaddr to uvm_mmap. 2007-03-21 22:24:57 +00:00
jmcneill ccbe7856ca Initialize extra AGP resource slots. 2007-03-21 22:16:45 +00:00
jmcneill 0f6e823d07 In drm_ioremap, provide extra slots for mapping AGP memory space; it's not
reasonable to assume that these regions will show up in a VGA BAR.
2007-03-21 22:15:59 +00:00
drochner cd09748288 remove a debug printf which I had left in accidentally,
print the standard "dv_xname: interrupting at ..." line instead
2007-03-21 17:45:18 +00:00
drochner d414de4f1a since no boundary restrictions apply, a zero boundary argument to
bus_dmamem_alloc() is the right thing
2007-03-21 17:15:53 +00:00
drochner 7a0663bdb7 revert previous - it doesn't work on i386 at least 2007-03-21 17:01:56 +00:00
jmcneill ad0dc10411 Try not to free NULL pointers. 2007-03-21 04:52:14 +00:00
xtraeme feef686ef0 Fix previous, use %zd. 2007-03-21 03:22:16 +00:00
macallan fb308a7a59 - pass a sane boundary parameter to bus_dmamem_alloc
- sprinkle aprint_error()
2007-03-21 03:10:31 +00:00
macallan ea7f3505eb we return addresses, not page numbers in *mmap() methods 2007-03-21 02:11:44 +00:00
drochner 2d9e04fc35 Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test
2007-03-20 18:05:25 +00:00