From d41af11ee30413f90064cfffb5687be92a28021c Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Sun, 3 Jul 2005 17:16:12 +0000 Subject: 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. --- linux-core/i810_drv.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux-core/i810_drv.c') diff --git a/linux-core/i810_drv.c b/linux-core/i810_drv.c index 128452c0..f043041b 100644 --- a/linux-core/i810_drv.c +++ b/linux-core/i810_drv.c @@ -70,6 +70,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, "i830\n"); +} + static struct pci_device_id pciidlist[] = { i810_PCI_IDS }; @@ -90,6 +95,7 @@ static struct drm_driver driver = { .dma_quiescent = i810_driver_dma_quiescent, .get_map_ofs = drm_core_get_map_ofs, .get_reg_ofs = drm_core_get_reg_ofs, + .dri_library_name = dri_library_name, .postinit = postinit, .version = version, .ioctls = i810_ioctls, -- cgit v1.2.3