aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/drm/drmP.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-11-11 06:07:35 -0500
committerDave Airlie <airlied@linux.ie>2005-11-11 06:07:35 -0500
commit732052ed3e7539d87136dd833be523747af3fb3e (patch)
tree7989d3062e50f3edc2a206148c6e776f88e7a2c1 /drivers/char/drm/drmP.h
parente96e33eeb8b876c7ec009c557ca5269328eceda0 (diff)
drm: simplify sysfs code for drm
This simplifies the sysfs code for the drm and add a dri_library_name attribute which can be used by a userspace app to figure out which library to load. From: Jon Smirl <jonsmirl@gmail.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drmP.h')
-rw-r--r--drivers/char/drm/drmP.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/char/drm/drmP.h b/drivers/char/drm/drmP.h
index 7fe516160b63..e9ede8d69e20 100644
--- a/drivers/char/drm/drmP.h
+++ b/drivers/char/drm/drmP.h
@@ -547,6 +547,7 @@ struct drm_driver {
547 void (*kernel_context_switch_unlock) (struct drm_device * dev, 547 void (*kernel_context_switch_unlock) (struct drm_device * dev,
548 drm_lock_t * lock); 548 drm_lock_t * lock);
549 int (*vblank_wait) (struct drm_device * dev, unsigned int *sequence); 549 int (*vblank_wait) (struct drm_device * dev, unsigned int *sequence);
550 int (*dri_library_name) (struct drm_device *dev, char *buf);
550 551
551 /** 552 /**
552 * Called by \c drm_device_is_agp. Typically used to determine if a 553 * Called by \c drm_device_is_agp. Typically used to determine if a
@@ -982,10 +983,8 @@ extern struct drm_sysfs_class *drm_sysfs_create(struct module *owner,
982 char *name); 983 char *name);
983extern void drm_sysfs_destroy(struct drm_sysfs_class *cs); 984extern void drm_sysfs_destroy(struct drm_sysfs_class *cs);
984extern struct class_device *drm_sysfs_device_add(struct drm_sysfs_class *cs, 985extern struct class_device *drm_sysfs_device_add(struct drm_sysfs_class *cs,
985 dev_t dev, 986 drm_head_t *head);
986 struct device *device, 987extern void drm_sysfs_device_remove(struct class_device *class_dev);
987 const char *fmt, ...);
988extern void drm_sysfs_device_remove(dev_t dev);
989 988
990/* Inline replacements for DRM_IOREMAP macros */ 989/* Inline replacements for DRM_IOREMAP macros */
991static __inline__ void drm_core_ioremap(struct drm_map *map, 990static __inline__ void drm_core_ioremap(struct drm_map *map,