summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drmP.h
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-03-31 20:05:07 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-03-31 20:05:07 +0000
commit3de292db9d981e2bf4a484f37cd52b287f160292 (patch)
tree5239fc8e2b9e19acd77b2594640a8e07bbca6a6a /sys/dev/pci/drm/drmP.h
parent2f48c8a3a7d36cf340f3d920a9bf26049dd3211d (diff)
remove the drm_read and drm_write functions. instead just do the
conditional on whether we treat the data like memspace or system memory into the one driver that needs this. Something similar was done upstream a while back.
Diffstat (limited to 'sys/dev/pci/drm/drmP.h')
-rw-r--r--sys/dev/pci/drm/drmP.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/pci/drm/drmP.h b/sys/dev/pci/drm/drmP.h
index 42f7e22e2ff..1af98936f7e 100644
--- a/sys/dev/pci/drm/drmP.h
+++ b/sys/dev/pci/drm/drmP.h
@@ -149,13 +149,6 @@ typedef u_int8_t u8;
"lock; addl $0,0(%%rsp)" : : : "memory");
#endif
-#define DRM_READ8(map, offset) drm_read8(map, offset)
-#define DRM_READ16(map, offset) drm_read16(map, offset)
-#define DRM_READ32(map, offset) drm_read32(map, offset)
-#define DRM_WRITE8(map, offset, val) drm_write8(map, offset, val)
-#define DRM_WRITE16(map, offset, val) drm_write16(map, offset, val)
-#define DRM_WRITE32(map, offset, val) drm_write32(map, offset, val)
-
#define DRM_VERIFYAREA_READ( uaddr, size ) \
(!uvm_map_checkprot(&(curproc->p_vmspace->vm_map), \
(vaddr_t)uaddr, (vaddr_t)uaddr+size, UVM_PROT_READ))
@@ -529,12 +522,6 @@ int drm_ctxbitmap_init(struct drm_device *);
void drm_ctxbitmap_cleanup(struct drm_device *);
void drm_ctxbitmap_free(struct drm_device *, int);
int drm_ctxbitmap_next(struct drm_device *);
-u_int8_t drm_read8(drm_local_map_t *, unsigned long);
-u_int16_t drm_read16(drm_local_map_t *, unsigned long);
-u_int32_t drm_read32(drm_local_map_t *, unsigned long);
-void drm_write8(drm_local_map_t *, unsigned long, u_int8_t);
-void drm_write16(drm_local_map_t *, unsigned long, u_int16_t);
-void drm_write32(drm_local_map_t *, unsigned long, u_int32_t);
/* Locking IOCTL support (drm_lock.c) */
int drm_lock_take(struct drm_lock_data *, unsigned int);