From 5141da97f680235d10d74737d5444963d2080072 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Apr 2003 10:13:14 +0000 Subject: Move a bunch of gamma-specific code into a gamma-specific file. Restore the kooky DRM(write_string) code for gamma. --- linux/gamma.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'linux/gamma.h') diff --git a/linux/gamma.h b/linux/gamma.h index 44d8d5bc..1d4ab25d 100644 --- a/linux/gamma.h +++ b/linux/gamma.h @@ -145,4 +145,22 @@ #define DRIVER_AGP_BUFFERS_MAP( dev ) \ ((drm_gamma_private_t *)((dev)->dev_private))->buffers +/* Gamma makes use of a wierd mechanism to get the DDX driver to do + * context switches on behalf of the 3d clients via a trip to the + * kernel module. This requires read/poll functionality on the drm + * file descriptor not normally present: + */ +#define DRIVER_FOPS \ +static struct file_operations DRM(fops) = { \ + .owner = THIS_MODULE, \ + .open = DRM(open), \ + .flush = DRM(flush), \ + .release = DRM(release), \ + .ioctl = DRM(ioctl), \ + .mmap = DRM(mmap), \ + .read = DRM(read), \ + .fasync = DRM(fasync), \ + .poll = DRM(poll), \ +} + #endif /* __GAMMA_H__ */ -- cgit v1.2.3