freebsd-nq/sys/dev/drm
Maxime Henrion 07159f9c56 Cleanup of the d_mmap_t interface.
- Get rid of the useless atop() / pmap_phys_address() detour.  The
  device mmap handlers must now give back the physical address
  without atop()'ing it.
- Don't borrow the physical address of the mapping in the returned
  int.  Now we properly pass a vm_offset_t * and expect it to be
  filled by the mmap handler when the mapping was successful.  The
  mmap handler must now return 0 when successful, any other value
  is considered as an error.  Previously, returning -1 was the only
  way to fail.  This change thus accidentally fixes some devices
  which were bogusly returning errno constants which would have been
  considered as addresses by the device pager.
- Garbage collect the poorly named pmap_phys_address() now that it's
  no longer used.
- Convert all the d_mmap_t consumers to the new API.

I'm still not sure wheter we need a __FreeBSD_version bump for this,
since and we didn't guarantee API/ABI stability until 5.1-RELEASE.

Discussed with:		alc, phk, jake
Reviewed by:		peter
Compile-tested on:	LINT (i386), GENERIC (alpha and sparc64)
Runtime-tested on:	i386
2003-02-25 03:21:22 +00:00
..
drm_agpsupport.h
drm_auth.h Diff reduction to my experimental code: clean up return code handling. 2002-04-29 00:25:10 +00:00
drm_bufs.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
drm_context.h Diff reduction to my experimental code: clean up return code handling. 2002-04-29 00:25:10 +00:00
drm_dma.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
drm_drawable.h
drm_drv.h Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
drm_fops.h The first argument of pgsigio() is now struct sigio **. 2002-05-03 07:45:26 +00:00
drm_init.h
drm_ioctl.h Diff reduction to my experimental code: clean up return code handling. 2002-04-29 00:25:10 +00:00
drm_lists.h Diff reduction to my experimental code: clean up return code handling. 2002-04-29 00:25:10 +00:00
drm_lock.h
drm_memory.h Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
drm_os_freebsd.h Remove drm_linux.h, move the two useful defines into drm_drv.h. Use fd locking 2002-09-01 17:45:04 +00:00
drm_scatter.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
drm_sysctl.h
drm_vm.h Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
drmP.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
gamma_dma.c Diff reduction to my experimental code: clean up return code handling. 2002-04-29 00:25:10 +00:00
gamma_drv.c
gamma_drv.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
gamma.h
i810_drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
mga_dma.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
mga_drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
mga_drv.c More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
mga_drv.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
mga_state.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
mga_ucode.h
mga_warp.c More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
mga.h
r128_cce.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
r128_drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
r128_drv.c More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
r128_drv.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
r128_state.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
r128.h
radeon_cp.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
radeon_drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
radeon_drv.c More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
radeon_drv.h Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
radeon_state.c Warnings cleanup for gcc3. Also __FUNCTION__ -> __func__ 2002-05-31 23:19:50 +00:00
radeon.h
sis_drm.h More diff reduction: Shuffle around some header code as was done in 2002-04-29 18:18:42 +00:00
tdfx_drv.c
tdfx.h