diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-04-24 00:25:36 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-04-24 00:25:36 +0000 |
commit | 1fc0a5e1e4c43a0e9fe8b0d9860f22ae8e820d46 (patch) | |
tree | 396b905a16cb361eefbd6dc884c931a51fe9c7b2 /bsd/drm_drv.h | |
parent | e15b0b6a1b95e4145363b15e1a581ee230b2f9a2 (diff) |
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.
Diffstat (limited to 'bsd/drm_drv.h')
-rw-r--r-- | bsd/drm_drv.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h index d43a4666..4de2d3b5 100644 --- a/bsd/drm_drv.h +++ b/bsd/drm_drv.h @@ -228,7 +228,6 @@ static struct cdevsw DRM(cdevsw) = { .d_open = DRM( open ), .d_close = DRM( close ), .d_read = DRM( read ), - .d_write = DRM( write ), .d_ioctl = DRM( ioctl ), .d_poll = DRM( poll ), .d_mmap = DRM( mmap ), @@ -290,7 +289,7 @@ static struct cdevsw DRM(cdevsw) = { DRM(open), DRM(close), DRM(read), - DRM(write), + nowrite, DRM(ioctl), nostop, notty, @@ -518,17 +517,11 @@ static int DRM(setup)( drm_device_t *dev ) dev->ctx_start = 0; dev->lck_start = 0; - dev->buf_rp = dev->buf; - dev->buf_wp = dev->buf; - dev->buf_end = dev->buf + DRM_BSZ; #ifdef __FreeBSD__ dev->buf_sigio = NULL; #elif defined(__NetBSD__) dev->buf_pgid = 0; #endif - dev->buf_readers = 0; - dev->buf_writers = 0; - dev->buf_selecting = 0; DRM_DEBUG( "\n" ); |