Commit Graph

21 Commits

Author SHA1 Message Date
bjs 43577a53e4 Fix type-o. 2008-07-29 23:44:42 +00:00
bjs 8151294949 - for DRM_NETBSD_HANDLE2ADDR/ADDR2HANDLE, do what uvm does to recover
the virtual address from a uoffset, e.g. uoffset + vm_map_min(kernel_map).

- Eliminate the bus_space_read/write-based DRM_READ/WRITE macros.  The
  memory we're reading/writing from is not always allocated with bus_space,
  and so this will not do.  Instead, since all of our bus_space maps are
  linear, volatile pointer dereferences will do just fine.

- Unify members of struct drm_dma_handle amongst freebsd and netbsd:
  the 'addr' member was superfluous; also, set dmah->tag from
  dev->pa.pa_dmat and use that.

- we don't need BUS_DMA_ALLOCNOW, as bus_dmamap_load is called immediately
  following bus_dmamap_create(), so there's no need to avoid deferring
  allocation to load time.

- Add check for nsegs != 1 in drm_pci_alloc().

- We don't need the DRM_PCI_DMAADDR macro right now--it was only
  used once.
2008-07-25 06:54:33 +00:00
bjs f4821bc01a in the git sources, timo is jiffies + 5*DRM_HZ, not 5*DRM_HZ 2008-07-25 06:37:40 +00:00
mrg 5560b89162 merge git-change-2580a065d81be645a14af1e91b8441f7e72fcbe4. 2008-07-25 05:30:08 +00:00
bjs 42cc23f284 IRQ_HANDLED should be 1, not 0. 2008-07-25 02:37:18 +00:00
bjs e2ae9c7df8 Remove #ifdef __FreeBSD__ around DRM_UPDATE_DRAW ioctl, as we have drawable
code (and if it does not work, we must make it work!).

Add missing entry for DRM_MODESET_IOCTL.
2008-07-21 07:18:11 +00:00
bjs 616225d114 add forgotten initialization/destruction for tsk_lock. 2008-07-20 03:02:22 +00:00
mrg 8754a8144b move an XXXNETBSD along with the assignment that moved 2008-07-19 22:23:14 +00:00
mrg b0c27870b5 merge cornflakes from git-change-04893aa99abfbed8eb6d7067a974fa1f31193c87. 2008-07-19 22:10:09 +00:00
jmcneill a8309870a5 Pull in agp_i810.h so the agp borrow hack works on i915drm. 2008-07-19 20:08:39 +00:00
jmcneill e3f4f88866 PCI_PRODUCT works on pa_id, not pa_device 2008-07-19 17:45:53 +00:00
bjs 61ffbe1fec dev->pci_device should be assigned PCI_PRODUCT(pa->pa_id), not the id
itself.
2008-07-19 17:44:14 +00:00
bjs 79b565981a use ALIGN() instead of rolling our own. 2008-07-19 17:28:14 +00:00
bjs e87f5b54be set dev->kdev = kdev at open time, not in drm_ioctl. 2008-07-19 17:23:04 +00:00
jmcneill 4a648a5b9a Implement drm_drawable gunk and drm_locked_task, untested. i915drm links now. 2008-07-19 14:15:11 +00:00
bjs d63b70db6d Change IPL of DRM_SPININIT macro to IPL_NONE. Currently, the only
mutex initialized by this macro is the dma lock, which certainly
should not be IPL_VM.  The priorities of the other locks should be
revisited.

Also, in DRM_WAIT_ON, enforce the policy of "drm returns -errno
to shared code" (this used to be implemented via a macro).
2008-07-19 10:09:01 +00:00
mrg 242955a02d XXX: remove the (volatile uint32_t *) cast from atomic_read() macro for now.
now all bsd drm drivers build except for i915 which fails to link.
2008-07-19 07:03:07 +00:00
mrg cc28125d9e XXX: always return DRM_MIGHT_BE_AGP for now -- need to implement the
XXX: releant bus controller grovelling for netbsd pci.
2008-07-19 07:02:15 +00:00
mrg 8ff8b7b272 pull over many many changes from netbsd-current sys/dev/{,pci/}drm/.
make the mesa-drm style Makefile's actually run on netbsd (but i doubt
they work yet.)

this still has a lot to go.  it doesn't work yet, but it's getting
close.

most of this is from other authors than myself:  yorrick, drochner,
jared, bjs, all contributed a lot more than i have so far, but there's
a bunch of clean up from myself in here as well.
2008-07-19 06:18:23 +00:00
mrg 3a3ec8ba5f include bsd.subdir.mk 2008-07-19 06:14:25 +00:00
mrg d582952b83 import mesa-drm git from version 5d27fd94afaaf434c3a92af0075420b550055bfb,
which is approximately june 25th or so.
2008-07-19 05:30:36 +00:00