summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2005-07-03 17:16:12 +0000
committerJon Smirl <jonsmirl@yahoo.com>2005-07-03 17:16:12 +0000
commitd41af11ee30413f90064cfffb5687be92a28021c (patch)
tree2faf7181d9a653f6549ea4bb2ef2fb93aacdf9ad /shared-core
parente2ba08d28335b43515ccbefcc21052ed0d5a7e47 (diff)
Add sysfs attribute dri_library_name on Linux. code in share-core/via_drv.c
is ok to be shared, it will be passive on BSD.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/via_drv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shared-core/via_drv.c b/shared-core/via_drv.c
index 21f28a63..5e542c76 100644
--- a/shared-core/via_drv.c
+++ b/shared-core/via_drv.c
@@ -54,6 +54,11 @@ static int version(drm_version_t * version)
return 0;
}
+static int dri_library_name(struct drm_device * dev, char * buf)
+{
+ return snprintf(buf, PAGE_SIZE, "unichrome\n");
+}
+
static struct pci_device_id pciidlist[] = {
viadrv_PCI_IDS
};
@@ -86,6 +91,7 @@ static struct drm_driver driver = {
.irq_uninstall = via_driver_irq_uninstall,
.irq_handler = via_driver_irq_handler,
.dma_quiescent = via_driver_dma_quiescent,
+ .dri_library_name = dri_library_name,
.reclaim_buffers = drm_core_reclaim_buffers,
.get_map_ofs = drm_core_get_map_ofs,
.get_reg_ofs = drm_core_get_reg_ofs,