diff options
author | Dave Airlie <airlied@starflyer.(none)> | 2005-11-11 06:07:35 -0500 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2005-11-11 06:07:35 -0500 |
commit | 732052ed3e7539d87136dd833be523747af3fb3e (patch) | |
tree | 7989d3062e50f3edc2a206148c6e776f88e7a2c1 /drivers/char/drm/via_drv.c | |
parent | e96e33eeb8b876c7ec009c557ca5269328eceda0 (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/via_drv.c')
-rw-r--r-- | drivers/char/drm/via_drv.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/drm/via_drv.c b/drivers/char/drm/via_drv.c index 6f3e6b32fa81..e8adebdba127 100644 --- a/drivers/char/drm/via_drv.c +++ b/drivers/char/drm/via_drv.c | |||
@@ -29,6 +29,10 @@ | |||
29 | 29 | ||
30 | #include "drm_pciids.h" | 30 | #include "drm_pciids.h" |
31 | 31 | ||
32 | static int dri_library_name(struct drm_device *dev, char *buf) | ||
33 | { | ||
34 | return snprintf(buf, PAGE_SIZE, "unichrome"); | ||
35 | } | ||
32 | 36 | ||
33 | static struct pci_device_id pciidlist[] = { | 37 | static struct pci_device_id pciidlist[] = { |
34 | viadrv_PCI_IDS | 38 | viadrv_PCI_IDS |
@@ -61,6 +65,7 @@ static struct drm_driver driver = { | |||
61 | .irq_uninstall = via_driver_irq_uninstall, | 65 | .irq_uninstall = via_driver_irq_uninstall, |
62 | .irq_handler = via_driver_irq_handler, | 66 | .irq_handler = via_driver_irq_handler, |
63 | .dma_quiescent = via_driver_dma_quiescent, | 67 | .dma_quiescent = via_driver_dma_quiescent, |
68 | .dri_library_name = dri_library_name, | ||
64 | .reclaim_buffers = drm_core_reclaim_buffers, | 69 | .reclaim_buffers = drm_core_reclaim_buffers, |
65 | .get_map_ofs = drm_core_get_map_ofs, | 70 | .get_map_ofs = drm_core_get_map_ofs, |
66 | .get_reg_ofs = drm_core_get_reg_ofs, | 71 | .get_reg_ofs = drm_core_get_reg_ofs, |